From patchwork Wed Dec 23 11:03:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1610 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 624843F086 for ; Wed, 23 Dec 2020 12:05:23 +0100 (CET) Received: by mail-pj1-f72.google.com with SMTP id s14sf2875989pjk.4 for ; Wed, 23 Dec 2020 03:05:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608721522; cv=pass; d=google.com; s=arc-20160816; b=GKASQt3g0kbjGBN/c9UV7wE3xjm96xIgBGiTwdRPh6EGrZJ8LjaxZ0twGf2f+RW9HK wnbyCKzGzFCoJuUPbdN8mSkf0sjIB+CsKBWAbZ6bqmHW1jxLYSDRAhax4hE+xNOpthxo 17N60NtFsPxcuPwTHxMzBwj0lLCJH3NzWCBWI0Oj4/PmcxdzpM+ywQhtRMgf2K6bu7hh A/sV1fUf2bY68xoE5ActCpUdZjU1ZfDTxLFKzJKYaeoBNWZzG6K42UzDH+wbFB9PYtIl Em9BbAozh/n3rfWjHghDfFHafxh/gwv4+3edhB4RzJ+ObiZIleydvPVnM3hsLnIurPo3 BFbQ== 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=WWoxH09vhZ+TwBu7sCum9f2fTWkf5VLVxHpB9+GWriM=; b=eNB9/8ES80kTH570ZyYRfcADlmyAPQ+9pWGMGmghW2kLSFZzPQZjBaK/F4WFh+8oDL 6uNdWV49GjBNNYaAOxaYTQoMonPudnHTniAYdfrMnpl6WoSNaM1PdTbDpEk3LL2j32cD yYb6FZ11BD+oX3On6NMXN6qCLzHBN4weBSrOKe7z4Sp8NyThvO2Oz8nGCSa0x3FDXVxJ kATRh+NSNud0BeoDMPammHxb6HNrJFnQqRdIBFOqxMcjpp0yiQFHshW1FfOZ2YbpCbmW 2Mx29+wFg5XUwCUAflWw7FanSFRkZWHxtn/Nb2njR5MP98k17umTuh3R3BRDAysdG/C6 JCmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PVZhsMw+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@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=WWoxH09vhZ+TwBu7sCum9f2fTWkf5VLVxHpB9+GWriM=; b=btw1G8ZxAqhhFiEDq2LY8xM+3O+NH/aZExQ+4x4Tt7M8CC+TtL0W800s/awzIFzAk+ nqj+pRgHVB8GUU+WG+MUA3SF2WSHhV+eFNA0Zz1V3gROTwpy2Mza3nTu2dgyL6kUufY1 sFBRUiyZOzj9BYX9jTG1W0vtRnRF0ALjf0o9E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; 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=WWoxH09vhZ+TwBu7sCum9f2fTWkf5VLVxHpB9+GWriM=; b=TZ1sDFrEeJz/nrtUMhhnmNKJdhF0tZ0ITkO1xMDbOduuh4mBAYr21pGCaxx5wdULeL hG1GTr226/D7G6XFC2mSSEZr2F4g6vrdF6ZHD5Q5rKFA4Mh9Q0kpigTLf3wQs3tw+jtd TJooAUPsB3AYnB1TUzubTDm1FwDsBoHCFgrvz3sX0Tl6rwNwn9RBJ5pcZpK9Z8wVDsc0 XrpHbhyQIFKnjv8J+uA7TCS+x0uBPMU8BVwfGhYAgt+Q07wVCRIzy7iRggfG+hBhijEs qtlpwz6gdKw5qxBFVeCTqjF4vLDxUQg3ejba0nbqJJwvkHRghuSJoBN+TQhGQlu2oabw S+hA== X-Gm-Message-State: AOAM533aGaEp8gWrMR7lVkWCGne1LaJsd/ungSqlaYzhyPtvar1QNJzU c0/sesr2ZkpMTVXoC9k+mnDAvBf1 X-Google-Smtp-Source: ABdhPJwYGukWo6O1v11HBT6ZalH0HRbCRve2LPeElxsrMq4TmgD8fH92bQOG5uCTJXlVuvCLgem/dg== X-Received: by 2002:a17:90b:d93:: with SMTP id bg19mr26021460pjb.46.1608721522180; Wed, 23 Dec 2020 03:05:22 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:96d4:: with SMTP id h20ls17616605pfq.5.gmail; Wed, 23 Dec 2020 03:05:21 -0800 (PST) X-Received: by 2002:a62:7907:0:b029:19d:cf5d:20ae with SMTP id u7-20020a6279070000b029019dcf5d20aemr3603309pfc.2.1608721521468; Wed, 23 Dec 2020 03:05:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608721521; cv=none; d=google.com; s=arc-20160816; b=QrDeNObM9fIbVXXRNU/yHqGRgU+r/OQnc2+lwKC1+o4UNUNVpYQKnNcv2m4E28qgkb 9sjfPapnVDli7asAzCSZlNHKM3t+XVDV+DBq78W6gNcJIIkeH3eaF+mmWWX856sbFehE mY4mKGC7bHy36xErCSuc2ImGlzery2ZQnT5YO3ezuJRX87IkdaA6XwPODBT/8pjdkswe kcR41I+l4Ew9Z48uWV52KkQC0UG1CE3M6hicP/SkqfrTTuURgt7W4jKHbJDlu2cWYuqX CjEjoS6IlgE9dMy0WBiWNgOyPnf9Gxv+tOmu8mpa7LAsVXkR6zqfyBo5rNIVrUX4IxDL sjug== 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=IeBVDoKx8P7ruCXAEHPJs+rWdNCAKxiwqnaq9oGNJaU=; b=Og0ZJW+jOYnNvbVZHQboYOfgIJWeGsMWeuqAMZ7wxnsYN7iMvEdsMxfJEqtlA8B0T4 WeC+Z+6IkUnnXntMqpWCC8gl3eHKMFfs6ToAHsgU1pPQ9/uxzWlu+lAG5hI1bJfTBX+L 8Lw2b6xow0c3xd+8Phws+q9d7F6tM4QgEQLxs2ha22lbPGMMAFyxVsFAbAsGsIWFeQ7v sof/47PbxT4tm4Ndf3t7etIoEqOZZ2s5KFC0iX1eq9diZLFcKjLqN27V78EHV0/fACOK KXVlMqVyb8mcMGdgl3zeCdJAuReqUvK3YSVW85lsu1ScEbdkaYZow6EOS9wmpyoeq394 QGIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PVZhsMw+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@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 m3sor124470pgi.13.2020.12.23.03.05.21 for (Google Transport Security); Wed, 23 Dec 2020 03:05:21 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:1401:: with SMTP id u1mr12411577pgl.229.1608721521191; Wed, 23 Dec 2020 03:05:21 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a884:eca4:40c1:8784:571c]) by smtp.gmail.com with ESMTPSA id 3sm23275909pfv.92.2020.12.23.03.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Dec 2020 03:05:20 -0800 (PST) From: Jagan Teki To: Rob Herring , Shawn Guo , Li Yang , Fabio Estevam , Krzysztof Kozlowski 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 , Matteo Lisi Subject: [PATCH v3 3/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM Date: Wed, 23 Dec 2020 16:33:40 +0530 Message-Id: <20201223110343.126638-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201223110343.126638-1-jagan@amarulasolutions.com> References: <20201223110343.126638-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PVZhsMw+; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@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 Mini is an EDIMM SoM based on NXP i.MX8M Mini from Engicam. General features: - NXP i.MX8M Mini - Up to 2GB LDDR4 - 8/16GB eMMC - Gigabit Ethernet - USB 2.0 Host/OTG - PCIe Gen2 interface - I2S - MIPI DSI to LVDS - rest of i.MX8M Mini features i.Core MX8M Mini needs to mount on top of Engicam baseboards for creating complete platform solutions. Add support for it. Signed-off-by: Matteo Lisi Signed-off-by: Jagan Teki Reviewed-by: Krzysztof Kozlowski --- Changes for v3: - keep regulator min/max hoping Changes for v2: - updated commit message - add cpu nodes - add fec1 node - fixed pmic tree comments - dropped engicam from filename since it aligned with imx6 engicam dts files naming conventions. .../dts/freescale/imx8mm-icore-mx8mm.dtsi | 232 ++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi new file mode 100644 index 000000000000..b40148d728ea --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi @@ -0,0 +1,232 @@ +// 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-mx8mm", "fsl,imx8mm"; +}; + +&A53_0 { + cpu-supply = <®_buck4>; +}; + +&A53_1 { + cpu-supply = <®_buck4>; +}; + +&A53_2 { + cpu-supply = <®_buck4>; +}; + +&A53_3 { + cpu-supply = <®_buck4>; +}; + +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy: ethernet-phy@3 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <3>; + reset-gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; + reset-assert-us = <10000>; + }; + }; +}; + +&i2c1 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic@8 { + compatible = "nxp,pf8121a"; + reg = <0x08>; + + regulators { + reg_ldo1: ldo1 { + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_ldo2: ldo2 { + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_ldo3: ldo3 { + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_ldo4: ldo4 { + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck1: buck1 { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck2: buck2 { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck3: buck3 { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck4: buck4 { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck5: buck5 { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck6: buck6 { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_buck7: buck7 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + reg_vsnvs: vsnvs { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + }; + }; +}; + +&iomuxc { + pinctrl_fec1: fec1grp { + fsl,pins = < + MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3 + MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3 + MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f + MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f + MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f + MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f + MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91 + MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91 + MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91 + MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91 + MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f + MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91 + MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91 + MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f + MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7 0x19 + >; + }; + + pinctrl_i2c1: i2c1grp { + fsl,pins = < + MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3 + MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3 + >; + }; + + pinctrl_usdhc3: usdhc3grp { + fsl,pins = < + MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190 + MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0 + MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0 + MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0 + MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0 + MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0 + MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0 + MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0 + MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0 + MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0 + MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0 + MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190 + >; + }; + + pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194 + MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4 + MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4 + MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4 + MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4 + MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4 + MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4 + MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4 + MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4 + MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4 + MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194 + >; + }; + + pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196 + MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6 + MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6 + MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6 + MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6 + MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6 + MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6 + MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6 + MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6 + MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6 + MX8MM_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"; +};