From patchwork Sun Feb 28 15:43:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1666 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 427523F069 for ; Sun, 28 Feb 2021 16:44:06 +0100 (CET) Received: by mail-pg1-f198.google.com with SMTP id b37sf8302515pgm.2 for ; Sun, 28 Feb 2021 07:44:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614527045; cv=pass; d=google.com; s=arc-20160816; b=yEhw5+J7+Ckdqr4UaP1+9g++y4Sz0q+mgimCWx5aMKlvva2awxaaULzGBk087V0SZj KZ8I9liQUNHEuPVRp/rYfLsDmheRjOaWqhYqPfoA76tSsr3qzb2qXjWQYpUh1oa7EGYx Q/Tb+dk0jiVmjDsi9fq/IiaSws1OGmThHb5ORdr1hqe6XcbqbW1s8IkQYTDPgmK6K/NQ jFYwc+0WRPx/8ExlIP+Ht5dA/JGdKBnJ0VSuP7YcQapUo5yYj3bQNfZMfntskIsl3UAA eSK7Osh+CMeHCasZDsWP0ADytmqlNWdrWC8XgHRCHhxrC1BUzmuS6ieeYHeLAsLguTXD Q0fw== 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=RNswcVDxK0BK7drJ5zhGPOAoTF3H1ItQZleBACIDD3c=; b=EPyIevij4WmZZGu6RMHgcNcyftNCId42kHAzKjrgdN3VLh6CBdeUoIB20DZdkIM5P3 oNjXLA9D7gKEY+vtMHTjFy21looZmOI+TcE2uGnz5z7jqHGoyUmKsKGIbUNOr3nLmz5s zBc0RhtvCRuYoLa+IZ2rqO5WDWGfVBtZ4xGM26a12iev5nUPBo5zRS4sTuFL5lNNhiuy Q8ufeYEV8vaBhzWitgEWSIO3ciuiGu9FwMkSCmUI+/IZR9XZjl30Q+IJOgOYLzsZ9Y4v rnouRDa5H1+U2KBUl9818DHuPGMp0nPtHlSS/judfZDNxzHBcUVizohGtTc8ZOSgLX6L C37g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=i3I8yuxw; 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=RNswcVDxK0BK7drJ5zhGPOAoTF3H1ItQZleBACIDD3c=; b=coDYSR0AeGiEKZ0jNO6faVD03K/9UC0/RyN47ZgOATmEBd1GjUBUsJJsob4W/2J7d2 5fueAGC0bsyowKvwbGm6dOQ3fV+BILMZsZ/RSTOu8Yi79vZ5pRc4cFsiK+rzHNUpnn++ cS7CwQBkk7WEPUGygxUJcefFqA5mFDwh6s7cs= 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=RNswcVDxK0BK7drJ5zhGPOAoTF3H1ItQZleBACIDD3c=; b=rhwN3lHjkH7uQMcSPOf3m/3iww8K1cpPV+3WwqDwcB538whYjdZXAcHXU0yWx5s7y8 kpSj5ZpLxnNumbDcXlDMbrCcaireeNL84Y0n+i1DphBMH/abP4EHbp6fQRr/+f3ICwKJ ZahFp0fhSz+z1liZ8faVY8LZzRRYGR23V7nPcmOJIFPzTA23kJevDv4ujXv44SlFtcXX Qr9SatKaL655UP97RiZsQ0jIVGxD2J/S/cTbKYxfzSfr/u9JVJl7J70w9zwNBk/G3bPW d9kVCF8xKZ2bp3B1fIO0n0FORKYfMcl43ZqkWRVphiGKtW/mxAyFPNl78NuhsCauSh/O 4g7Q== X-Gm-Message-State: AOAM530tTS8HvAWNOdbxrwRMQeyvGNkNiJdD/g2888TECULFbCab3jm3 mNey8ogD3+kXHYRCY5g8TkvS5SS8 X-Google-Smtp-Source: ABdhPJy1Ts2GF849Sj6+mmbrcZhF9AjuYitNvqd7yqhRMlbMEnoyBtMohbGFDrEt58+XOrsp68EtwA== X-Received: by 2002:a65:6451:: with SMTP id s17mr1710826pgv.397.1614527045100; Sun, 28 Feb 2021 07:44:05 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:530d:: with SMTP id x13ls511481pjh.0.experimental-gmail; Sun, 28 Feb 2021 07:44:04 -0800 (PST) X-Received: by 2002:a17:90a:df8a:: with SMTP id p10mr13328899pjv.4.1614527044468; Sun, 28 Feb 2021 07:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614527044; cv=none; d=google.com; s=arc-20160816; b=nDKoYsWEAqV3x6tSx92905UEJpySaBX0P28+o24O2Mpfv+F7ZOS/wHAMSL/th6J1uw uFQSiYGTm5xndodt7kksy1dZBkfqXijQyMJh1pIeTc90DCIfMBYHkW0rgGXL4g5TvXPd 4IYpNkWHpiO2E7o0wzn524nNOhjOje0HEt/72W6Mi/r4UWUEG1OtbIfQ08MSV6G9KtMp 2ajz0tarwXkEqjDb+ML4JyBhs06yDWsVujvcWKYvIqYG0PwlW4pdY8xe/2w68vi3VCkL X24v2aSGIaToodeyqXDRZaBFesnlU/ak8OQ/qUo7TTyBwIguQuupgVSZ9M0tmYR/kd2d Oh0w== 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=PIYDW3YaZRfQxxyFHjtnBWlLfgjWRH01uFNUNiP7kwI=; b=EhaUFpUNkPQPFBxa+QpyX9wQ5iXryxRMT1VNNhdKYbv+ClW6NwZHWILMVGKqW7cIBo OCM0uZixXW/qhwRE1mWYN1BtCY6zv5iZbgU6Ro+Qf7I4lYl3ihO+Pw3hWxbiHQ5WF2JU 34qP/pwb90VnV8qzcbDMDdyixq+g7ZrZAtzY1N++/QPlXI/SWu76VvZY8VT68TA4Zfd7 sLzki/9X9Y8U/USTvZVMNcPAF82L36mwmceOKy7LdlMpp6TewYdOu6CiKSPZOn9Go/Gb WX+I5OKj+U0P+toZsUhSYdpShXowVm9jmjbXEoF3j58tF54HlzD6aORt3sHFIZFMCToc 8t9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=i3I8yuxw; 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 v7sor3121470plz.14.2021.02.28.07.44.04 for (Google Transport Security); Sun, 28 Feb 2021 07:44:04 -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:e8cb:b029:e2:9906:45a6 with SMTP id v11-20020a170902e8cbb02900e2990645a6mr11689882plg.41.1614527044213; Sun, 28 Feb 2021 07:44:04 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.225]) by smtp.gmail.com with ESMTPSA id j3sm13522133pgk.24.2021.02.28.07.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Feb 2021 07:44:03 -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 v3 05/10] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 MicroDev 2.0 7" OF Date: Sun, 28 Feb 2021 21:13:18 +0530 Message-Id: <20210228154323.76911-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210228154323.76911-1-jagan@amarulasolutions.com> References: <20210228154323.76911-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=i3I8yuxw; 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 a STM32MP157A based Micro SoM. 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 --- Changes for v3: - updated commit message Changes for v2: - don't create carrier board dtsi, add it in final dts. arch/arm/boot/dts/Makefile | 1 + ...157a-microgea-stm32mp1-microdev2.0-of7.dts | 154 ++++++++++++++++++ 2 files changed, 155 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..674b2d330dc4 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dts @@ -0,0 +1,154 @@ +// 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-microgea-stm32mp1.dtsi" +#include "stm32mp15-pinctrl.dtsi" +#include "stm32mp15xxaa-pinctrl.dtsi" +#include + +/ { + model = "Engicam MicroGEA STM32MP1 MicroDev 2.0 7\" Open Frame"; + compatible = "engicam,microgea-stm32mp1-microdev2.0-of7", + "engicam,microgea-stm32mp1", "st,stm32mp157"; + + aliases { + serial0 = &uart4; + serial1 = &uart8; + }; + + 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>; + }; + }; +}; + +&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 = <&vdd>; + 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"; +}; + +/* J31: RS323 */ +&uart8 { + pinctrl-names = "default"; + pinctrl-0 = <&uart8_pins_a>; + status = "okay"; +};