From patchwork Fri Aug 26 12:33:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manoj Sai X-Patchwork-Id: 2308 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BE6F63F0CD for ; Fri, 26 Aug 2022 14:34:12 +0200 (CEST) Received: by mail-pj1-f69.google.com with SMTP id 92-20020a17090a09e500b001d917022847sf985069pjo.1 for ; Fri, 26 Aug 2022 05:34:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661517251; cv=pass; d=google.com; s=arc-20160816; b=AOAumX9D5CXBv3/Mw9MgckI7xiHCZk016b58uap/MCDciDq0VubYgFaGF2/ayCEzc8 ffMFBKhPR9Ufu16cginUEbr6jQe2xMlB02ha88pzU3MUp64o+IgqqsfQPn+IHDTBq6zH jsI/Gei5v9oEnhS4ky5VYPWXhmHq8rJO9R4XRU4KBL/BK7qu18e+c3i3yXu6r2uT7kFu xo5J6ltlAsFQP8RrBeWyAvBkwAh+5bEANncXJF1F/Nv/pmGthtvvpY8SXEbzjooCmvys RAm0lBXigpHXV6Ud87MmQJzhhyAXApXaT1b8Ut4dLkzu7mRSRHN4WcgweJbs6AJ4mQau nsXQ== 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=qmD6zwdLB+fkypHfxAzJ08GBFDiQV1ANouz6X70Srok=; b=oRQT6pUr/XJDAlnQAEOIP8yyqvl5FlaOAoA6ZQvmjJ4A1EJsUTpt6WoB9D+lTKr7Pr Ia0d6saSOuQOBt7G/lAJdJmgoykquXmeI/lQpgQx2RbdA8dtBSbTNSTP3ag/E4ieYhRi ghXAs4tRWIz8N+jql7+ixoL6TaLkji3lx9Ec8Cw93clpEkbgXjMEEoO0JSYCzfvN6k+k qM78ipL/AzE3e8lvrnra4xc+F2j3eSgDtyUJ9CS8Iu601X6XAjrZtat0c/aKKKcrxQzn 5SMjg/FpqZn600cMkavWJj4ZBosZ33CnW68G8sFisuMdmc1Nj2gkmG038e5F9TNWxcjg VxeA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="EZB/fzDB"; 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=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc; bh=qmD6zwdLB+fkypHfxAzJ08GBFDiQV1ANouz6X70Srok=; b=FJPWg5xQG5Ql1iTJShWSpzDKrnMQvk/tKWf+qQHbGBLYh+9tD8ITRv2e+yzQ3QdKaK B+LHNIqviq3N5JOKXM3MBiV+V+JK2xzEtTKV6J3zp01lNU5vi2vq9H/44Mr7HJoxKSbj ynSBAhYlMR4zAKxsxA/1xbfrKa25TwJlPwl6U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc; bh=qmD6zwdLB+fkypHfxAzJ08GBFDiQV1ANouz6X70Srok=; b=Ly14FeXxu3CcI70kxuJ4ZEcr6lr29sSzJucNIwwRjlMxdJAQxPkg6ntIAJhzQLHTWP SK8pnagYgSFX2Y0YNCz9vRJXU9ZtqZ7qnHpbVcMAp3Lur0cmJb25l/uzGS8XatDj756x IatyoiE+oiT8LZ7UOSD0vnsxJfvAQke2UNjV0+AwC+bRWAtcJIsf8QiW3VvNS2pFDQVS Gbo6lH/+5u++3HdJtRAg9o9pQeon3P7RE3HsRNMrRBC402ET/+r0xHavzou3+a73hf5E cohuuJBOLQEwONGDMV+3L0uPrkn/U64RwURo30rCenUiZqNF9FFNps+Y9iPwfop5j5XP Mk7A== X-Gm-Message-State: ACgBeo27k+qVm2qwL7SRb8sb3hhQRiBQbmheckS3ovwAGoh5zbdfEKzg z2Qk0c57+Mt5x5DhaGuTAnTc6OJ2 X-Google-Smtp-Source: AA6agR7Wy8rQ2tnsLEy2F0nlaDD4Oar9y8AW1NsNJ06LT/vfCtmqjpthaNhmyijENz/wbAEn3cZjdQ== X-Received: by 2002:a17:90a:988:b0:1f2:3dff:f1dd with SMTP id 8-20020a17090a098800b001f23dfff1ddmr4236048pjo.150.1661517251421; Fri, 26 Aug 2022 05:34:11 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:8f01:0:b0:52f:f5f:fba4 with SMTP id x1-20020aa78f01000000b0052f0f5ffba4ls1131131pfr.10.-pod-prod-gmail; Fri, 26 Aug 2022 05:34:10 -0700 (PDT) X-Received: by 2002:a63:1726:0:b0:41d:b30:46d4 with SMTP id x38-20020a631726000000b0041d0b3046d4mr3098659pgl.27.1661517250559; Fri, 26 Aug 2022 05:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661517250; cv=none; d=google.com; s=arc-20160816; b=GJVnubEIi5sNHs+SyfdKwyIYi5rMV7hEHZBbPl7RV73gxQTaTlY9D/ZG20BVhxi4VQ RO9AlzYfqz9a0czqkFgXlegFBkQeIor7jt16TPwZAi9wTqIlVfkwLsscpR552H3RGVRM A7jFaCRiQQJ/Oq/4osXZqA7otzJv+uXX0LGXp8u4j2/cPqbk/13smHYxwyPlp/bmjqA6 kdlyerkPH87JL8ToYxGhRHGoEkhtk3xYYMYxhM17tgqeNcqtqHSR/zljIMUGek+lUHNh nzinjA9T6RIyeQ2MDXoT5Urfc5FWd50VZfp0F0MltiH9wH8R/1iFB2jAJ8QH5bOf1oTK 8ihQ== 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=OQkHlct0/NvYiWatQbJGwJNO6wmW1YiOR6PEAEqcKpM=; b=P3b+nw/E7D640+Xjj5lW3t9R2EWgR8xfzsKW5cOwbpw3EbDP4HjC/roYyPuJu2vlOR 8yBQWINd2caIjQrDymkjllUZSSMj4KA2rIXSOpN/6KQlvNHwE401yDOsjIY0fBr/DZhB E9R4/aiHdCb8j9sbj5HZ+xV36ZyMIadG3c3pTYYuw317tz4mcAZiKCjACM7//8kZqL3b WJ/XVeDQE/58OMe//TWLxOqwkmAcxUuMT3d+3RG6OJbqQzQLWmANBnB3x6vRLiLu8hLv cokLr/wA+QIcZLW0ozsGoDpWQmUcsioGAxBvSx3bauRNbvtfmnu6HMgFXBuxloFBKzOi eM/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="EZB/fzDB"; 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 g14-20020a056a00078e00b0052b18932efcsor1083224pfu.94.2022.08.26.05.34.10 for (Google Transport Security); Fri, 26 Aug 2022 05:34:10 -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:14c6:b0:536:e81f:66e5 with SMTP id w6-20020a056a0014c600b00536e81f66e5mr3835151pfu.44.1661517250218; Fri, 26 Aug 2022 05:34:10 -0700 (PDT) Received: from localhost.localdomain ([183.83.136.224]) by smtp.gmail.com with ESMTPSA id x14-20020a1709027c0e00b0016c78f9f024sm1498243pll.104.2022.08.26.05.34.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 05:34:09 -0700 (PDT) From: Manoj Sai To: Stefano Babic , Fabio Estevam , Peng Fan , Marek Vasut , Ye Li , Marcel Ziswiler , Tim Harvey Cc: Matteo Lisi , "NXP i . MX U-Boot Team" , linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki , Suniel Mahesh , Michael Nazzareno Trimarchi , Manoj Sai Subject: [PATCH v2 2/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus EDIMM2.2 Starter Kit Date: Fri, 26 Aug 2022 18:03:36 +0530 Message-Id: <20220826123337.85484-2-abbaraju.manojsai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220826123337.85484-1-abbaraju.manojsai@amarulasolutions.com> References: <20220822090657.1066913-2-abbaraju.manojsai@amarulasolutions.com> <20220826123337.85484-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="EZB/fzDB"; 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. Sync the i.Core MX8M Plus is an EDIMM SoM based on NXP devicetree file from linux-next tree. commit (arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus EDIMM2.2 Starter Kit) Signed-off-by: Manoj Sai Signed-off-by: Jagan Teki --- Changes for v2 : - None --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx8mp-icore-mx8mp-edimm2.2.dts | 175 +++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 arch/arm/dts/imx8mp-icore-mx8mp-edimm2.2.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 7330121dba..18b2d36ab3 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -969,6 +969,7 @@ dtb-$(CONFIG_ARCH_IMX8M) += \ imx8mq-phanbell.dtb \ imx8mp-dhcom-pdk2.dtb \ imx8mp-evk.dtb \ + imx8mp-icore-mx8mp-edimm2.2.dtb \ imx8mp-phyboard-pollux-rdk.dtb \ imx8mp-venice.dtb \ imx8mp-venice-gw74xx.dtb \ diff --git a/arch/arm/dts/imx8mp-icore-mx8mp-edimm2.2.dts b/arch/arm/dts/imx8mp-icore-mx8mp-edimm2.2.dts new file mode 100644 index 0000000000..dd703b6a5e --- /dev/null +++ b/arch/arm/dts/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 0x2 + MX8MP_IOMUXC_ENET_MDIO__ENET_QOS_MDIO 0x2 + MX8MP_IOMUXC_ENET_RD0__ENET_QOS_RGMII_RD0 0x90 + MX8MP_IOMUXC_ENET_RD1__ENET_QOS_RGMII_RD1 0x90 + MX8MP_IOMUXC_ENET_RD2__ENET_QOS_RGMII_RD2 0x90 + MX8MP_IOMUXC_ENET_RD3__ENET_QOS_RGMII_RD3 0x90 + MX8MP_IOMUXC_ENET_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x90 + MX8MP_IOMUXC_ENET_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x90 + MX8MP_IOMUXC_ENET_TD0__ENET_QOS_RGMII_TD0 0x16 + MX8MP_IOMUXC_ENET_TD1__ENET_QOS_RGMII_TD1 0x16 + MX8MP_IOMUXC_ENET_TD2__ENET_QOS_RGMII_TD2 0x16 + MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3 0x16 + MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x16 + MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x16 + MX8MP_IOMUXC_NAND_DATA01__GPIO3_IO07 0x10 + >; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = < + MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x40 + MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x40 + >; + }; + + 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 0xc0 + >; + }; + + 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 0x10 + >; + }; + + pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp { + fsl,pins = < + MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x40 + >; + }; +};