From patchwork Mon Apr 25 13:42:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 1923 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 5463B3F066 for ; Mon, 25 Apr 2022 15:43:11 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id k5-20020a636f05000000b003aab7e938a5sf6408272pgc.21 for ; Mon, 25 Apr 2022 06:43:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650894190; cv=pass; d=google.com; s=arc-20160816; b=Sf+ISKXSt75uUQFyLh25X1SQv0YTOUaj+iwzijkenK+r743o9ABnDUY4qrhkmUBz1B bFjvXEUt5LDx0tWHcyzsR1zWyB3a1prMuZ2/Lcuhi7SNqAchuQsQWycY9Ww4LYaSkBvG vgLzPlpWSPRA1V9E/QGt6B0wBuploiBAADo3ABU/AECFSM53xc6p27mOKEENdo/E51X1 3Hoy4VwZnj70SNMDga1yvvIA06ggFaTSi901QnVFt+oPwtDDl3VsOYUwaQBXKD0TzVU6 U5kvzVAGFJZvGxw2NWtPJVBoFGOY0pqz2Cw35j3TquOvVu0GeV4Qbe1LZqCF040kqTRT 95AA== 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=UxvBTEopQ/okFTsMJ1BC72bfXCJqFu5eUMlMjPivO1Y=; b=P733grJXQGbPXUQ6SxH/GGZ1SXxaRByY1tRP4FlunXLgnw9BywKF+yZ1xRQNwuKRwZ N46kq4bVCBxG6qUqGf/fMsmpPjNOxpZCHMmuSHixOc3018d73L9bp2CbRa7CiCCVNdlo JXz8OLOl4tbtAIQMecsfy7GbX7yjNLNG9vWxx7pOPVH9sDEsxgH6rlq3RCSHSG6hRMi/ 6P1G119nuo5MaZkeSKn0tTqDYr7ME+KqsqbnX4i5zpUaHvZsXfDKhwFMSp3RdgPmTj7h omEqBzvD6ppUkyu5+AhzB1S9Y9VBm0y0Tyhq01HycCq0ICAco5/G63tzV7dBurOZKTk9 io3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A3dgZxk6; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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=UxvBTEopQ/okFTsMJ1BC72bfXCJqFu5eUMlMjPivO1Y=; b=kcxDESQmS45MI/VFyNgTuMPaZO9S8h5du85Gk6gsNZa0d7KcFTF8EtXxxMqhI4ZfW7 Oad43utmRbhEgtyHG3F2cySHmkDksz63ySprgp1IgKU5qgcbVrBLI/y20/IR/SvzjAMx Lw7G2Ub67/YgF4I9YvgEN+exQoIbiiN6jNIsc= 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=UxvBTEopQ/okFTsMJ1BC72bfXCJqFu5eUMlMjPivO1Y=; b=EkgL8SulSP4L1DmmET4QhQjm5O5ja+V+hR0PTKu+7aeALwcRqSju50E1tJMa0eNU/K UdMiymTMNiEjmKXMn4B8JmEYrIaD05dJxg1/PkFOdx68FzibEDoJQ1txh9FDpGtoD5kd 7D1mUkRce/uKQC1dEr6JCcg/9/OAt2vdsueJ/0pXxRaC59PGDW1M3FCXIHDx743cxJNU RVsTmuERc4O6O1LtqRG+uIH2WDrTDQdc0sInKuxeZtlXW/NDcbJaEG9LPsVrab0mAAto y0ATemJYtnVjSfK0nAnHepfbA5X4CInfgYoCK3fQaw/asQ6AAjzzb+byOsaSd5JlIwRa TtZQ== X-Gm-Message-State: AOAM531qI53fR201vlYHjlKgS1kFQWfSjHxPBN24yuMVWuYaMLM4H3dx jRRWCP1evFDD+CZ/KYNdQSxCzb7L X-Google-Smtp-Source: ABdhPJyxf4HgWdCBQRlAr36okxrNpz58fUD1patQPfkAOv65Va4fIzSKiWy4d1BOV+6adcMKqHwbcw== X-Received: by 2002:a17:902:b212:b0:158:f491:8618 with SMTP id t18-20020a170902b21200b00158f4918618mr18367674plr.36.1650894190146; Mon, 25 Apr 2022 06:43:10 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6a00:22c6:b0:50a:6f7b:bb0b with SMTP id f6-20020a056a0022c600b0050a6f7bbb0bls4250147pfj.3.gmail; Mon, 25 Apr 2022 06:43:09 -0700 (PDT) X-Received: by 2002:a65:46cf:0:b0:399:13b3:dd8b with SMTP id n15-20020a6546cf000000b0039913b3dd8bmr15383334pgr.585.1650894189460; Mon, 25 Apr 2022 06:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650894189; cv=none; d=google.com; s=arc-20160816; b=OQTe25Qjg67mEN8w3vOCecohfrWXZkrMgFJKcutL59ZGuFztTe1CnlMyuBzPGKg+WI aujepyw0/Hk9xcyTqOJBzRaNtyE3AhDwPBazKvRzOezqfhqdEm3rjkIPHHJ78ocWiO6j hsTBrvZV46SBrQowuUPiSOn5Qh0oz38AgZPopmYfw0J7XK1dIJ+5TysQX6He8EBt/KLC B/pCzzD+K1BgVwEohhNFPhxqg3TKOfKNm9VMMEDeTGT1KCe8FlbtaHAMgIW7YdUXmScI zFtL2IUDDdyPs8GwR9wbpLeXBeNuI9qvFHUXbzzIzuBDlvhN+GEH5O0nl8LRDnFJwZbd E+nQ== 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=DmA69wy+os8Hg80rILXTGEh+ZOJNCDfLDcCt0b5+p1w=; b=xOAzrFkPXRrVDPhghIMrKTvEuVQI378TtqteQDvyJBHt0u9IdZZlfbjv21jFDA6ZHA nsyNf/Zrp7dO9SYW8t06eEvPdvAnc8WlMHDmianz/A5IgDAEfHsVxbcwGgnIS12J46qI PntCTW+shtwv3bh49FGTyxR3DlesqvjevnfJiNepHaqc5dOjp4ceG71lNWAKb/Z7IR10 rB2A1aMVntY3n1HRr66K3XXyLm2ImxmiBY2mUQ1RBTrHGx6KuOBMValjmJhe+qJzg7qJ /YFCws2Fdsn7l5mQmjtT7OIe3MU2517cMhRGYSBJmwVcGNnsNCUtWUp74Ow3GOMBnED2 mFDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A3dgZxk6; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 s24-20020a62e718000000b0050d3f9286a5sor1485298pfh.50.2022.04.25.06.43.09 for (Google Transport Security); Mon, 25 Apr 2022 06:43:09 -0700 (PDT) Received-SPF: pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6a00:1a49:b0:505:7ab3:e5c7 with SMTP id h9-20020a056a001a4900b005057ab3e5c7mr19050422pfv.62.1650894187656; Mon, 25 Apr 2022 06:43:07 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id c9-20020a63a409000000b0039912d50806sm9810089pgf.87.2022.04.25.06.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 06:43:07 -0700 (PDT) From: Manoj Sai To: Rob Herring , Shawn Guo , Li Yang , Fabio Estevam , Krzysztof Kozlowski , Matteo Lisi Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula@amarulasolutions.com, Jagan Teki , Catalin Marinas , Will Deacon , Rob Herring , Suniel Mahesh , Michael Nazzareno Trimarchi , Manoj Sai Subject: [PATCH v3 3/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus EDIMM2.2 Starter Kit. Date: Mon, 25 Apr 2022 19:12:24 +0530 Message-Id: <20220425134224.368908-3-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220425134224.368908-1-abbaraju.manojsai@amarulasolutions.com> References: <20220418144907.327511-2-abbaraju.manojsai@amarulasolutions.com> <20220425134224.368908-1-abbaraju.manojsai@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: abbaraju.manojsai@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A3dgZxk6; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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: , Genaral features: - LCD 7" C.Touch - microSD slot - Ethernet 1Gb - Wifi/BT - 2x LVDS Full HD interfaces - 3x USB 2.0 - 1x USB 3.0 - HDMI Out - Plus PCIe - MIPI CSI - 2x CAN - Audio Out i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus from Engicam. i.Core MX8M Plus needs to mount on top of this Evaluation board for creating complete i.Core MX8M Plus EDIMM2.2 Starter Kit. Add support for it. Signed-off-by: Manoj Sai Signed-off-by: Matteo Lisi Reviewed-by: Jagan Teki --- Changes for v3: - shorten the patch subject naming . - updated the dts addition to Makefile as per alphabetical order . - removed the always-on property of usb1 Node . - arranged the nodes as per alphabetical order . - updated the pincontrol nodes as per alphabetical order . Changes for v2: - corrected the naming convetion of nodes as per existing sources and bindings. - added the iomux to the end as per nxp convention. --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../freescale/imx8mp-icore-mx8mp-edimm2.2.dts | 175 ++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-edimm2.2.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 851e6faf8c05..05e62541e1ed 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -79,6 +79,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mn-tqma8mqnl-mba8mx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mn-venice-gw7902.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw74xx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-nonwifi-dahlia.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-edimm2.2.dts b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-edimm2.2.dts new file mode 100644 index 000000000000..70a701a624a6 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-edimm2.2.dts @@ -0,0 +1,175 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 NXP + * Copyright (c) 2019 Engicam srl + * Copyright (c) 2020 Amarula Solutons(India) + */ + +/dts-v1/; + +#include "imx8mp.dtsi" +#include "imx8mp-icore-mx8mp.dtsi" +#include + +/ { + model = "Engicam i.Core MX8M Plus EDIMM2.2 Starter Kit"; + compatible = "engicam,icore-mx8mp-edimm2.2", "engicam,icore-mx8mp", + "fsl,imx8mp"; + + chosen { + stdout-path = &uart2; + }; + + reg_usb1_vbus: regulator-usb1 { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usb1>; + regulator-max-microvolt = <5000000>; + regulator-min-microvolt = <5000000>; + regulator-name = "usb1_host_vbus"; + }; + + reg_usdhc2_vmmc: regulator-usdhc2 { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "VSD_3V3"; + }; +}; + +/* Ethernet */ +&eqos { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_eqos>; + phy-handle = <ðphy0>; + phy-mode = "rgmii-id"; + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + micrel,led-mode = <0>; + reg = <7>; + }; + }; +}; + +/* console */ +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + status = "okay"; +}; + +&usb3_phy0 { + status = "okay"; +}; + +&usb3_0 { + status = "okay"; +}; + +&usb_dwc3_0 { + dr_mode = "host"; + status = "okay"; +}; + +&usb3_phy1 { + status = "okay"; +}; + +&usb3_1 { + status = "okay"; +}; + +&usb_dwc3_1 { + dr_mode = "host"; + status = "okay"; +}; + +/* SDCARD */ +&usdhc2 { + cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; + bus-width = <4>; + pinctrl-names = "default" ; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + vmmc-supply = <®_usdhc2_vmmc>; + status = "okay"; +}; + +&iomuxc { + pinctrl_eqos: eqosgrp { + fsl,pins = < + MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC 0x3 + MX8MP_IOMUXC_ENET_MDIO__ENET_QOS_MDIO 0x3 + MX8MP_IOMUXC_ENET_RD0__ENET_QOS_RGMII_RD0 0x91 + MX8MP_IOMUXC_ENET_RD1__ENET_QOS_RGMII_RD1 0x91 + MX8MP_IOMUXC_ENET_RD2__ENET_QOS_RGMII_RD2 0x91 + MX8MP_IOMUXC_ENET_RD3__ENET_QOS_RGMII_RD3 0x91 + MX8MP_IOMUXC_ENET_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x91 + MX8MP_IOMUXC_ENET_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x91 + MX8MP_IOMUXC_ENET_TD0__ENET_QOS_RGMII_TD0 0x1f + MX8MP_IOMUXC_ENET_TD1__ENET_QOS_RGMII_TD1 0x1f + MX8MP_IOMUXC_ENET_TD2__ENET_QOS_RGMII_TD2 0x1f + MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3 0x1f + MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x1f + MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x1f + MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07 0x19 + >; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = < + MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x49 + MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x49 + >; + }; + + pinctrl_uart3: uart3grp { + fsl,pins = < + MX8MP_IOMUXC_UART3_RXD__UART3_DCE_RX 0x140 + MX8MP_IOMUXC_UART3_TXD__UART3_DCE_TX 0x140 + MX8MP_IOMUXC_SD1_STROBE__UART3_DCE_CTS 0x140 + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190 + MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d0 + MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0 + MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0 + MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0 + MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 + MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0xc1 + >; + }; + + pinctrl_usdhc2_gpio: usdhc2gpiogrp { + fsl,pins = < + MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4 + >; + }; + + pinctrl_reg_usb1: regusb1grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x19 + >; + }; + + pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { + fsl,pins = < + MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x41 + >; + }; +};