From patchwork Fri Nov 12 05:38: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: 1757 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 662E23F18E for ; Fri, 12 Nov 2021 06:39:13 +0100 (CET) Received: by mail-pl1-f197.google.com with SMTP id j6-20020a17090276c600b0014377d8ede3sf3748441plt.21 for ; Thu, 11 Nov 2021 21:39:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636695552; cv=pass; d=google.com; s=arc-20160816; b=Sc9fn4E28ssL6VpTrgXx8dbx0vxiJy8gJE6ziXEir3cYfnQiOz7gLJ3KUBREDRLBEs r4/WtVsZibyVfMF/OLQtzE6jwmr9iVYMe0koExL0FIP1YW2Gy/nYLKig5DCVNJFS4I6+ mhgwBPTLp3QEFwnMUC0TAxwdF1MD0Qg7BvECmoXH13W3xlc08c7u/LSF04isNERnzifF RD+SJjkm1znN90fYZWUa6CdqFtvZmq+I8x0Z1dy0uYVnvUDjfjN4e72csmU4567Gwr5s 2DIQvazL5fANTPZ/eY05iQxsA4U60oTMHNySHTo/aTzq8J8YKwShFcFD2euW62U4jw9w tmUA== 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=TMCBxPvAAYAMEtyRRWiAQEfLnKvhZq7x9kCQp2Uks6s=; b=FyEyFGtj/Rm9+c7vZFV+jvewnPA1WD+O/jo4gJv2ixdeJTM4NH2M1an9frqCI0l35X OYgJ+i8MgySlXmygNiMHhcSQtwPzvxitonQtiZTpTmXsKnhe8Ty9OcFWob2EL8lkWtbG shvM9SK5Sl4SNLxLosbQ3HGPYbdct7kQFca2tDvJ9EdEt7uI2MNT7mNC7ewq86KXFl/s OIsjEBVvs5518UPx1wbxVwC5bsOww1O5AD0oUzq3p15ScLYifdZmK5r/fO+thsPed+Sa n0rWRoBTe2q7Ux5Mjp/UJBpvgVQpPsI6mV7uyIE8YVYL/SP4TLGMCXr37jWcL9/LFYo8 Ssrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LsRTIR3Q; 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=TMCBxPvAAYAMEtyRRWiAQEfLnKvhZq7x9kCQp2Uks6s=; b=PDWjWdZbEpjsAxnxMl9Va2Mb+HiJe4sPDNtYjG6yzranPYyzTQw3HwH4g4ks9YgreB 7sN1jSwAcDF1ae1EgpjFwXulLFhcvmsPrgr+iIuj9xCbormoO5okM6m8vLJjzKzwyoSj 7Zkoac7i7tLi44HfHgL/FsxHJ3jfpPHj1nLVY= 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=TMCBxPvAAYAMEtyRRWiAQEfLnKvhZq7x9kCQp2Uks6s=; b=UiTHCreUKF+TWHwlqdTCj65mjPYGimLtrcpHPu20EbYhY2cCiaLI1SzmCNeDQ5BWPW tWYrbbSFTm3ldzJro0LvwIoYg21PdZyhWTjrDoSzko0DiG8GlFav3Ff6wc9JeUyebVYK a3v2sLHeGDurVEYrD5KUUlpQAfI8dTGC6Vv3Dzxb8+q9r+rtU9OAr84KN/swnXL1zHP/ GQDh/l67jpzDmHnbCeEfFizhiGFrcrnW7NPHMbXJCxq462UW8eUoJ+FLaFd8FODIA0Nn Zdac5WK2Nwi3R8JwBpsgWjx7wwone5qu97jiWQ1nqO4BDDgl85YKNBTXSlApPHT4i62A WnQA== X-Gm-Message-State: AOAM530JpxKPbJMOnT1XXNMyJDWOFK3yIFqhxgpeqUlt5a+ynN9WiQK/ 2rXsKY1UF6svSTw8djt5aXDD3N9Z X-Google-Smtp-Source: ABdhPJwc42zsSgdnixUCaqKQ6oO3dxOtJfPmYQ/TbBofXXlafn4Rjer7A2RbadZbKzPBQCH61GZ4FA== X-Received: by 2002:a17:90b:11c1:: with SMTP id gv1mr33587549pjb.208.1636695552235; Thu, 11 Nov 2021 21:39:12 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d4cc:: with SMTP id o12ls3522630plg.11.gmail; Thu, 11 Nov 2021 21:39:11 -0800 (PST) X-Received: by 2002:a17:90a:fe0a:: with SMTP id ck10mr14927165pjb.216.1636695551600; Thu, 11 Nov 2021 21:39:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636695551; cv=none; d=google.com; s=arc-20160816; b=VoojvPdxVJfTst/pDqOviQpJ21u3xv82v5aecythsQ8VOPyJwY/ZpXJhu+HGCqqGIL gH+zmq2ObKL1ilAl7rgjKFKbZYr6S87rXTt2BLwpwpZB6SC0KHCX22+pQGEDk8zMX9Rg rfZSAnksVnl9VGzLePEI3MZzPLjrRDa9bU9gt7pnPHZs6l+Vdl/HZrlbhoVVRd3PkCKh 2dopUcBgOMU1ZsCZohqYFq3BoZp7tUXwnRjeULNY6Th2ov6yMkCXIq2IyjJhiESGMWLX wILj5UOVKFFcWjsdl+Ai9vhxJTIAjbBIRIWlcpgWMol/djdW0uGJShSfYaJFX2qJlYFg Gzow== 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=zwSmaZ0/XBjCCpcjkMDJ976dMmOGPgUfSWLa9+mY8As=; b=QK2eR8MW+BQg/3xcd6u4ZJ93NvidF6EiYFlJ/GIlcOLzNlvfDI2I5gGbjCjDT93J6i lg1Yvehnaje01AAPUIaxAPgAAPIsPoCqlKsLkPgr9f/NSXWWei/p9vCeGso++9TBu53i IVBB9nxLk1PWFxI84obZqdxP0qPAZUWx3oEoIu425AXgvS9CF10EVB3pc7Hy3JOb5aT4 RIxlvQmY4VD01gclme36GRvqWTBAhyx9jDYmo4M6E8b2a3/p/nX1/mnElnG61TdgqO+2 ddIv5W8nizf7j7yQbfakkN1cIB4rJm/wwCHIUC1JGus1KcKw7LRIbB55+gqG/vGRIdZa fFhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LsRTIR3Q; 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 e5sor3571870pld.63.2021.11.11.21.39.11 for (Google Transport Security); Thu, 11 Nov 2021 21:39: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:8f93:b0:142:8731:1a5d with SMTP id z19-20020a1709028f9300b0014287311a5dmr5490076plo.60.1636695551306; Thu, 11 Nov 2021 21:39:11 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:de19:8cdf:97cf:a6b1]) by smtp.gmail.com with ESMTPSA id v38sm3764345pgl.38.2021.11.11.21.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 21:39:10 -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 v2 3/3] ARM: dts: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" OF Date: Fri, 12 Nov 2021 11:08:56 +0530 Message-Id: <20211112053856.18412-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211112053856.18412-1-jagan@amarulasolutions.com> References: <20211112053856.18412-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=LsRTIR3Q; 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 --- Changes for v2: - none 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"; +};