From patchwork Wed Mar 30 19:14:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 1891 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D2A5C3F0E8 for ; Wed, 30 Mar 2022 21:15:22 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id y189-20020a6264c6000000b004faecedcb81sf10998050pfb.7 for ; Wed, 30 Mar 2022 12:15:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648667721; cv=pass; d=google.com; s=arc-20160816; b=yYW4O1KJ15uSmqHISK3VReaEs6iEDfIrO8U/MgsA1Kd8BwMljdpZxNESXMwc9Q/0X2 2kOdvTlGe60XFupj37IK9inXRyGVL5db86h8F39neQELDuS42a8Surtsa+MZqa2MyESi pv+aAdt7jcnXO0ZH7J3/5OJs3guo1WGOI7z+63hspEwyhk0U/8fs30GYAs3F0TSGwmam VsNIp88cB1BdhLqK8xQpOcjAsRQidkCB3Co88tsGQFbp6Z9xsClN6fZU/mIt9E9mhcrj vKVvQQp1w8B8a9ZzBZ4gECXK8fEaQqC0w9kHO8OTBQUQebtgsAlqIR/weMe0ZbQqFbaj Zvog== 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=4Q6uifZFxozFewYVsG/Zk1CUxBQOxKB/qtQoBx85NUw=; b=WmN63SrM1xl5JAHAIqzRaYEBWCAlfQXVfvHPsNEVaTB/mU5B1YZkzMpbZumqb5Nqbq PUMywY8z8GZqEZvx71paBVbQh6lpkTUeqsdvoOn7j8iZFGXv7EUXqjvA+L9Ap+YNxyXf kcXynFIIOZ2b2Nn2DUc7nkmERATfldGlsQZc4yRGa9dmUZxpPlHKlindVmI1RWAxnPTO vYe0Xqy0u8dAWtNLBGs4sdIkodg7dmSYh028jGL7lKp+FisL+xJ8Gfl17rf2SxW0t71w mKAYr7tRz4+TKYhea6DBtAZOqZsvP3qrhEH8R7LyNScUUzLeDukBEisuxSTPK+l7KHzK Cx3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IX6V4gdx; 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=4Q6uifZFxozFewYVsG/Zk1CUxBQOxKB/qtQoBx85NUw=; b=gYj8imlEx1ZkydtZ7zBQplDNjljLf4iDt/h1iQgvzcxUikFL7eAmU2bBpOVaZd4zWm HNHcz+gUTYFK8EKBpPRIi5Q9r3RR3fhn3v5jBdsfEX/G7O++YP8jSFv1ph7BEI0L7MGy QaH9DzpSa0SkV5V42MhqyHguVqS7zmU7sWU6E= 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=4Q6uifZFxozFewYVsG/Zk1CUxBQOxKB/qtQoBx85NUw=; b=4uVyveIecxXYr4zwQE6GkDNnq3xnZa9ZZRQxCI/iOpofNb9RwktgmPiAzNUx0TDtxe KcyHP46ikryl/gDXuuPN3wGYNblizxnmJJs3bbYXXiD53pvnTC5Eh6NJNHarKdr8+ok2 QmOloaYx0lA/iTvG3gs8ZTsA6SNnqhqy6tI8j0/2m1XtIHkXbHChnndV0JlMnkY6GCYn 5PGtZZQWl+OsWJFhdKwF9z/N1xKKZJkfJjOJgUNiQFVVt37OTnlU0BgZ3/V4YOjvZ9pk GdDHBM7EpbQZL8/T9X2lTJ38Hy1q34ex5HZ5wt7TZZBBmzP/D4ZVzZOhns8/YyUs3fPP +aqA== X-Gm-Message-State: AOAM532DqxgFadSXbrpet6rZcKAFa9PHj4tE2iZBzl4z9OQI7lDUlUjm zhW9AbOXC9jyTLdNs8EJtl83kyHX X-Google-Smtp-Source: ABdhPJxf0CS2D4OcHyUJZB+oWHuAiOWwUoM/KCxWHxowZFwecMOryqzAyOkPv8QKZ7CNE5lOsT/+ng== X-Received: by 2002:a17:90b:4f43:b0:1c7:552b:7553 with SMTP id pj3-20020a17090b4f4300b001c7552b7553mr1094796pjb.117.1648667721595; Wed, 30 Mar 2022 12:15:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:b70c:0:b0:380:928b:8818 with SMTP id t12-20020a63b70c000000b00380928b8818ls1269060pgf.11.gmail; Wed, 30 Mar 2022 12:15:21 -0700 (PDT) X-Received: by 2002:a05:6a00:2887:b0:4fa:e10c:7ca with SMTP id ch7-20020a056a00288700b004fae10c07camr1068863pfb.9.1648667720784; Wed, 30 Mar 2022 12:15:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648667720; cv=none; d=google.com; s=arc-20160816; b=FImuVDtyLkSpgz7I6kV22sVatG/h4jcr4OK+G4veLFBRpsWgNZe0hXTYOy7ne3W4fV 7G4m23kK4HvfUinb0p2MJHwzP1y7mk82uIOjRnGXpoWNfcMLWSFjRu2XMKayxg0et4rA G6DBHmjtJHW8QiwBFDfDHyX0TM+5Dk1W5toRLi+6vXjboFCGfK64FoT83A/VgY6JoQo4 sdNIz2ldHDfnnHRhSqaKYqP8e9AZvaGgsrzR8rRciDvoRFEg54bk6ZPiw1kJWKMw87jP fBw9L3noox0AJRSJcO38rQFU/mPsFoR3ffN5e/4Bo7Uwoncyq15ZnkKsFVIAk0RLKW97 2FUg== 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=gf3wWTmjziJMOn16oc1W5zoqBMd/yr5SzLsh5YHyWfk=; b=fpwnl2yDAuwXydVBbshz+FTFbOs7n7lVavr/ckfgsguJROl/yebJkC7SXDHislVB7N 5jg88GBjCI+efgMn5ZjmH10Js5R+F0t+VEDI6Z8q5xQoD2Z5fHyt0eWK1U3VMvXE2NjC XHf0IJ3Ermqoonu12Mt8suZXHXZKjkp9F6ewxVQRnQ//gnrFn77Pc18Lt2Xo4AT5Qv0n w8uuh1Xm+A+ST2iHLn50Jbvr1O3Tf4vWALChjIhFfeEXxkfdP3Uo+EHPPbvnwE3U+xtH wsutapXKPkonfpErb5UYpVRw6BS2koSwsb2uA9ZBXWD4XFBJnvJzrTIIglGwPGC7259g FtGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IX6V4gdx; 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 g11-20020a17090a4b0b00b001c73f98702fsor232754pjh.40.2022.03.30.12.15.20 for (Google Transport Security); Wed, 30 Mar 2022 12:15:20 -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:3a84:b0:1c7:bc91:a870 with SMTP id om4-20020a17090b3a8400b001c7bc91a870mr1192429pjb.155.1648667720346; Wed, 30 Mar 2022 12:15:20 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id ng17-20020a17090b1a9100b001c9f79927bfsm2955451pjb.25.2022.03.30.12.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 12:15:19 -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 3/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus EDIMM2.2 Starter Kit Date: Thu, 31 Mar 2022 00:44:37 +0530 Message-Id: <20220330191437.614065-4-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220330191437.614065-1-abbaraju.manojsai@amarulasolutions.com> References: <20220330191437.614065-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=IX6V4gdx; 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 Signed-off-by: Matteo Lisi Reviewed-by: Jagan Teki Reported-by: kernel test robot --- 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..e0667299388a --- /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; + }; + + 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"; +};