From patchwork Fri Feb 26 07:02:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1649 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 63CC13F096 for ; Fri, 26 Feb 2021 08:03:47 +0100 (CET) Received: by mail-pg1-f197.google.com with SMTP id j3sf5573220pgb.3 for ; Thu, 25 Feb 2021 23:03:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614323026; cv=pass; d=google.com; s=arc-20160816; b=EjFtbo2vagw7uftmS7/A98QRlrgvItPHlQ1mBqNwQz8iWm57WppDfLbtIB376zjBnB +Ipn9HEjd8RLZNuW/YhmOqk0aoOjg2nPXSUs5TR8PEieNZ63fUGPqv3CWb+kVNqWYw0I 5jMkI2buTDHfPrgyDHR6PEMgdnlXUALd1aUKo2DXQcGEthPs+iB5mt17Pz+ZH5YUuBRC LJ2wF3kGC0qxJfB4qldxoiaUrp7MDvEUetFcYY6iS7UAqNSRL/W5YYxGJnXbajpTpCGO Uybs7DacukrLRoNReVz+USG1hyF/I0sN+FFuWFyccAHWPBt0BE+YEEPjrHupaJ3sT9gC zFmg== 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=UMcOSp4eBZYXBkKFDvcSLdRXd5mw6PSUnfx/w/XSgdM=; b=AoS0LIHIcb2nr0Wrq4NzBHnR/lePTEmdJ8aZ5RNrTe2GCaDHwUJFwcbj2opu3rTNRI sqGcgAMTLlT7gSYDPEIcIET8uVdH8Ssb6USWTiZQvtnCBDXKzyBAQChinpZ9QU1vQgDo KCJQKtlkFEUszXGQ3+sfiZ4dal3IXyin7YnTSR3NWpyHSqIb7IylGiyDfiwLHHceO2Sz 2Yvx9Jwop3JzhKK+cp9QJX8QeFpSs4ASqXOvRpDMLFx3zTruok4EZnudMFL9U0b3WQ+B iODzyBz7IoYZPRrxY3+olXZJFKwTXgk0oP7FJYR+GO48CoymaXlvBidWnkn4CsFJIQg6 FvtA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V0GHHKbR; 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=UMcOSp4eBZYXBkKFDvcSLdRXd5mw6PSUnfx/w/XSgdM=; b=Aax7rNBBb5dqGxeDKj50IW31NZ4hr2T93918PAyFFox16ZW0glRaHvg94WAQ77O8O8 t9pl605O5guRdWSh5IpYMCJo40eK4cgxadUqZyIs7G1P2uLquRzHBDuadRI6jd5gfAgw ZOkhIIO8ujZZeJRzlA5h84AZr7w+aYfZ9gF5E= 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=UMcOSp4eBZYXBkKFDvcSLdRXd5mw6PSUnfx/w/XSgdM=; b=EXczBZdSiZeVfvP8EKFE13F0N1gxTjAU1lnhen50AC5z/6M4aONnX+qCXksiw8ZFez Vfqv4X83yN7+pl3VrCAdZOQY6uCLqDebAAn1MUcFluHYoH8JhNN02dkMRt74GPWtDBRu PTh8vL7l4Z+FLVMEINvfRocEjvcMoa0aOVvk0PMNKmb52OsoSV4QIsVwjdv5Bn86s014 Lq5g4EoLeKhcDkr+n3O68Jl/fG/2z7XX1c4iImCJmS0hiR9DG72YqLVla0gbxcgFppZo l+dD4oc+dKFbbzoVq5jL72kXh5KwKkPpytvhLMLZC5pmIbD33W4NevOeLDQVBlsRaIKz AfsA== X-Gm-Message-State: AOAM530NoCVTI4lfLHmC7NPXnsajX2yGNW4pLe+HBCLJISFhf2Tocofk BHPf4tFdm0kZftbwgW9wuMxCrK4K X-Google-Smtp-Source: ABdhPJyixyqXFVEEEb8HjL1qfCM2mpUOIdRFf2uB2cDdGd0qJawoDI2W3wtK53hmtkW3aSwneTKtsQ== X-Received: by 2002:a17:90a:4b49:: with SMTP id o9mr1974231pjl.182.1614323026210; Thu, 25 Feb 2021 23:03:46 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:4c89:: with SMTP id m9ls3238660pgt.8.gmail; Thu, 25 Feb 2021 23:03:45 -0800 (PST) X-Received: by 2002:a63:1565:: with SMTP id 37mr1701455pgv.391.1614323025590; Thu, 25 Feb 2021 23:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614323025; cv=none; d=google.com; s=arc-20160816; b=hg8QZX8cRq1JeOpq15KZ7JZA1VUdxDt7/srdkG2TFxdKNrWpZDh/NpY2iXM/fY8N5u OVUQx58SYbT1PEpZpg1Ni8mZ9Pm3kue6i11SWbaHxZiia2ipQI9UgL6nq6WRid6zs3c4 wU+2Tw1suolGpBTpBVxDtmTqXB+9xNPlz1DcUm2J7gyVzkIQe7ekpRx21bn5urxMgxjQ LboxYzuHNpjqMT4d26fQJ7Ua9NVYEJ90DekqQfmL8uYi+M5BifEaij+k1D0wKmuUMIVW qzogtO16pEWup8mMxw+rLMbghrsZgviB2pWsj0c+kDdxSIPX8jQMNbJqlsYMuspZrg7k 6x6A== 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=8NBz1gQTegMTBk7VZTnZCpJq+81uQkfMqVu5DuOlqxI=; b=JEG0L0on5wTzk4fe4WzZnfusrNP8IygtNQTc/ExcT9dSlasbohnOoEM930F645x5hJ 5vL3LNdflmbpCE3eXm3Q2t3Im4yARvm7HAeZ+AH//dje/5ULhmb4g+xyu4LDM1AVvYcl Ytf79LwPeFt258A32CJqtBKMwqi5VCXgbfRy8DSxXBUQFho2I9rBe894MhfoGPpn7di7 VFhDFSfbWIHD9JcTno5Vnia0gj0jVvQbxCuscaQSk9e90gwGonKlzKmDbK1jNWBO8WfK AWReyptI6ys3X1AwJ+HXTdMUIpQA7FwMfoflVTDCA7KOVCPzbCjqLwCB5PnTzD5PE7Ff 9uwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V0GHHKbR; 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 j8sor3992638pfh.86.2021.02.25.23.03.45 for (Google Transport Security); Thu, 25 Feb 2021 23:03: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:a62:184f:0:b029:1ed:e5ae:889b with SMTP id 76-20020a62184f0000b02901ede5ae889bmr2018068pfy.50.1614323025308; Thu, 25 Feb 2021 23:03:45 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.220]) by smtp.gmail.com with ESMTPSA id f7sm7592156pjh.45.2021.02.25.23.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Feb 2021 23:03: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 v2 05/10] ARM: dts: stm32: Add Engicam MicroGEA STM32MP1 MicroDev 2.0 7" OF Date: Fri, 26 Feb 2021 12:32:59 +0530 Message-Id: <20210226070304.8028-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210226070304.8028-1-jagan@amarulasolutions.com> References: <20210226070304.8028-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=V0GHHKbR; 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 --- 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"; +};