From patchwork Wed Mar 30 19:14: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: 1890 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AB0493F0E8 for ; Wed, 30 Mar 2022 21:15:08 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id k71-20020a636f4a000000b00382a7c27856sf10865389pgc.3 for ; Wed, 30 Mar 2022 12:15:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1648667707; cv=pass; d=google.com; s=arc-20160816; b=uzyLJlQn1NyqyZxUD7+IFLTfvf2nBwuXI9xB/Wp4ozB2Y2hKdQ9AXNdAI5F9GYa2tP n5Qwja67NDrWWO6wkGmkrkCmo0X+GgitWuDB5AxxhCMR6JrCPZkAGfmrFeZzOdsCbEK5 hGw1Zi3X4hQoFIO5MueVmLu+Gzn6YIcbtfZnPb3hRUSRvvgRIl0WCJdBXFYtt6x6Mpl/ p6T7ht9rbUq3T72RpTSBcdggUs75rQxz95IlPD92hxMpgaW1+sCmfCeuE4QqHiDo6itP hy9lcqS7NvJHONk5NZ2jYR0+2IfaghUxtlaCvLxCB92kODrOH7l5UQCmHzV/5KhfTTUF AtHw== 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=hdYCCEGt7ryVZS/YWgbiYA3RbF7izyd8BsAmNzLJp0Y=; b=IQVRU9UOkrX6gOjYMoe1APDz9q3Q0bhTjytkBWO39WJtsNg/wVxiSAqz9GHDBUnvgO MJajuIxasS6XuOQwe1d1JEyrPxfM/weVJoDvpWzQPDeq4hj5yueyr/TB296ZhZfzXdFY 7DPs/j+q3YNbBJ1KjKiXaNhCOWpc5CSad+dS8K/dqqlbfPobKiz7S3ha3a0+xGc3C5qC 3pK+ncS1d5HIFiVqnvWwIyudMTaujiBCKZpmZdR1a0xSYP1/U37frDMSB9UKYymjlYJB bX4PQhbdgZSvSuYmEthwdkyC+V6UGN2i7uXvuSnq8eTNdxmIvAtorxkEO7AjTSXK4+cy 46DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N4hRvUH8; 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=hdYCCEGt7ryVZS/YWgbiYA3RbF7izyd8BsAmNzLJp0Y=; b=Ewy9tGSZNvDw+3taxgxDUqcRoY6KQX6Both/wTwRGpw2BhD5v2Xo9pjTyTI135BFCe Uiem8BFQjOMk6vtYwKcf/fPaYUIj06VUqmWxswAt/i6D0vw9E3kHWJUvaceyMkNeEiXD 5nBVlKFy8dKiE8t042ZuM67BvIXKqgw6Bs3o8= 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=hdYCCEGt7ryVZS/YWgbiYA3RbF7izyd8BsAmNzLJp0Y=; b=DYGuJmGc6UDYQuVbJSG4inlMD4Jprl2rW1MPms6vU+dGNUc8qo8Zk7sL8lcNUnpLFo uxaPAmYtHf492TLs4SkEaUO+BT9cuSlxxVJV/b7d5laTB/R5NXjUtgAZCUFZ4aD1NEKW xguxC0EcxD8f9adCDmhl+J88JT9kSp1CzoC3LFQ7akRyTehyMhOlof22DngtUTMRMpmC bnvSYpnyv1kNyQh2HXxVdTkBzCQzMX8xyuKbjBwe+xq4Lnt9kYFEPzw0S/8QIjRGCvkE kycWkmsxi+5IXU1cUuwPW6egHYMkikdFndx3OrIH87cDW4lzRz+lhuHhELC3vGDAkbqq vfpQ== X-Gm-Message-State: AOAM532GrNdtCnaR/zd2hAVNMjjoOVLPuAH3im+5AanmUXjdCybI17PX +HerW7+vAMrHwVUEtJiQ0luKciW4 X-Google-Smtp-Source: ABdhPJx7li667cU5Gl9c+sIT+1qL7Xjbi76osbAHSz0etbG7i/g8nNCG/OdvY+cOrGeLS8Vq5JK9BQ== X-Received: by 2002:a17:90b:4f43:b0:1c7:552b:7553 with SMTP id pj3-20020a17090b4f4300b001c7552b7553mr1093541pjb.117.1648667707406; Wed, 30 Mar 2022 12:15:07 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ced1:b0:154:624c:2ff4 with SMTP id d17-20020a170902ced100b00154624c2ff4ls2392828plg.8.gmail; Wed, 30 Mar 2022 12:15:06 -0700 (PDT) X-Received: by 2002:a17:902:e8cf:b0:156:36e0:6bcb with SMTP id v15-20020a170902e8cf00b0015636e06bcbmr819989plg.105.1648667706599; Wed, 30 Mar 2022 12:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648667706; cv=none; d=google.com; s=arc-20160816; b=ctEXwis8CkkOvil8TXQV+Asod0W1CiG+/hcMm31r+4D5MYn11CUW6klW2g8EeJRqvS 6P4XUk002DY5NA/xCT+CCG03TNrUfRBOHPKFx+ZW8WryJmS7UzKpBK72v4ifmleNKjDR wVt8gFosiVMF6i79xpk2io+wHNgTZJngARwED88zGfcZoZdrlv8GWj1XJ5e5dhl7w0qY bW9UFDUJDR6/BQvpy6Joa3lAIOx2qqMICgaiZrtUqjydoVkJ5NukqXz+rVuEvm8XNpnh SHay8+AcPPjEQgJgGNAdkXtfBtjgEn63AaXRrB8hi/CjQKMDGN8OXXD2EERJy3dAN3Xz y6JQ== 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=dgrQbWTYm0JXhwmeaxqOF+r6E1vVPT5p9UZVS+3fzyA=; b=jRYaWwX2bY8rwnOj2AsZSbBgBv4nRQISsQrMpPi7ZysUcg3OG7a4DYtGUZheCUL2Xp nI2VdvOkNAB5SR7Ty0fUXekRSp8hKBBXRfm5mSXsUE711G9Ah32V01guRgmmcbrcDHs9 OFYXdu9KiKeYJ0dZVe2oXXKUp3XEzAK1X+sqcH6ZcP1E/8eUTvw9a8Hkq5SH6H6nqjcX 4rG/KnxN/HOpFN5vDLaqFxGd9Om/eU+76hjNnmlFBVdmfOgBCCddIATcXd/xGGqHHtnb pDJb2fwFD8t9TRXGEBtiwNKbwAtNqglh/lH71mhvBKfdtVOCHbmTsLDfGXC+93uvLZJA KmRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N4hRvUH8; 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 h7-20020a170902ac8700b001517b72321asor7359302plr.133.2022.03.30.12.15.06 for (Google Transport Security); Wed, 30 Mar 2022 12:15:06 -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:903:4052:b0:155:fc0b:48fb with SMTP id n18-20020a170903405200b00155fc0b48fbmr863080pla.27.1648667706249; Wed, 30 Mar 2022 12:15:06 -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.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 12:15:05 -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 2/3] arm64: dts: imx8mp: Add Engicam i.Core MX8M Plus SoM Date: Thu, 31 Mar 2022 00:44:36 +0530 Message-Id: <20220330191437.614065-3-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=N4hRvUH8; 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: , i.Core MX8M Plus is an EDIMM SoM based on NXP i.MX8M Plus from Engicam. General features: - NXP i.MX8M Plus - Up to 4GB LDDR4 - 8 eMMC - Gigabit Ethernet - USB 3.0, 2.0 Host/OTG - PCIe 3.0 interface - I2S - LVDS - rest of i.MX8M Plus features i.Core MX8M Plus needs to mount on top of Engicam baseboards for creating complete platform solutions. Add support for it. Signed-off-by: Manoj Sai Signed-off-by: Matteo Lisi Reviewed-by: Jagan Teki --- .../dts/freescale/imx8mp-icore-mx8mp.dtsi | 202 ++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi new file mode 100644 index 000000000000..10afa8983700 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-icore-mx8mp.dtsi @@ -0,0 +1,202 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 NXP + * Copyright (c) 2019 Engicam srl + * Copyright (c) 2020 Amarula Solutons(India) + */ + +/ { + compatible = "engicam,icore-mx8mp", "fsl,imx8mp"; +}; + +&A53_0 { + cpu-supply = <&buck2>; +}; + +&A53_1 { + cpu-supply = <&buck2>; +}; + +&A53_2 { + cpu-supply = <&buck2>; +}; + +&A53_3 { + cpu-supply = <&buck2>; +}; + +&i2c1 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic: pca9450@25 { + reg = <0x25>; + compatible = "nxp,pca9450c"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pmic>; + interrupt-parent = <&gpio1>; + interrupts = <3 GPIO_ACTIVE_LOW>; + + regulators { + buck1: BUCK1 { + regulator-name = "BUCK1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck2: BUCK2 { + regulator-name = "BUCK2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + nxp,dvs-run-voltage = <950000>; + nxp,dvs-standby-voltage = <850000>; + }; + + buck4: BUCK4{ + regulator-name = "BUCK4"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: BUCK5{ + regulator-name = "BUCK5"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck6: BUCK6 { + regulator-name = "BUCK6"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: LDO1 { + regulator-name = "LDO1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2: LDO2 { + regulator-name = "LDO2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1150000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3: LDO3 { + regulator-name = "LDO3"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: LDO4 { + regulator-name = "LDO4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo5: LDO5 { + regulator-name = "LDO5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; + +&iomuxc { + pinctrl_i2c1: i2c1grp { + fsl,pins = < + MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL 0x400001c3 + MX8MP_IOMUXC_I2C1_SDA__I2C1_SDA 0x400001c3 + >; + }; + + pinctrl_pmic: pmicirq { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO03__GPIO1_IO03 0x000001c0 + >; + }; + + pinctrl_usdhc3: usdhc3grp { + fsl,pins = < + MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x190 + MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d0 + MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d0 + MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d0 + MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d0 + MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d0 + MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d0 + MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d0 + MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d0 + MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d0 + MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x190 + >; + }; + + pinctrl_usdhc3_100mhz: usdhc3grp-100mhz { + fsl,pins = < + MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x194 + MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d4 + MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d4 + MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d4 + MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d4 + MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d4 + MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d4 + MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d4 + MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d4 + MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d4 + MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x194 + >; + }; + + pinctrl_usdhc3_200mhz: usdhc3grp-200mhz { + fsl,pins = < + MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x196 + MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d6 + MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d6 + MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d6 + MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d6 + MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d6 + MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d6 + MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d6 + MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d6 + MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d6 + MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x196 + >; + }; +}; + +/* EMMC */ +&usdhc3 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc3>; + pinctrl-1 = <&pinctrl_usdhc3_100mhz>; + pinctrl-2 = <&pinctrl_usdhc3_200mhz>; + bus-width = <8>; + non-removable; + status = "okay"; +};