From patchwork Mon Apr 18 14:49:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 1919 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6E7033F1D0 for ; Mon, 18 Apr 2022 16:49:35 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id u32-20020a634560000000b0039940fd2020sf9140956pgk.20 for ; Mon, 18 Apr 2022 07:49:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1650293374; cv=pass; d=google.com; s=arc-20160816; b=l0k9bKu29aB05fAhTNy3sENMy2r7RSbn1e82daYXrX+DAVxce7I2pjjzI8J9fS/1Fs ueAkOiZYSKzW/Vyw0XoqAdOz4xsh3LbIAur3KwQ5iUXhaKoVuE4liRgJ+6PueNO5Bh0O Dvr330o4FYphLzEgiAyx6psQyN+NildceszkprGiLsZFccyVJ+0zCetqoOvqP3bH6eK4 VSm0E3AeMdjCyuYRUIVVVuiyIdhduPuhKXTAifun+d0XgBC6o/Bm6OK3+vLwkYIXMs8O KzAwdCMHpug4iG7KArzLACFhQ+/cH0vqURfY09cUsRtTs9D03Xi6QcW1pqBSvBeu2KBF KjWg== 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=609NJeGTk94zT2wJUu6p2IKtsTiS8tv+iqUFTlU31lc=; b=CDeSn2Po2SVYpMcS1i733S9OQ7OzTUKAm5QJpQivBdgO7tZ4yJ98W3RFiTFi5PzEAo UEfmO/sdvx7S+rljWn5aStC/6u6fRvzZ80X8S/Euz3YamURCYoKq8lJ9rjjkL5si2v5r ysMNgsaNp37xp0wA7jrPZWNGWalqG7JwbVYyNe+z+v8kSPC/xj2ZuzRWDlyJtEJsgHgh 8EXrMn6iCjwt8+cPV9q3Y/QeSOoPDt6f8OPRsSLIO1cMgFyhlB7dFapGZ7avGyl2rRU9 7eGYNhVLZwpX7BVfXtWTJyT5zHj515A0vDCqrMPVzPk73vUM8c9QXaznhy3ZO5PGF3wD ijag== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VNdSs+jl; 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=609NJeGTk94zT2wJUu6p2IKtsTiS8tv+iqUFTlU31lc=; b=TWhYdNrtSACyHB1k8QJI6Z4/+TOxwrqCaImNERjJH4AdGmvhFopVmAvqafZyrDyMrg tdKfNfu4XnNP6ZOaaalxeR7pIXNblJp9rSQLrx/hsR0TjW/kB02Fr7e1Sqv3qcGW+iCr iyYovAlRTuBe97X7WLYlXIFvGHyh+gZ9Nzfng= 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=609NJeGTk94zT2wJUu6p2IKtsTiS8tv+iqUFTlU31lc=; b=33TWV6P1QXa0CoAuQo3OA1n+LZOrdzuUvQ+RsR6+FLfdqdOD5EBSwJapYZCdV8MQl5 uqzchRGPIeDKszDFpMA+PtxdT7RkF+dQs6DFl/i2HbhrOWQUl1Oa5YDJQJuOOpUyvYX0 YeYblSlpBqjmof6JMMAwYZKJxo9g+nsk7BP6M7Uw9ARLKDegCRxBQM4qW4zm3KHxPmwz 7JybyA/Wb8I1EGzMtROUQ8F30KMqcbMsI1KdLIHUsr8PBEBrJycJWE6A9zG1uUbl1WD9 BkFs6qg8Pkvw1+EfI+qulnQnLM7wXUymIcd4nd83h4nTcDTbBq619i5nZ2P5jhTS02UT kt1A== X-Gm-Message-State: AOAM531A06rhQiJcmvwNzSry3hZWfebeS6Os5rJNZLXnQGQrWsqWpFGs kSdnb+2E1COf4m/dHQCNv+Y2p9Tf X-Google-Smtp-Source: ABdhPJwxRHjyf4j1dfnXg+qmGKVFeWPrEevnTFKor2f0UWKJh/5tWskIHgxrUDLjMmjCijsMd+xMBA== X-Received: by 2002:a17:902:b193:b0:158:c040:5cf8 with SMTP id s19-20020a170902b19300b00158c0405cf8mr11496900plr.146.1650293374209; Mon, 18 Apr 2022 07:49:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6a00:179d:b0:505:9501:adc5 with SMTP id s29-20020a056a00179d00b005059501adc5ls11241241pfg.2.gmail; Mon, 18 Apr 2022 07:49:33 -0700 (PDT) X-Received: by 2002:a05:6a00:1f0b:b0:50a:8181:fecb with SMTP id be11-20020a056a001f0b00b0050a8181fecbmr2643708pfb.12.1650293373512; Mon, 18 Apr 2022 07:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650293373; cv=none; d=google.com; s=arc-20160816; b=BOagNl2T9zmHe/WNWx3FRJNEUgAgg/jkIDIVdkC7CnsbeKnev66YKsuDX5wZaWDc+B xd6NT7Gn0uOVb4oI14lEUXxAHwtgToTNsBBWMJIuhCYD2Jyk5qVPNclgkiSEXe4iQWRZ erYOyQO3I8X4B1ONqNB1SrGr+BJzvFUE9X9YN4ENGQHddVUza7EJbWKjs3j9y7g2BbQB hPINgHDMk2b5inhW/rHNpfLCte0cMv18pJxhU45TOhbIODP6rEFymXzdSyxTGE4gVQ24 flrNNB4qRzPsVqkWTGZNsN2Lvks1DH1hQ3MoNmLIpWTWhD7oQXpqDB8AMlT2/95F5qQw SSHg== 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=VT6BswVce3NNGDV5lCvPNNr92s597OFTrpnrkXMnbxk=; b=maXgQBczyH4ozE5fkLqwHHglzRKpuhGGM7XAhxLppYjnrwqcZsb57ls9+25cy/KnYd oI1uIUzPq/vhJQX9yUnwLQucoB7bdgihB71EeBThLZMWcS/BGSfyAGe/UnFHlP6TUQ1Y 0miIvIIDk1rAPuYuNV/NZ3WIvlU7kAFUl9NDbpQtA0Y7GhmK8iCa+mbkFIEzuiV2spj/ lksxtTSkejl2j7T754yKeaUIlDzWGEs7nAwaGodhb1fTR6xWYBgNDud0po4aL090xNhU 1hPeP1+Y2X5+m+mEwhBpVSy5MwfX6UwNiVPUlYyFVM0gyCmJZMtBDCvaQTFO8NkdZ0rE 84lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VNdSs+jl; 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 u4-20020a170902a60400b00158d4895e89sor3342935plq.164.2022.04.18.07.49.33 for (Google Transport Security); Mon, 18 Apr 2022 07:49:33 -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:902:8f94:b0:151:64c5:7759 with SMTP id z20-20020a1709028f9400b0015164c57759mr11418837plo.4.1650293373225; Mon, 18 Apr 2022 07:49:33 -0700 (PDT) Received: from localhost.localdomain ([183.83.137.38]) by smtp.gmail.com with ESMTPSA id d6-20020a056a00244600b004f701135460sm13508532pfj.146.2022.04.18.07.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 07:49:32 -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 v2 3/3] Engicam EDIMM2.2 Starter Kit is an EDIMM 2.2 Form Factor CapacitiveEvaluation Board. Date: Mon, 18 Apr 2022 20:19:07 +0530 Message-Id: <20220418144907.327511-3-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220418144907.327511-1-abbaraju.manojsai@amarulasolutions.com> References: <20220330191437.614065-2-abbaraju.manojsai@amarulasolutions.com> <20220418144907.327511-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=VNdSs+jl; 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 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 | 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 85c2c9ba5110..1c06393b8ba9 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -83,6 +83,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-nonwifi-dahlia.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-nonwifi-dev.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-dahlia.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-dev.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-hummingboard-pulse.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-kontron-pitx-imx8m.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..d623ea9dea2b --- /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_vbus: regulator-usb1 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usb1>; + 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>; + }; + }; +}; + +/* 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"; +}; + +&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: regusb1grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x19 + >; + }; + + pinctrl_usdhc2_gpio: usdhc2gpiogrp { + 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 + >; + }; +};