From patchwork Wed Mar 30 17:10:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 1886 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 17F543F1D0 for ; Wed, 30 Mar 2022 19:11:00 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id r11-20020a63440b000000b0038068f34b0csf10720711pga.0 for ; Wed, 30 Mar 2022 10:11:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648660258; cv=pass; d=google.com; s=arc-20160816; b=NvDYLR9eb5bqNurHj3mEUR42snjo7V0cyMe5z8heST6e3gmeOkQ3Mds5hZM69nMu+3 YQpo5fIlN07peUVGZQspOmXfZJX8qvsH5ihB759Vk+4dScPPFgX7rpPd+cZHoqvzjqa9 yZW9EBUj82yhHB9GgrCkyQ0pLt90S0S1sYqaJqUc4SAQleYmptWI72Bj7ix1YAG8rz1x seT/u5d5B0edqh5Si7ufE9y46xBfwGusDBUPvj4fPTCoSvlTCWCcRSKs+mA0Mexop8Gi WfD+HaLkCnQei0ND9+O+wZaXhmymtQapCWiYH86q2ABg1htR1+NnnOfSeaPqDvWiv0lV WyGg== 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=bIgvZkTqtBE1vI4jkb9kG+FVbVqc4Vcv2+iWktKyRB0=; b=G8ZGCoEjCDgpcQGlaVe+Hi7y1ui1kskGwNe522onsz+ZG/NlRc8KKH335CRod1hpFm 1N5ou7Exkw5JvUl0eNVRW7F8hSigvjR5t/oO4wDjwXBVmn9UNnT5VKz2zpOsjB9RVKZo XwXkT7oNastqk3ngsBKTjFHqYoel5m1tL/HEjGsM+N29uEQFGGMpUKmCM5be0i5X+kly xq9vJsIR0mYXpJkizTSa+AfetzsdVdA5Gbj19A6xeb4oYi0aseuO0nzhrbVKgBKi8O8V qSCBJkNE7wyffhSiLsn1vEi9QlP+ACUQKPjISmmpwoJSlLMMxCSYvzZ3zMnL72ZgUg3j Gclg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CoSJk0l/"; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@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=bIgvZkTqtBE1vI4jkb9kG+FVbVqc4Vcv2+iWktKyRB0=; b=T12whcpRI2uLfdYWYs2ycB5UaGhFMWZg80SzE1c9GxEgwWofkk5sCJ/0FSMqwKsU6/ P5oeYmIP4sIJe3HOuXhPe215ZBqURWf1LTtaPVBn+47I3zXu4ExCVNUD5s4V+BJmkTLW navprk0WlpsP44Wzd+aFBOY1TGPIF2+4uJDg8= 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=bIgvZkTqtBE1vI4jkb9kG+FVbVqc4Vcv2+iWktKyRB0=; b=vvwpjuSwO5Lhfvb5hsU+hrDN7xHIGNrMBefsnGyJKC/5pohUJeKi8M5ksm7XVJ4Vio fW6w6F0GnWtQt3scIKXRUx0IZvYwCoW0DL1cNrabljJZr2w3bKwelLqAid5PiCNNdvFV MP8oJb72aA/adNEdDLXrSyRXKG6T/1aRQu1bMfZKdOPicqP2m2OKmMbPr8vMO/Y7gPuu YYpGMpru1hlzMFw0gR5TBXE26mHbG2VIKLMNOoxcY9XRH8z0woKVLJ3oiUpV/YUfY7Dy c19GnmJmpiNtOYKGLnCnJOMZlbE5Ug1pwotgg9GKGR3pvWmyfVmMzagStcfUWdqcriQp +TQQ== X-Gm-Message-State: AOAM531MJe3SLWdhCNkXtI8uKEfaZoQZEYaPE9OyW4Io/WWF1ituH1dG dPZNpdvMi/R7Y6QbfYH6jbZJR5El X-Google-Smtp-Source: ABdhPJxBpJBdZpongEdIsK8cYZVw/HFW9r5I520vcES+Juiz3ny6IUbDjIZFJNk4s0SlYiTgL5zU9A== X-Received: by 2002:a63:d64b:0:b0:382:6aff:3e43 with SMTP id d11-20020a63d64b000000b003826aff3e43mr6935343pgj.438.1648660258764; Wed, 30 Mar 2022 10:10:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6a00:4195:b0:4fa:9165:1ae6 with SMTP id ca21-20020a056a00419500b004fa91651ae6ls1359492pfb.5.gmail; Wed, 30 Mar 2022 10:10:58 -0700 (PDT) X-Received: by 2002:a05:6a00:288c:b0:4fa:8c08:aca9 with SMTP id ch12-20020a056a00288c00b004fa8c08aca9mr517808pfb.62.1648660257979; Wed, 30 Mar 2022 10:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648660257; cv=none; d=google.com; s=arc-20160816; b=JpMFb0uuMp+oh7Y3jin0WS+/BYMenmBq8Kn4TIMgrJulUOa0RBktV2D5PM1WRytT8F xs0G0XZuYHJ8UGvr1fjpGWmT09WCUjZsVTUnjedMnMwymmSC9JK7SeecFKjJAHB58R0i MgIKhLdcqhIUQGFD6bTEDdN6UNawJK2t7BwJntKF2PgRPEB3jFoPe9l7XvA0HAq7cpTZ rKviBLYP00RZ+rMCYoXvXYZHeJk9KxqMXZ23YB34SmgzbjMumpjaokQYmB8H/X7fK1+l klyK0Q63jdmbsZ194reCnIquNefj3Cwcs6mPS/XJlEn5adVbyVxbBBz2MBGN5WbIa2Rv aUEg== 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=2AzBgFaCPWsIdMkzydgooudy5VNmWUT4ZniQT4F2f68=; b=uCv77JtezPE8uQ7O12NAJwQMeearzoqxJYRFs/9JCI3tQ+amQt+bYv0R8bmcbSQ4Aa UFrqsh4CuecsZdX6S/OxLOH5b+RvaHa55GJ0lC6g4T04x55TFvRp++s/bY0qV9kHX77v Wh5pmbKMHYsYy2+W6D0C9tsiTU8yAwa0n16lz9yesca8mS96xVvxoZFjGEyZG1PkF2dz uz52hijAtUOjWLMpDru2GXpZw6ojbvMd6yrtgCYv0FsMR2fTPIiddKNDhUQAYvJC60Cp oghfUB45p0G2KHNhElo2QjIIV0UV4lpw0bnRzg1oTmKdtPgAYbWoNan8J7wmo+RYaWvC sKQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="CoSJk0l/"; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@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 l5-20020a170903120500b0014fe92899efsor7251157plh.159.2022.03.30.10.10.57 for (Google Transport Security); Wed, 30 Mar 2022 10:10:57 -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:a17:90b:4b83:b0:1c9:6d37:38b7 with SMTP id lr3-20020a17090b4b8300b001c96d3738b7mr551339pjb.21.1648660257610; Wed, 30 Mar 2022 10:10:57 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id p10-20020a17090a680a00b001c7bf7d32f9sm6860099pjj.55.2022.03.30.10.10.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 10:10:57 -0700 (PDT) From: Manoj Sai To: Jagan Teki , Suniel Mahesh , Michael Nazzareno Trimarchi Cc: linux-amarula@amarulasolutions.com, Manoj Sai Subject: [PATCH v7 2/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus EDIMM2.2 Starter Kit Date: Wed, 30 Mar 2022 22:40:43 +0530 Message-Id: <20220330171044.605105-2-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220330171044.605105-1-abbaraju.manojsai@amarulasolutions.com> References: <20220330171044.605105-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="CoSJk0l/"; spf=pass (google.com: domain of abbaraju.manojsai@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=abbaraju.manojsai@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: , Engicam EDIMM2.2 Starter Kit is an EDIMM 2.2 Form Factor Capacitive Evaluation Board. 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 --- changes for v7 : - fixed naming of pin register control changes for v6 : - changes node in ascending order changes for v5 : - Fixed pmic gpio irq in iomux - changed nodes in ascending order changes for v4 : - Fixed commit message changes for v3 : -updated the nodes as per review comments changes for v2 : -removed commented properties, -removed unsupported driver property, -added pin control name for pmic, -changed matching naming convention for pmic 9540c node, -added node in ascending order --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../freescale/imx8mp-icore-mx8mp-edimm2.2.dts | 176 ++++++++++++++++++ 2 files changed, 177 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 7f51b537df40..66985eae4942 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -77,6 +77,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) += imx8mq-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-hummingboard-pulse.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..1a31b49e8a29 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp-edimm2.2.dts @@ -0,0 +1,176 @@ +// 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_host_vbus: regulator-usb1-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usb1_vbus>; + regulator-name = "usb1_host_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_usdhc2_vmmc: regulator-usdhc2 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; + regulator-name = "VSD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +/* Ethernet */ +&eqos { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_eqos>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy0>; + 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>; + }; + }; +}; + +&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_reg_usdhc2_vmmc: regusdhc2vmmcgrp { + fsl,pins = < + MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x41 + >; + }; + + 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_reg_usb1_vbus: usb1grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x19 + >; + }; + + pinctrl_usdhc2_gpio: usdhc2grp-gpio { + fsl,pins = < + MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0x1c4 + >; + }; + + 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 + >; + }; +}; + +/* 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 { + pinctrl-names = "default" ; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; + vmmc-supply = <®_usdhc2_vmmc>; + bus-width = <4>; + status = "okay"; +};