From patchwork Mon Mar 15 17:45:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1698 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 20E913F067 for ; Mon, 15 Mar 2021 18:46:41 +0100 (CET) Received: by mail-pj1-f69.google.com with SMTP id j12sf15107675pjm.5 for ; Mon, 15 Mar 2021 10:46:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615830400; cv=pass; d=google.com; s=arc-20160816; b=d3qBiJRMXJSS4a0RRtptG3l9Zes2Axjftjrt1mnI+gJYHThn4uk5qSaTNi+7KNY6vQ 6Cerg+To2ttctvwC9CZ71mgBkgVulHkSDK7Ujyv1h9AF9gk0n/t0z3zjv6mYNqiidU5m nQfcNOhpfuQokpVscyuSxdaZ/FxKAOmeCgrTrtRB9bvoTqbYwTsEZg4DzaVqL3DcXxdr MsyfTzbW8Fgz4e0zw8JDdWqnkwxOrKkr6v5+IpsrWqNXpkbrE2+odMuMNKWl+8NlHflm WRF0DxKds2mKtI43AUvzx7sew1HopLuTxQNG9oFXVMeXE5ouiwMzs3rg98O57JkzrJHl VvpQ== 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=GRPyfmzHCtodzvGscDsEYm4q9jlCNdWxzMd9OMhfhgE=; b=gyBLPdaLYx32pfImwmRTvFcy2yN64xtNSMQePgcMTuk9TUeW3Y8Tl4bFps9/xvuPUQ f8FEZmn3KymAG/KP2x6fLn1+cUD3UXMd8UXrXCbyMXHvVLCoywMy5HzdRzKr6xubG8n9 3aM4UBoC1huoyoLPudJsfwWtoe1wCQ5ysJ2PKEsZ+IHs8A1BBgDCp31exoYTX/jbOjXc U7Y0JONrx+YB2NYXN4R12uz0W3zp0g9Y+3Iyw1QP1pC/z2NJWnRlsEFH3g2wjbbmlXaP gbcSTrT285R+V6IwVpHXbHGjBVoLKt4cOEg2i3Yo9Hyw2eso512aQ11kBd3yfY7vej7R hiJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iFMeoZJ5; 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=GRPyfmzHCtodzvGscDsEYm4q9jlCNdWxzMd9OMhfhgE=; b=o0n9UK2sKtFKdUSxcAkrrrFyH06Ha3JTXRIV2bKv4qRGlVijd8wm5y9sWkAwLgaVDn i5+LzADnoRdvsCpHy9AZsXLzgQyYCAZi+pqmqDOB1Av7TEs8+22MO1nLSPvQ5Sb+zxUm J0x2Lo6NJsfsE8KjRlNJ/W9jkbt32+rxL+nps= 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=GRPyfmzHCtodzvGscDsEYm4q9jlCNdWxzMd9OMhfhgE=; b=sBl39wQAgRt4WJnDDQ4aiypKeHltu2oTw44LInS36vbsQpY/h8mPP79+EQf/ApnNu8 0U0jt08uHNcRbZ+jS2OVSZmMk28uLUWZrvgMMJ+vVbEaVU1QRqgeNCT3zLTs1n9AND6v M9ZxETZldoiscg1k9+C6MPY6mnrji2KhthOPzLjtKhhdzfnrLrqjV+LJ7qQhElPN8b3t R8sDHREsyQynwDr/6ChS3FMMyaFFiAyenFBH4SUO8dOozr+fvEZBqyRrrdbfosBA4K6e AGqf9+GRSjfVhRhiDyAJLBWxI28c7en23ZesOPDgHYwlAoFpaNjiZMGP0v5NMQEBjmt3 z0fg== X-Gm-Message-State: AOAM5303YQ9ZN8VrDsq4R0tTYpnP5ZyaeK5SNSSWQphbZlrltHXCCOQz 3yF8L+LyDU5Z9STDoAAJVisPh8lX X-Google-Smtp-Source: ABdhPJwVKUyxwSg5YeyVEilU/qFcsInCo6Xx0L+eFyF7Kk4tgV4WmeZ4K1m4A/awMi55PC1rDMBm5w== X-Received: by 2002:a17:903:20c1:b029:e6:a67b:3907 with SMTP id i1-20020a17090320c1b02900e6a67b3907mr9237689plb.46.1615830399933; Mon, 15 Mar 2021 10:46:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:a507:: with SMTP id s7ls9120742plq.3.gmail; Mon, 15 Mar 2021 10:46:39 -0700 (PDT) X-Received: by 2002:a17:90b:201:: with SMTP id fy1mr244271pjb.108.1615830399329; Mon, 15 Mar 2021 10:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615830399; cv=none; d=google.com; s=arc-20160816; b=SB4IjnJoT7nk/4eKQ4Pd+Sn6o3Rg0A9oP2d+QBSaVbRI7QN1N1BExyiD/estVF5ttg h4WyhP0zvVSWg24t1k212T6/xxhXhTD/0lRmhoWb1rabumq9mpDzMi6P4jKjx2W/MLIU U5EqCihsDtqgTq/tHO9pym2kBRPoYNIEN4j1xHytSpG/EOX7jG+wZ2r1PceFIyG7Qa3n W02wpplJEcPc+rcss3fid6vTkoczNoglDRvdQrfWC4TPp2/XLRANNm4ih+ubDZ/vmr9W JXH5hE7T3KSCHNhOCOWKHet4MfFpj49V/celfO19ezO+7YthjYeSsYQ/ToWntJMzCfJp s3TQ== 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=Imab/lULx/buTA2U55YKuDRHneSysvtp4HrTUqEG+3E=; b=hwkqqMZBjOPI+NhCianiDub13/+isnnu+cAErhnGpLAIymU7UEekQjpWnTQQ6/nM7G 0MA+z50135L3GJfbhMuapP0afcvJ80UZXeEVrooXtPzOQUKD2vVJ2OH74yvIwR7VQ7AT Gk6c0obri/EU5S9vT7LnEbSKDfK1KNUJ3r6RC0m6UKJaaWZ0vcjh2Bf4FrDTm4aLaPbM ey5Ay3/DakmAH3tnvNp2OP5O/ZqdxSSTagYBXKA0Z8eyT0O9xzWvWop52SzS1M+/oD7L eikiWkT+YGMvcNYP8HRpHE8XV22Uw9X5Ydxyb0gtADEDQtX498Jmf1sBrTntdhG8xq4s dIFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iFMeoZJ5; 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 a20sor2317803pgi.17.2021.03.15.10.46.39 for (Google Transport Security); Mon, 15 Mar 2021 10:46:39 -0700 (PDT) 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:6606:: with SMTP id a6mr257073pgc.310.1615830399048; Mon, 15 Mar 2021 10:46:39 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:6f76:4267:118b:2085]) by smtp.gmail.com with ESMTPSA id y9sm259494pja.50.2021.03.15.10.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 10:46:38 -0700 (PDT) From: Jagan Teki To: Stefano Babic , Fabio Estevam , Peng Fan Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki Subject: [PATCH v2 3/5] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM Date: Mon, 15 Mar 2021 23:15:41 +0530 Message-Id: <20210315174543.104002-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315174543.104002-1-jagan@amarulasolutions.com> References: <20210315174543.104002-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=iFMeoZJ5; 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. Linux dts commit details: commit <470d6dad5ddd> ("arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM") Add support for it. Signed-off-by: Matteo Lisi Signed-off-by: Jagan Teki --- Changes for v2: - add Linux commit details arch/arm/dts/imx8mm-icore-mx8mm.dtsi | 232 +++++++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 arch/arm/dts/imx8mm-icore-mx8mm.dtsi diff --git a/arch/arm/dts/imx8mm-icore-mx8mm.dtsi b/arch/arm/dts/imx8mm-icore-mx8mm.dtsi new file mode 100644 index 0000000000..b40148d728 --- /dev/null +++ b/arch/arm/dts/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"; +};