From patchwork Thu Nov 11 15:45:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1752 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AB1CD3F075 for ; Thu, 11 Nov 2021 16:46:07 +0100 (CET) Received: by mail-pf1-f200.google.com with SMTP id x14-20020a627c0e000000b0049473df362dsf4082470pfc.12 for ; Thu, 11 Nov 2021 07:46:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636645566; cv=pass; d=google.com; s=arc-20160816; b=Mm9LgtObTF2rZ0MVVdl9zfVMQq8yi9HIZt5K2WuMGxtfCqvXmKwJLBPT044cGcKj4c SV8qnMIgPy6klfmO9Q7/knF0Uno1Ebfw5i1MJ5rBxeFCRCZuZX8iyH5h8VbQ6bMLlqWO dVKNNKI/7/vfSRvuvYw+BhQaxDXEmd6PBt+IYAP0nV8xxHiTlPuUJVZa4uxrZE1O2tI3 5ATdJyJ8Qm/gRn0Xl5R7xbYfulFW28Ldmvi/SPecs+SXbJUt4Ml8+dikj5gxwVfhFUHW EtZoDyIk0LX2J+qRpPg4dO7Rez8d2OOWryz0xuIHQqea1fnIp3oyNEEGIVbmXiVCRzrG Cmqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=xXqEpABqBioSmtmxsv0zyoCWtIV8zo8tHa3RAzF0lxU=; b=cgUqg419fwmfHaH4+yAFXqXJckj83rekIW9kJv0WjXaDFjAnZHyuJyedSYlfi6Vb4j 5bua2ZgzB3BgZKeJqS8O145FdTLsRL+xGr/6ZONavSCmRsJh26EZs5jULzB4mRptyCXs 85lW2kXs+xElB8BNPJUY9xgesMBQKWdqXtUafk4u9Ekc63r502ILWItL1ybew4XhZRu6 gA620JO47THHQaVmljKRj5sfa544ML7fRAf/s/50kUnEMAOQ19NipuAJQ6s2c8GwxPMw lPfZ+VCkhEpvE85Di/DUhlFU6g25bP1VVhtDQe0Y+GQE4gFoAmSnPERm7V1nRme6RLUd mTHw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pJ+aj0Qc; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=xXqEpABqBioSmtmxsv0zyoCWtIV8zo8tHa3RAzF0lxU=; b=fgttvTiGY5xA+8Nd0tuOdBra8TgsSVoqyPX/++Mm9HddEwIdKQnpcGBsaa8J+MZalW WDPgPhLGfpwGiSmjWphO1bBos4sCVIt0v0bA6vYLMnwpttcsej5YZyqYQS3DoPQ4b7B5 CSfhlLNfMndyktU4gyzFAU2/4+nEwRN3D/Bis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=xXqEpABqBioSmtmxsv0zyoCWtIV8zo8tHa3RAzF0lxU=; b=Ym6uGaZZ19rm6VvYWAvtxMpLQVRjf/3GNI7xUa26LNuQ+NOXgSYc7eebaYRPrCvJ01 0WwMBwqKeFl7LEaIQ83Ry2ecuyJy/7FggzZ3OF100FePB+Xp4wQw7y8XKENEaamJUh7Y oPOdYYeXNjtWptSl6t1JkfG9d2hUYt89pg0prxnkNo/EpimJkpMOO2TNBibHFjFmlr1L GTjr1WjOgGOVrbWkIEItzoHwIT+WUDzl2zYrYtNOV+gz0qA+jygJnO7ujJAJ0blSux2f GtR592B5M+DCgd4XhItmQu/a/lwmEaX5S4rg0uLhH4eNfu+kuc2p0vFvoApI6Wg3xQ/2 FbKQ== X-Gm-Message-State: AOAM5326bzz0C4is2O3pfs2K9+0crVbZqDyDgvAEFzXH3ttX8ySS8Hgk FKm6oX5aTL/4aefJeG2ZozREZBDV X-Google-Smtp-Source: ABdhPJxw0nmxexKM91Q/7UvufyWSVL+cNIAf6m8sgjGwX7ntZrse8Sh0urm62wy5WngPE+LM/P6uFQ== X-Received: by 2002:aa7:870d:0:b0:49f:e41d:4f8d with SMTP id b13-20020aa7870d000000b0049fe41d4f8dmr7482611pfo.16.1636645565852; Thu, 11 Nov 2021 07:46:05 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d4cc:: with SMTP id o12ls2298694plg.11.gmail; Thu, 11 Nov 2021 07:46:05 -0800 (PST) X-Received: by 2002:a17:90b:50c:: with SMTP id r12mr27355459pjz.71.1636645565182; Thu, 11 Nov 2021 07:46:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636645565; cv=none; d=google.com; s=arc-20160816; b=wyLaJmiSeqzIuQy6zq7IcFNFBrILNybWyxuSAeWw/q+khEV56bak7EHtq7D42SeEBl N77LfCukuz+3DjVdqNs1j7f6jj0HcZxEHU7iI1S+e2ygozSs+FheoTosj5TsjC8HOI6V cHtZqgy0NKsVk/Ca0IJRMdHLUNNyKugaw/Tqg8hp4+BIjms8Xp69QqG/QsHnYAEk79dg WZriibH4pfCI9/XMLTWsPTfDgUXnjMe/iaiFynJpL2f5An2HVjrRDzAHOzao4oyvMJ8f +dBwti8lM30gNLoZpa8j7ylALmndi8UdHmroTAvddosIcSDPL+4ARMqbWxDO7OeIJNup sM5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=IHt50f9mlyj2/SGCeb4ttMHVOWoii0nmE+uZwCQwvss=; b=HWJbPXGCRxE9Ngr2yoQvvx5LiLo3OvzldCYcuXFNQ+p83LyZvLHntPmeHjnC1b+fHK qZ+sWRfLnoebLiblZcBJZ+szss+SwTN4vScuGjTkg5KRy1kYzUQmXwUkW6kxj6gxH3Ts SDDPmwgf4jnPt7iSwbn/00fj9xbiz+x4mtzoLiDThHxz7BOLUqH3qTmcHYm2bTBVrYNR hsYG64saCYnL2bkFM9bhcVBHoyIMt+0SO4Inwuxcq9qBzVLZiFYSVDGZKo5wePL00OS1 FP0Z2hsw6Tq7JcE4pZ4YueODHckIK6bZ1FXD/VVtJywnbcfoq+iDt7iBpjlkfF3811DW eznQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pJ+aj0Qc; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id rm5sor6612628pjb.21.2021.11.11.07.46.05 for (Google Transport Security); Thu, 11 Nov 2021 07:46:05 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:17a5:: with SMTP id q34mr27153922pja.122.1636645564865; Thu, 11 Nov 2021 07:46:04 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:3041:135c:4e21:846c]) by smtp.gmail.com with ESMTPSA id m15sm2782122pjf.49.2021.11.11.07.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:46:04 -0800 (PST) From: Jagan Teki To: Rob Herring , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki Subject: [PATCH 1/3] ARM: dts: stm32: Enable LVDS panel on i.Core STM32MP1 EDIMM2.2 Date: Thu, 11 Nov 2021 21:15:55 +0530 Message-Id: <20211111154557.852637-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pJ+aj0Qc; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Engicam i.Core STM32MP1 EDIMM2.2 Starter Kit has plugged with 7" LVDS panel. Engicam i.Core STM32MP1 SoM has SN65DSI84 DSI to LVDS bridge. This patch adds a display pipeline to connect DSI to SN65DSI84 to 7" LVDS panel. Signed-off-by: Jagan Teki --- .../stm32mp157a-icore-stm32mp1-edimm2.2.dts | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts index ec9f1d1cd50f..d80b4415e761 100644 --- a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts +++ b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts @@ -24,6 +24,91 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; + default-on; + }; + + panel { + compatible = "yes-optoelectronics,ytc700tlag-05-201c"; + backlight = <&backlight>; + power-supply = <&v3v3>; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; +}; + +&dsi { + status = "okay"; + phy-dsi-supply = <®18>; + + ports { + port@0 { + reg = <0>; + dsi_in_ltdc: endpoint { + remote-endpoint = <<dc_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_in_dsi>; + }; + }; + }; +}; + +&i2c6 { + i2c-scl-falling-time-ns = <20>; + i2c-scl-rising-time-ns = <185>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c6_pins_a>; + pinctrl-1 = <&i2c6_sleep_pins_a>; + status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi84"; + reg = <0x2c>; + enable-gpios = <&gpiof 15 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + data-lanes = <0 1>; + }; + }; + + port@2 { + reg = <2>; + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +}; + +<dc { + status = "okay"; + + port { + ltdc_out_dsi: endpoint@0 { + reg = <0>; + remote-endpoint = <&dsi_in_ltdc>; + }; + }; }; &sdmmc1 { From patchwork Thu Nov 11 15:45:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1753 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AB44F3F075 for ; Thu, 11 Nov 2021 16:46:10 +0100 (CET) Received: by mail-pl1-f198.google.com with SMTP id j6-20020a17090276c600b0014377d8ede3sf2982729plt.21 for ; Thu, 11 Nov 2021 07:46:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636645569; cv=pass; d=google.com; s=arc-20160816; b=eumnayAzUxzKw/nJnEx896aL2mF9aDq1ScmYNa1igmoy08XO4wSIwpHW5Gz5JLTJc+ h/lry50V0P4uPD7xQXzedtyixuRA4m2ypyv8IMjYRLLo/eXM45dsI2auMqySl4xJhrS4 0vK5FsgkVbNGWS/2e1NSsXVp566etjMuhNslxom6ARDGIXZfLUyLj8eWO41xA+vPbEds HW9YcAy/XDBBIWbTFLK53otnUOa9Fzsnk5Xnal7c0CNqmlLtoIIul9zqMHClPhEGphZ7 qdIuWl9e2gk5bxauqgCtpMsdFSK5cSC+BaDJYlhZTs7QayNKzz4VIe0D/cguAE39SsTz WRKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=D9p6xeTIR8ZXWWkyB0KQBkEwur4biIXMy+dmErRXDQY=; b=SpWT210PQFmvXj01oi2rgeiTme18r2xqm5WKIAmKuxWZbM0ti1gWC6ewTT7EIEcRgh 1OUhQbd0RnAYn121wvb/kqLVyif2Lj/P+EKAki2sWVwdIadSsmEzh/ks+I7mLPJTO6VR XC6IAOpgLi9Z5ih4Dz9xkNNTJdm13wp+Z2omRMl/6ZtNkl7spv/n0j5qptBDKrCFbUan PxbYDM6C4pkCc9zhTS6zNfLqVvgRd4mwXwejGM64nbl1rXBfCGeEyHwddKQn4jnb+Dah TOiRkzrTmsIz1DYkjVfUQExtCloxBgheE+1pp+CVJPPva44KfeJ5vp9ILzgew6/Gph7s Hh6g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l1ul0dc4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=D9p6xeTIR8ZXWWkyB0KQBkEwur4biIXMy+dmErRXDQY=; b=mLvviVG7wFxdNCMgQd/qVX4CWn9ed0l6EZfR5ebujVpaNhJ0od6ds1WBmVQhNtjkoj Km78+uCojyPl/IySDI+hy97ZrWbafhtYBees7CZ01VWuyPi1pa1ekkp2OWkTZS4GbyNx 7lVttGX0AySnJoiFj4TjL8iVt3q1/T75ti/B8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=D9p6xeTIR8ZXWWkyB0KQBkEwur4biIXMy+dmErRXDQY=; b=KrV/50zaJPdBGl3vvS/EkUrXuX31wrn1wNwn1GhT3UjtnPhjR+bELe6YHJ2PZAAC20 v+LWekSCrASyGFJNfSE/w//jJrNpdsG5uNsnGKuXSeCfpZ0hWR6smjxsETc5gU5SCKKC tsFNfsWLVNE6EBobOomhS7MZVbMDsCJy3HwryosrJhYZGYu8IGOsomSxPbD7VupOxOxS WhTeNJE6V2erD64Ru9lv1/J7VRd8iDAK7R+YRKD+q5Y6/bMxY8riSDIZq7DoApj603Gg NJOMBQcNiiZFg0mTbC1vDNCui8IK///yt/vC8FXCPKFuBMNMs+8jOTOvmW/AMXIN+nb8 +E2w== X-Gm-Message-State: AOAM531J7oGBoZNS8GWyNvXM5c5M5MD96kQm4PslFvxU0U5uJq1sZPyy H/cEs93bUW8WEcRJsOWQtzuzyUKy X-Google-Smtp-Source: ABdhPJyD97B600Bvh4dvBc3/Oy7UeFHe07jvKrcRrtyY+F/wKv5RHhGvvZLCfNsp7mZt87Oi3bkNAQ== X-Received: by 2002:a05:6a00:21c4:b0:475:e532:3d18 with SMTP id t4-20020a056a0021c400b00475e5323d18mr7491471pfj.40.1636645568936; Thu, 11 Nov 2021 07:46:08 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:67cc:: with SMTP id b12ls1022390pgs.4.gmail; Thu, 11 Nov 2021 07:46:08 -0800 (PST) X-Received: by 2002:a63:fd43:: with SMTP id m3mr5087242pgj.355.1636645568269; Thu, 11 Nov 2021 07:46:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636645568; cv=none; d=google.com; s=arc-20160816; b=y3WmLuHKsPZNy9vyxzpaiCF4FkbnU/pjvQIjoyReR/zf1+Ni5FvBFeUQKqW8uZkdeu MftUTzgD1Eslkdi8vdwkB8i++Q9RicbmwAmdV0pNQE1WV6w7izkTw+fvZbw6A9kC7ej2 usWg9T2F6miYEcSPjItObEa0JBfMke+u70JAm5gQTqjDFE29XBr/RMzKdh3frKkBZVSU qL4jNMX859H1Dv/fvXRYEq/o8vLeMJodFkHpPgUFFwm6ek5yI0lgTtZmJsZf1Y9PiMd6 A4bJAj9yVJJ0NS812gxrGZp2a8xmK+gEnNzkhsicGfYm6W05RNkoL0ZLO8PesCBVvDX0 q7Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=XH4HtUz8oW0xzhVze5j7Kybwjbu7oDVLM7iF1rNAOBM=; b=w6Rh8TEx/TNCiWqH/wnXI/RfRY+mMZfcMgdi0h7zqAU6Akm0pRLsyCyQCWMbl6S4jz UzPxSZV+oaOTWtFjttepzpCpdjidwtPbWBbMeULn0EMbBtMCkOM/xXTeaXtMGpeQJ/c8 RucjEJ3xNs8IOfgrN/36lDnLRkk31+BdU8NzVKXKBAjvC8qab3vMCAJdakhqfXlJen4n Gt2dNcV9P3THj+lXQ12rc1DdlFZwjBqWMiA2/Jm14D6zuj1xUiAskc+hK4h6LJeiGwxd PzG6MqFxD8v/1GzsDKmn4HCevOJLH4FmM0+WOPWC6zBesbdD/e+vfOMr7SN8+ozrAbFs skrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l1ul0dc4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id mz7sor6569482pjb.30.2021.11.11.07.46.08 for (Google Transport Security); Thu, 11 Nov 2021 07:46:08 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90b:4b0e:: with SMTP id lx14mr26068293pjb.160.1636645568044; Thu, 11 Nov 2021 07:46:08 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:3041:135c:4e21:846c]) by smtp.gmail.com with ESMTPSA id m15sm2782122pjf.49.2021.11.11.07.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:46:07 -0800 (PST) From: Jagan Teki To: Rob Herring , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki Subject: [PATCH 2/3] dt-bindings: arm: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" OF Date: Thu, 11 Nov 2021 21:15:56 +0530 Message-Id: <20211111154557.852637-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111154557.852637-1-jagan@amarulasolutions.com> References: <20211111154557.852637-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=l1ul0dc4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , i.Core STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. C.TOUCH 2.0 is a general purpose carrier board with capacitive touch interface support. 10.1" OF is a capacitive touch 10.1" Open Frame panel solutions. i.Core STM32MP1 needs to mount on top of C.TOUCH 2.0 carrier with pluged 10.1" OF for creating complete i.Core STM32MP1 C.TOUCH 2.0 10.1" Open Frame board. Add bindings for it. Signed-off-by: Jagan Teki --- Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml index bcaf7be3ab37..d2dd3f1847bb 100644 --- a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml +++ b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml @@ -77,6 +77,7 @@ properties: items: - enum: - engicam,icore-stm32mp1-ctouch2 # STM32MP1 Engicam i.Core STM32MP1 C.TOUCH 2.0 + - engicam,icore-stm32mp1-ctouch2-of10 # STM32MP1 Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" Open Frame - engicam,icore-stm32mp1-edimm2.2 # STM32MP1 Engicam i.Core STM32MP1 EDIMM2.2 Starter Kit - const: engicam,icore-stm32mp1 # STM32MP1 Engicam i.Core STM32MP1 SoM - const: st,stm32mp157 From patchwork Thu Nov 11 15:45:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1754 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B25643F075 for ; Thu, 11 Nov 2021 16:46:13 +0100 (CET) Received: by mail-pf1-f197.google.com with SMTP id 184-20020a6217c1000000b0049f9aad0040sf4046683pfx.21 for ; Thu, 11 Nov 2021 07:46:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636645572; cv=pass; d=google.com; s=arc-20160816; b=sb9zQgfVmjS+QS+hwIiRDX8iNbig71HXkNH8D7yIo82wRw9h2wZBhc+09kPe+Odo76 QHegc9AkgG8VWY4eq+hvmliSu/HzfvysRtA7rviNdxF1pCjfPTh6R3BUM0AzbChEbw8A LwTq8l5mmPiK5kvEqcW/1Ib4reza/zaZohNBCBQL6CWwOX4wpoSfC64KklPiopMY1310 5knkmSXrq/g/sx8tOBEfN6syrNMkOdPL6vUrHXkGPfk/Wxt9bALKkcKF3daRbt61PYPn H0LHJS3ojrIQ/pWoifkuVOfMwieO0MVnfVJH6N9AFRJ2vqo6sTcAEZNgprUaOBzSwdcX 32eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3a/Maxuw5Ij4ez0kD5a1Oa8sCS3xLmYOlBU2NOX0mXM=; b=PHEEoX/XkJQ9dB4riF6zmJ6GGe1tMmtGSA8ouUarlIQomOevrHSya4yUrV5cAQPOla 8CgiCV0S7X+QT9HtLgwVzSZYK19D1XkZ2y1mL5nyXuFt5JyxG7TjOFazj7tUpRNYzRaj L+S+jUv3a6QsRveWdDPDRPrgAB+9ifoD4ygjGx0BviA48EHf67HSffBBMvBDytui/I5j QdobENkjxs8vq9n1xR3OSQyWXzMJieHMKgKDdZwy9Z9DDTNd6KASQHqGXNqaxCXazy4C BH+wj5R0m2IoQ4RWxAJgMRTc4rTtYHHWOSzMh48TefjkTd24cYy/px47A8VTxulRhh1M oEDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TcRLIlJ+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=3a/Maxuw5Ij4ez0kD5a1Oa8sCS3xLmYOlBU2NOX0mXM=; b=NBkvaLv/MAXaYmX6Yoq+uGRLj9zTPJxt0LfB4v6H4PKCSq59/1R8thQs3vBX4OgljN +2TZCgT/tPtdJU3Dy1MEzFtdKYxe1jTR1jzR53sFtMc+jxfF44Cx3WVDALQ9CilJA1Gj v4K6nBxul9pG5WpzwRW0S+LNaIQvqkAKZq8Fs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=3a/Maxuw5Ij4ez0kD5a1Oa8sCS3xLmYOlBU2NOX0mXM=; b=aPr3FmYj7sCHI2SlervoM3eph8i0UoQdjwbE8usauje4p4k/klYKf1dGu+0dFOd8Q2 dzsutwJZd4w3+h2RHFkMiUKPLxkXDMrwKKU4LGz4V2owpl+XjNYRVZ8Wbzm7SqZP6UFA Na2QtHmZz3aivREDApXQjThDwY+91hkH4QP6NUOdI7IpPE930vkXq6ernqeoTUcqGv9F pGqnw9UWU3i8SnaPQp31nN7FvC8VKfIx59cean6012Xj6E9bn34TUwy5tqE/jjPIJpI3 XtLBZzdOyTsH2V0kIJN2PTFm1jPTk6HXIGxDVgK0os9mrvdX3wtgTuN9dCqhFz4Jua9b HbFA== X-Gm-Message-State: AOAM530l1CF5ubVWomCaVxli+zrK8cUJgnqQDSwE/yr+rH6wyrbHm9NJ E23m4iY/NWV9MmL1Ro9abL25HRmH X-Google-Smtp-Source: ABdhPJySVOPsGApcuFgrPk/7PoOPlygUAXyETZ++LfVnHRmZ1W+uWArSMTfP98noi2zEq1bt9GtVaw== X-Received: by 2002:a17:90b:4c4c:: with SMTP id np12mr27050479pjb.68.1636645572509; Thu, 11 Nov 2021 07:46:12 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:1bcf:: with SMTP id oa15ls5500396pjb.0.canary-gmail; Thu, 11 Nov 2021 07:46:12 -0800 (PST) X-Received: by 2002:a17:902:be12:b0:142:431f:3d1c with SMTP id r18-20020a170902be1200b00142431f3d1cmr67499pls.32.1636645571840; Thu, 11 Nov 2021 07:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636645571; cv=none; d=google.com; s=arc-20160816; b=wuDDd9XWyDre2j1s0fKxbqKMNCa61ukPd6MypYeeEq70ROWh55krHRkaHuv3AJcKn5 bxGlfQKXm/cVsYRcFql3Nc7KgyRrcGyRL8Xqk1xV2uhh9126/YdJvppdIw1cGolTI9Px sjDmY7gXhM8VT0ntsnDVQ9xJheQoZr2vGadeuO+UTqTqZiwNXJu78Su/md4KuHdU2Ipx LD9H4z3jDEFqSA7rL4ydT2nLw4CmisulOGt4X4JI4nuxmmS6PjHIZPAMBZW4A21/O6VS 30rT0TkVgs+igINR6fvDxRmVRhsbn0yF0maEeflC1DsyeYqx22ysKu0v0YRVQQoJjw60 Qm1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=gdTkR49a2fjsLz2HZrs6mipLH/WYyEV/YROuBEVCTvc=; b=qOriuTMN3oY5e8w4iAE8/FwpkBRKZxd+KT/Gbk1biWUZiTg3hJTxyNIRyR2i+YybW9 lqHSdRUeaj38KEL82K3r7gcGPzcCkwNhsd+cpFBkqIBz5GKWDpHfHVi0I2CgFY3/FRVB bPhPwjnPTHI+jBeZx1InT8cScjbCZsEnASGTdEv+lXASsi6vvKtZw19NehdZ7aXflcKh 6b54DepASv2uq9iAJcLbSf9xkySc0fbqw7QfTCqqprlGAVRYsCiDtnmrq9B2uumSxGav OOVJbkr2JGLkansM7iEnpuHCbhTcgaLw8q3nf7zJcCDhOZku8WJl7YJ/eKUHBWO5Zs/p qqaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TcRLIlJ+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a11sor2363817plh.26.2021.11.11.07.46.11 for (Google Transport Security); Thu, 11 Nov 2021 07:46:11 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:902:f24a:b0:141:c6fc:2e18 with SMTP id j10-20020a170902f24a00b00141c6fc2e18mr9195025plc.55.1636645571516; Thu, 11 Nov 2021 07:46:11 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:3041:135c:4e21:846c]) by smtp.gmail.com with ESMTPSA id m15sm2782122pjf.49.2021.11.11.07.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:46:11 -0800 (PST) From: Jagan Teki To: Rob Herring , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki Subject: [PATCH 3/3] ARM: dts: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" OF Date: Thu, 11 Nov 2021 21:15:57 +0530 Message-Id: <20211111154557.852637-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111154557.852637-1-jagan@amarulasolutions.com> References: <20211111154557.852637-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TcRLIlJ+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , ARM: dts: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 Engicam C.TOUCH 2.0 is an EDIMM compliant general purpose Carrier board. Genaral features: - Ethernet 10/100 - Wifi/BT - USB Type A/OTG - Audio Out - CAN - 10" LVDS Panel (SN65DSI84 DSI-LVDS bridge on SoM) i.Core STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. 10.1" OF is a capacitive touch 10.1" Open Frame panel solutions. i.Core STM32MP1 needs to mount on top of C.TOUCH 2.0 carrier with pluged 10.1" OF for creating complete i.Core STM32MP1 C.TOUCH 2.0 10.1" Open Frame board. Add support for it. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/Makefile | 1 + ...tm32mp157a-icore-stm32mp1-ctouch2-of10.dts | 132 ++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 0de64f237cd8..641220e970e8 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1140,6 +1140,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ stm32mp157a-microgea-stm32mp1-microdev2.0.dtb \ stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dtb \ stm32mp157a-icore-stm32mp1-ctouch2.dtb \ + stm32mp157a-icore-stm32mp1-ctouch2-of10.dtb \ stm32mp157a-icore-stm32mp1-edimm2.2.dtb \ stm32mp157a-stinger96.dtb \ stm32mp157c-dhcom-pdk2.dtb \ diff --git a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts new file mode 100644 index 000000000000..351be43b3d39 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts @@ -0,0 +1,132 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (c) STMicroelectronics 2019 - All Rights Reserved + * Copyright (c) 2020 Engicam srl + * Copyright (c) 2020 Amarula Solutons(India) + */ + +/dts-v1/; +#include "stm32mp157.dtsi" +#include "stm32mp157a-icore-stm32mp1.dtsi" +#include "stm32mp15-pinctrl.dtsi" +#include "stm32mp15xxaa-pinctrl.dtsi" +#include + +/ { + model = "Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1\" Open Frame"; + compatible = "engicam,icore-stm32mp1-ctouch2-of10", + "engicam,icore-stm32mp1", "st,stm32mp157"; + + aliases { + serial0 = &uart4; + }; + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; + default-on; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + panel { + compatible = "ampire,am-1280800n3tzqw-t00h"; + backlight = <&backlight>; + power-supply = <&v3v3>; + + port { + panel_in_lvds: endpoint { + remote-endpoint = <&bridge_out>; + }; + }; + }; +}; + +&dsi { + status = "okay"; + phy-dsi-supply = <®18>; + + ports { + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <<dc_ep0_out>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&bridge_in>; + }; + }; + }; +}; + +&i2c6 { + i2c-scl-falling-time-ns = <20>; + i2c-scl-rising-time-ns = <185>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c6_pins_a>; + pinctrl-1 = <&i2c6_sleep_pins_a>; + status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi84"; + reg = <0x2c>; + enable-gpios = <&gpiof 15 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in: endpoint { + remote-endpoint = <&dsi_out>; + data-lanes = <0 1>; + }; + }; + + port@2 { + reg = <2>; + bridge_out: endpoint { + remote-endpoint = <&panel_in_lvds>; + }; + }; + }; + }; +}; + +<dc { + status = "okay"; + + port { + ltdc_ep0_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&dsi_in>; + }; + }; +}; + +&sdmmc1 { + bus-width = <4>; + disable-wp; + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; + st,neg-edge; + vmmc-supply = <&v3v3>; + status = "okay"; +}; + +&uart4 { + pinctrl-names = "default", "sleep", "idle"; + pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_sleep_pins_a>; + pinctrl-2 = <&uart4_idle_pins_a>; + status = "okay"; +};