From patchwork Wed Dec 23 19:14:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1620 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2E7753F0D3 for ; Wed, 23 Dec 2020 20:17:47 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id e28sf158784pfl.19 for ; Wed, 23 Dec 2020 11:17:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608751066; cv=pass; d=google.com; s=arc-20160816; b=JsPZ07wC4OlGy61VTT8vz0J2o4w/ikr7m3gZy+fVgHEsp5UAKUI+kUN2oQx/A7hGTr Jb8eSIeaQBVSjw+K41nijNJdu6e40R1G3mat+Dvo+Ykv0PyQIl4/jApUM+D8irto+WpI UQW9m9+PGUa88cf1fZ22oeha7LDyaTJcW+i3BAp4AURWMurkLhuO+dZ2VMccMDHXeQXu e7szhTPYAzeDipbScmL8mdbcoU0VM1t8UmOvz15DjZeeN/yx7OPWhSmKoSsWnKcj5cTH g7aFGmnV1vu9sfq+Yf11CNBIIkZI/wOFlp99yR4Gx+SioWaVS7POVpd7pXf6r08gbU5x uRUw== 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=Rd6FwVbSAvMjBhgd5YoLqFORjpJa7qfCfpXqPJygmvE=; b=Wv9A+2Nx4Oj5kpDMF0aUZV1U0CC/LG1h9f0ugGLIRibKA2fy8VcdaJxgkBNK0snvzT P9F2H2tEPdeOmQTik31ITgCrYpl9Vl1MB5Eun3njN0VSEE+X1VsCJwpCpsS+9s0vzjw8 1XemDCdy4yz26IehVQXEy3IQ5Xkd/mHzyvNQ8tPrA820E2TWcULJwa423kcpK5GWEWwv /C2wA7MEtrHlzl515iQEY6x2XsWPlFM1l7d8ZCupwn1zQaeyvm4MoLV2Ye79UFC+fprS 6NufhbMchwP/hE2OyYzstb6J3VU/hZNT+WW4KvwuMbP1yYiUgHLzuxm6V/FDgCMs59en zyWw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=D8WmdU9c; 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=Rd6FwVbSAvMjBhgd5YoLqFORjpJa7qfCfpXqPJygmvE=; b=ak1G0ZCYt6U0aUYizI0ShXX3xxaeOWkx0cGuurhqmVREHsY5swn00i+EBWe1Z8oZ6U fz2yOnfkU9Cr2XVODiZzOUnXBTyrwqkDqKCvSFCmy7WCR0NCY68kLdA/A9DZnq19o61v iHHMAb89iuSgInd/vjgzKz9jXhriRqMToDCm0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=Rd6FwVbSAvMjBhgd5YoLqFORjpJa7qfCfpXqPJygmvE=; b=kwROTnsSAoVErJ2D+dXLayZR1WVuapb/t7UWC1uPKeSvH7BgzPPkZY9ITjDG2f45H5 qAIZ+TcpGy+M8JxneblNq0sgmMCytP+QF02PjBi7PAc/8hUmctuTJ3nAJl1J5KbK1XEK AsCNAr5oL0B1pO96VMXuIKi8A77Xb3Uf0TDd4XC42abjL4EzPrJU84ue0m2Nn+mw2nUp fS9km5kJxuKfyg9n/aufnj926vyC1oQ1YkhQP9/HGQPyF5TG6B4MaQG4QfjvRcSpqOSs NgVyDLdnqjtCrcJhyrlQgNfAS4qiPZNWhFuq3guhRjDitzlpMYcqqzshskOvG8x44EnG XOtQ== X-Gm-Message-State: AOAM531SKGvaupIDOrnv4mfRCAbO2ddPnjS2zkZLcK+5+Y52gOyQQupv 5Md+Af6IOc2sMxqVg3Mzcalz7Mv/ X-Google-Smtp-Source: ABdhPJyFDAlL7bhY0t9TJom6hta+Oppw8/gBU0M2mllPwb2C2FH4o7oTy+t5EF5uXv1r/l356gv3DQ== X-Received: by 2002:a63:6e87:: with SMTP id j129mr25931320pgc.304.1608751065977; Wed, 23 Dec 2020 11:17:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:bb95:: with SMTP id v21ls345730pjr.0.canary-gmail; Wed, 23 Dec 2020 11:17:45 -0800 (PST) X-Received: by 2002:a17:90a:d58c:: with SMTP id v12mr1017117pju.37.1608751065248; Wed, 23 Dec 2020 11:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608751065; cv=none; d=google.com; s=arc-20160816; b=coCXluzze4iyOj0GD+r7kvfNn+Eao0E/YlOO1TjEDyOOiRh7fn7/Jdwa7DVqicu93A 9NA4ebSiqA8rz6NhEcDWkw5XPKfc2Sz5U4741tDAUgXtHtithuUmZD/9lRlV1TidONwN MPMbY8jvykA5Ksqvzr6OP305OkGNmo0RKQZQfT6FjqwD1BfT/uq/puJxGZyCkP1xGJyH jSn/Q+tB1bd2M6DZLrdhBTVZH3onfvWlyVRNgZaX/C+LGYrVu5FJqZD8FrhhQBb11TOv uF+c5qxlqtuvUQk9tLo6W3TxwCrIbraBXWvThtQu2jIwG25DriJI9E+EXh2azcfzzHbX 3T2g== 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=jQDHwm8Q1G8tzmRwRpzQML3DFcNr08btuCeAhlW/y4M=; b=wbil7BZCEHKpewaCEvxrNM+zyDFMUQGfchvV25E3KxMTsyRKTb6Vp8xxGm17qZJF5Z LAfmyLFHKbLvepQVgf0/xaDveE1AkqmCokcZ73MElk/ow5GInMZAZU/Skg0HLjHgNYf6 jt2sAvpuwintcJTYJB2LiL4gi86Z9/26Uw4sy6rFs3jc2ERgbXQWHgzrtcSVnQcWYGuT TMi7e+KQXd5BS0WqrdbNX7u2z7yVmwqRzz4Db4OG65y+e188Y/wUxEI0ICX6GlsOW169 HhpD8dAm9TuDVKWJw2ftf9lmajxHreyZz+CpSvr1Hnlqy7baeshQk7dms5kNLInzICW6 MKFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=D8WmdU9c; 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 z7sor10800130pgc.72.2020.12.23.11.17.45 for (Google Transport Security); Wed, 23 Dec 2020 11:17:45 -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:a65:6116:: with SMTP id z22mr23233285pgu.264.1608751065006; Wed, 23 Dec 2020 11:17:45 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a884:29f0:6e54:608c:e1b9]) by smtp.gmail.com with ESMTPSA id i2sm397640pjd.21.2020.12.23.11.17.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 11:17:44 -0800 (PST) From: Jagan Teki To: Maxime Coquelin , Alexandre Torgue , Rob Herring Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki , Matteo Lisi , Francesco Utel , Mirko Ardinghi Subject: [PATCH 5/5] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 MicroDev 2.0 7" OF Date: Thu, 24 Dec 2020 00:44:02 +0530 Message-Id: <20201223191402.378560-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201223191402.378560-1-jagan@amarulasolutions.com> References: <20201223191402.378560-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=D8WmdU9c; 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: , 7" OF is a capacitive touch 7" Open Frame panel solutions with - 7" AUO B101AW03 LVDS panel - EDT, FT5526 Touch MicroGEA STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. MicroDev 2.0 is a general purpose miniature carrier board with CAN, LTE and LVDS panel interfaces. MicroGEA STM32MP1 needs to mount on top of MicroDev 2.0 board with pluged 7" OF for creating complete MicroGEA STM32MP1 MicroDev 2.0 7" Open Frame Solution board. Add support for it. Signed-off-by: Matteo Lisi Signed-off-by: Francesco Utel Signed-off-by: Mirko Ardinghi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/Makefile | 1 + ...157a-microgea-stm32mp1-microdev2.0-of7.dts | 120 ++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b4a9cd071f99..1332622a3f9f 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1072,6 +1072,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ stm32mp157a-dk1.dtb \ stm32mp157a-iot-box.dtb \ stm32mp157a-microgea-stm32mp1-microdev2.0.dtb \ + stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dtb \ stm32mp157a-stinger96.dtb \ stm32mp157c-dhcom-pdk2.dtb \ stm32mp157c-dhcom-picoitx.dtb \ diff --git a/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dts b/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dts new file mode 100644 index 000000000000..b96e683072e2 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dts @@ -0,0 +1,120 @@ +// 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-engicam-microdev2.0.dtsi" +#include "stm32mp157a-microgea-stm32mp1.dtsi" + +/ { + model = "Engicam MicroGEA STM32MP1 MicroDev 2.0 7\" Open Frame"; + compatible = "engicam,microgea-stm32mp1-microdev2.0-of7", + "engicam,microgea-stm32mp1", "st,stm32mp157"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; + default-on; + }; + + lcd_3v3: regulator-lcd-3v3 { + compatible = "regulator-fixed"; + regulator-name = "lcd_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpiof 10 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + power-supply = <&panel_pwr>; + }; + + panel_pwr: regulator-panel-pwr { + compatible = "regulator-fixed"; + regulator-name = "panel_pwr"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpiob 10 GPIO_ACTIVE_HIGH>; + regulator-always-on; + }; + + panel { + compatible = "auo,b101aw03"; + backlight = <&backlight>; + enable-gpios = <&gpiof 2 GPIO_ACTIVE_HIGH>; + power-supply = <&lcd_3v3>; + + port { + panel_in: endpoint { + remote-endpoint = <<dc_ep0_out>; + }; + }; + }; +}; + +&i2c2 { + i2c-scl-falling-time-ns = <20>; + i2c-scl-rising-time-ns = <185>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c2_pins_a>; + pinctrl-1 = <&i2c2_sleep_pins_a>; + status = "okay"; +}; + +<dc { + pinctrl-names = "default"; + pinctrl-0 = <<dc_pins>; + status = "okay"; + + port { + ltdc_ep0_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_in>; + }; + }; +}; + +&pinctrl { + ltdc_pins: ltdc { + pins { + pinmux = , /* LTDC_B2 */ + , /* LTDC_R6 */ + , /* LTDC_R5 */ + , /* LTDC_B3 */ + , /* LTDC_B0 */ + , /* LTDC_G0 */ + , /* LTDC_G1 */ + , /* LTDC_DE */ + , /* LTDC_R7 */ + , /* LTDC_CLK */ + , /* LTDC_B1 */ + , /* LTDC_R0 */ + , /* LTDC_R1 */ + , /* LTDC_R2 */ + , /* LTDC_R3 */ + , /* LTDC_R4 */ + , /* LTDC_G2 */ + , /* LTDC_G3 */ + , /* LTDC_G4 */ + , /* LTDC_G5 */ + , /* LTDC_G6 */ + , /* LTDC_G7 */ + , /* LTDC_B4 */ + , /* LTDC_B5 */ + , /* LTDC_B6 */ + , /* LTDC_B7 */ + , /* LTDC_VSYNC */ + ; /* LTDC_HSYNC */ + bias-disable; + drive-push-pull; + slew-rate = <3>; + }; + }; +};