From patchwork Mon Apr 29 08:44:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Aiuto X-Patchwork-Id: 13646462 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3A642C4345F for ; Mon, 29 Apr 2024 08:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hOdphzlY/wdJhJhes02GoOjB899JP0qN1xvGR8Nwyrg=; b=Xdz1f+KgX+TMEe ixzMMqfSqp3bpMSO2g2+Bo7+8q+/re1G8igQk4wmarsbdpn9XgQrreTQhKcMrrVWnT33LXuiiTMfk qSLHWvCoBMP6V6vR9uAqn0JN+XvNaOQs/KQyHesWYCBjx3uDZB8/ae8UaV9uKDm04A6FoPbE08IW5 n/6CLwrDNM97Ky99L2h6GBq9n4lEYMgaGfEtae+WoJUx08NAYB/0PqyuzImh+Kh0M9b9OhJxbgE5x elHzUCn063P0t//hBmn0HkltLflc94IPARq+3pVvp/WHzTMcQTTzP9mi4VWRVKUZFJZvZUopbTPrR hP2Xn0Tan7AjeOS+6a1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1Mct-00000001zWT-3n4C; Mon, 29 Apr 2024 08:44:43 +0000 Received: from smtpcmd13147.aruba.it ([62.149.156.147]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1Mcn-00000001zU0-4BOn for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 08:44:41 +0000 Received: from engicam.com ([146.241.8.107]) by Aruba Outgoing Smtp with ESMTPSA id 1McasUO2u8U421McbsNcfl; Mon, 29 Apr 2024 10:44:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1714380266; bh=FfU2/VmdwOCYJk5ygqerKdlzjtUJBdYAJKCiSEkMOOs=; h=From:To:Subject:Date:MIME-Version; b=cPbIcjPbS7M2cyrm5NJDGr3fOVwoy1JILmS1O7YvJiZ1JUU2YvXHy7ZARc7We3IQp JCzW3wlhcnogV9iObY44rmHkxK1NXw4U/A2VnU9KIH/C497U7wPhO4+fbV/LrRum83 fkLuF85JTqShlYZ48o+7L+eCjN5FeX/b5e/5xzFAnSi6RLMWUDfcbFYa42I3prPIaq l8tlWwnvqm7b6IuFzJEvpnMlNwwh0tmkpSH4kuvjOA2LP9aWl/G2QFBczHBCFA8saN LvqM8Rt2xSI2OfRuczU6Zfw9MSJBYoElxlcCqk1a0CTSejp5rsNwAB052BYaTP0nqN /Tcp1IAbIFgbg== From: Fabio Aiuto To: Shawn Guo , Sascha Hauer , Krzysztof Kozlowski , Rob Herring , Conor Dooley Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Aiuto , Matteo Lisi , Mirko Ardinghi , Krzysztof Kozlowsky , Conor Dooley Subject: [PATCH v7 1/3] dt-bindings: arm: fsl: add Engicam i.Core MX93 EDIMM 2.0 Starter Kit Date: Mon, 29 Apr 2024 10:44:20 +0200 Message-Id: <20240429084422.8369-2-fabio.aiuto@engicam.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429084422.8369-1-fabio.aiuto@engicam.com> References: <20240429084422.8369-1-fabio.aiuto@engicam.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfM6qNwel1KC5Si4WV3IGnUXaGcpR6YEHXiOIiAuUFsY1bQRS6gecJCiTq2qoJBmJJHGpdS6/C740iEWDu9gKfGYUVjJTyVYFZfuQabiccvxolxEUmSEK A6iMqCJr7lT1g7NCz/HzjbEvWQi/gXHUPfMkrr0kA0b1CA5VZ1JS+QPtXvyOBciMrllnF7cHmPM53Bgtd0QbrrNOoHSODp3foKFKOzFCT9ba751lfn5XZPvj DxJb/6hV7mL3vb6SKyu48/zMioDFJ57bNN1Q9vVfnXsjR6RT3t1k+hTeDPOe7EbWJO5u0slmQGlxoM3gwg5NcBwYVmo0bSpq4sYezapMGxla9YSkGUHF/gJb IKEEDB9CJjt63PMbQxXU6q+dIXOVsxu5M3p6eKocQAeqQSCrT0NayflzAPeMND8gpva2YJYTG2oOiwOnS+uUH3EsscF/u1szlXPM7LSXdL2f3AqFrrR8c0sF gg454zM8/4SmJ5wuSe/a+FrmbPZ0dcdZRrutBmxBsN2JJIMch+IUsJvgVm7OJNM3Hoz1tVj88U91otEVmq2bOmfX1LnahgiETIKKms9QDGM5W0tetoMOKSSP HFcdJov2RXnXheh2rbou/Cpr1MKGkipRmX5rsgb02KSYQSvvs7ZnB+GnLVZUTj49ASr/RX4JQsoGRKDppBUKbH6h X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_014438_659041_C92D6166 X-CRM114-Status: UNSURE ( 7.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.Core MX93 is a NXP i.MX93 based EDIMM SoM by Engicam. EDIMM 2.0 Starter Kit is an EDIMM 2.0 Form Factor Capacitive Evaluation Board by Engicam. i.Core MX93 needs to be mounted on top of EDIMM 2.0 Starter Kit to get the full i.Core MX93 EDIMM 2.0 Starter Kit board. Add bindings for this board. Cc: Matteo Lisi Cc: Mirko Ardinghi Reviewed-by: Krzysztof Kozlowsky Acked-by: Conor Dooley Signed-off-by: Fabio Aiuto --- v3 ---> v7: - no changes v2 ---> v3: - added {Reviewed,Acked}-by tags v1 ---> v2: - no changes Documentation/devicetree/bindings/arm/fsl.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 0027201e19f8..b497a01c7418 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -1265,6 +1265,13 @@ properties: - fsl,imx93-11x11-evk # i.MX93 11x11 EVK Board - const: fsl,imx93 + - description: Engicam i.Core MX93 based Boards + items: + - enum: + - engicam,icore-mx93-edimm2 # i.MX93 Engicam i.Core MX93 EDIMM 2.0 Starter Kit + - const: engicam,icore-mx93 # i.MX93 Engicam i.Core MX93 Som + - const: fsl,imx93 + - description: i.MXRT1050 based Boards items: - enum: From patchwork Mon Apr 29 08:44:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Aiuto X-Patchwork-Id: 13646464 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8476C4345F for ; Mon, 29 Apr 2024 08:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PrOSDJ3NTxh2wHb8d+tTDBi+xmpukqeTtlVROgBY2zM=; b=X0EqiJ2lQrdoF8 ErjkCR3x2i3mXVsdKx6YX8dLmr9plcFdn/cJnvLPig6xVCvqe74XcsJnpfRaMgdxzVh/8VJ89DosC ZH2I/qU+gB0vggJN5aRAsU3ssjZyVt5Gz8Munf+X+6oLjlE6DhKzWJOmfVUHS6XJDBICarG+3lTqN f7vl3geLneEDrvr6BlxiRSr/rDTjwgMevVRWpz4+4pEf9I38e2PqWtT1iFnOJjfZelo9GwrODC69b kMdppxaZ/A+c3MdoV2u8PAO0YLDb9oR57MAbmfgzeE0oURdW4HsxL4Zjk5b5BlhwFQSJuEylMbTvq vHxVJoNsxJ6M28v3elqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1MdD-00000001zen-3iKS; Mon, 29 Apr 2024 08:45:03 +0000 Received: from smtpcmd13147.aruba.it ([62.149.156.147]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1Mcn-00000001zU2-467J for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 08:44:43 +0000 Received: from engicam.com ([146.241.8.107]) by Aruba Outgoing Smtp with ESMTPSA id 1McasUO2u8U421MccsNcgf; Mon, 29 Apr 2024 10:44:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1714380266; bh=vxIPoUxZpkkS/nr99bO0vz6qiVLf1OwdgJ+v1seIWYI=; h=From:To:Subject:Date:MIME-Version; b=kYfP42WuVUefKh1NCwQOBYQW9cgAOEovgrRULQdWLy+XGyea8fpJRx9+HHVePwAOm Q71+VFrYhMRiO5XwvaI3SnbqHj9jUB9Zr/3mI1BggTD0zFsCdkV138wxPqM32tuS8Y 7oWS2a0Iep5D4mKHwPPy+H4f7FppKdly4+attyPJWJpAjfDVFj0PltI8HOwo0j2GKd sSBTA7CpLmlokBQiazPTe4liLC+N0tI8SChmt14A3gLG3dKWdBv8GMpO95ikI55YwN OTFTdmW2YoioXXBFS8IRAQIwbWtQ+dGAKL4FqJBu3N33AJ2pT3JXlQ+USGRCpHQglQ pe63p/2bTKPdA== From: Fabio Aiuto To: Shawn Guo , Sascha Hauer , Krzysztof Kozlowski , Rob Herring , Conor Dooley Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Aiuto , Matteo Lisi , Mirko Ardinghi , Peng Fan Subject: [PATCH v7 2/3] arm64: dts: imx93: add Engicam i.Core MX93 SoM Date: Mon, 29 Apr 2024 10:44:21 +0200 Message-Id: <20240429084422.8369-3-fabio.aiuto@engicam.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429084422.8369-1-fabio.aiuto@engicam.com> References: <20240429084422.8369-1-fabio.aiuto@engicam.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfM6qNwel1KC5Si4WV3IGnUXaGcpR6YEHXiOIiAuUFsY1bQRS6gecJCiTq2qoJBmJJHGpdS6/C740iEWDu9gKfGYUVjJTyVYFZfuQabiccvxolxEUmSEK A6iMqCJr7lT1g5OeV0cO0eIFfALfdsfXAdWe79O8oIGCSJwvQvsRKspsBQvUloUdAEdeAeNGvtSvZjJWNkZxWlxqhyJdap7ctX3mmITdwVdbmdDQiXda2RaF nG3bHvEpodkPLWnrrubEmB9NMTglKdV95Rvfj7rJgaNA41WDwX7fUJmQ3xMkI8a4qx5GDKCqmRqPP5Smyr34NaH149vL8zTNfjWKghQcN+rJD959rWPBlBYj Z+OJr2HZufwEyFK4/rhU4NmDc0td8TyaW7LcypUeVAZODeLhjQ5Lnss4hsXQ7ZwAsEVhVeVfxERQg3iWBEDTr60HG5aEYaaSwIJgo89ca4CV/ZzjDjiZVU9k BjXLTiF1mfNJ+I73i2aEZj7pTVhanx5vMO91vGtRIsi+6XySX2LSvyS2TBCjSu5iECp6hhSZtqcwo1NCdv66PdMgaxqr68A9FaTnYqzPhhXi00xVIZ9us+MT ldvni71GkEAVEEJt5YhIiKDxOKVFkM2YKWdzLI8+9ENPyA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_014438_667888_5BA445D8 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.Core MX93 is a NXP i.MX93 based EDIMM SoM by Engicam. Main features: CPU: NXP i.MX 93 MEMORY: Up to 2GB LPDDR4 NETWORKING: 2x Gb Ethernet USB: USB OTG 2.0, USB HOST 2.0 STORAGE: eMMC starting from 4GB PERIPHERALS: UART, I2C, SPI, CAN, SDIO, GPIO The i.Core MX93 needs to be mounted on top of Engicam baseboards to work. Add devicetree include file. Cc: Matteo Lisi Cc: Mirko Ardinghi Reviewed-by: Peng Fan Signed-off-by: Fabio Aiuto --- v5 ---> v7: - no changes v4 ---> v5: - added Reviewed-by tag - fixed line wrapping in commit msg - fixed indentation, dropped newlines, reordered property v3 ---> v4: - no changes v2 ---> v3: - added wdog_b-warm-reset property in pmic v1 ---> v2: - remove unneeded include .../boot/dts/freescale/imx93-icore-mx93.dtsi | 269 ++++++++++++++++++ 1 file changed, 269 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-icore-mx93.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx93-icore-mx93.dtsi b/arch/arm64/boot/dts/freescale/imx93-icore-mx93.dtsi new file mode 100644 index 000000000000..9c97b620ccfc --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-icore-mx93.dtsi @@ -0,0 +1,269 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 NXP + * Copyright 2024 Engicam s.r.l. + */ + +/dts-v1/; + +#include "imx93.dtsi" + +/ { + model = "Engicam i.Core MX93 SoM"; + compatible = "engicam,icore-mx93", "fsl,imx93"; + + reg_vref_1v8: regulator-adc-vref { + compatible = "regulator-fixed"; + regulator-name = "vref_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; +}; + +&adc1 { + vref-supply = <®_vref_1v8>; + status = "okay"; +}; + +&eqos { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_eqos>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy1>; + status = "okay"; + + mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + ethphy1: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; + }; +}; + +&fec { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy2>; + fsl,magic-packet; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy2: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; + }; +}; + +&lpi2c2 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c2>; + pinctrl-1 = <&pinctrl_lpi2c2>; + status = "okay"; + + pmic@25 { + compatible = "nxp,pca9451a"; + reg = <0x25>; + interrupt-parent = <&gpio2>; + interrupts = <15 IRQ_TYPE_LEVEL_LOW>; + nxp,wdog_b-warm-reset; + + 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>; + }; + + 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; + }; + }; + }; +}; + +&usdhc1 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1>; + pinctrl-2 = <&pinctrl_usdhc1>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + +&usdhc2 {/*SD Card*/ + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + cd-gpios = <&gpio3 00 GPIO_ACTIVE_LOW>; + bus-width = <4>; + no-1-8-v; + max-frequency = <25000000>; + status = "okay"; +}; + +&iomuxc { + pinctrl_eqos: eqosgrp { + fsl,pins = < + MX93_PAD_ENET1_MDC__ENET_QOS_MDC 0x53e + MX93_PAD_ENET1_MDIO__ENET_QOS_MDIO 0x53e + MX93_PAD_ENET1_RD0__ENET_QOS_RGMII_RD0 0x53e + MX93_PAD_ENET1_RD1__ENET_QOS_RGMII_RD1 0x53e + MX93_PAD_ENET1_RD2__ENET_QOS_RGMII_RD2 0x53e + MX93_PAD_ENET1_RD3__ENET_QOS_RGMII_RD3 0x53e + MX93_PAD_ENET1_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x53e + MX93_PAD_ENET1_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x53e + MX93_PAD_ENET1_TD0__ENET_QOS_RGMII_TD0 0x53e + MX93_PAD_ENET1_TD1__ENET_QOS_RGMII_TD1 0x53e + MX93_PAD_ENET1_TD2__ENET_QOS_RGMII_TD2 0x53e + MX93_PAD_ENET1_TD3__ENET_QOS_RGMII_TD3 0x53e + MX93_PAD_ENET1_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x53e + MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x53e + >; + }; + + pinctrl_fec: fecgrp { + fsl,pins = < + MX93_PAD_ENET2_MDC__ENET1_MDC 0x57e + MX93_PAD_ENET2_MDIO__ENET1_MDIO 0x57e + MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0 0x57e + MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1 0x57e + MX93_PAD_ENET2_RD2__ENET1_RGMII_RD2 0x57e + MX93_PAD_ENET2_RD3__ENET1_RGMII_RD3 0x57e + MX93_PAD_ENET2_RXC__ENET1_RGMII_RXC 0x5fe + MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL 0x57e + MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0 0x57e + MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1 0x57e + MX93_PAD_ENET2_TD2__ENET1_RGMII_TD2 0x57e + MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3 0x57e + MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC 0x5fe + MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL 0x57e + >; + }; + + pinctrl_lpi2c2: lpi2c2grp { + fsl,pins = < + MX93_PAD_I2C2_SCL__LPI2C2_SCL 0x40000b9e + MX93_PAD_I2C2_SDA__LPI2C2_SDA 0x40000b9e + >; + }; + + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe + MX93_PAD_SD1_CMD__USDHC1_CMD 0x13fe + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x13fe + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x13fe + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x13fe + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x13fe + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x13fe + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x13fe + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x13fe + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x13fe + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX93_PAD_SD2_CLK__USDHC2_CLK 0x170e + MX93_PAD_SD2_CMD__USDHC2_CMD 0x130e + MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x130e + MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x130e + MX93_PAD_SD2_DATA2__USDHC2_DATA2 0x130e + MX93_PAD_SD2_DATA3__USDHC2_DATA3 0x130e + MX93_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e + >; + }; + + pinctrl_usdhc2_gpio: usdhc2gpiogrp { + fsl,pins = < + MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e + >; + }; +}; From patchwork Mon Apr 29 08:44:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Aiuto X-Patchwork-Id: 13646465 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9604C25B10 for ; Mon, 29 Apr 2024 08:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CBRUpbPH/OQ1K5WnnddA8MuEsImCZwwOcVP1Xirt508=; b=WZBlZ4FgvOzBKV r7wjNCzapw+g4OUeBkg9c4zxzQBVoTiY0tBVx2oi5hfDw5G3YWCuA6eW4CTnz2rhYrb2o+a8EX+U9 Tt/d2QkB8LTvjjWOCrLOhTcnf2hC8DgnZp55Q/uv1Ujf95iezjwUXqmxJiaT+sQecrVt4f2vNj3WC EjbBCgyCpMt2SxYvAIULq8L/hLze/EgzJpCYdzbaVEClNHOloPsuqwesdB8SMdoAj3uCLZJbFF3Ar CDnkW8dNQpjY3DOduwWFGMwh5yrS3PXUC/QD9iHVXq+jNiWMkItQmDAR7BDtYMZanqqz60ygIpJ/Q 5n+9u+UnAJzLF/iwJErg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1MdC-00000001zdu-2rFE; Mon, 29 Apr 2024 08:45:02 +0000 Received: from smtpcmd13147.aruba.it ([62.149.156.147]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1Mco-00000001zU7-02Cw for linux-arm-kernel@lists.infradead.org; Mon, 29 Apr 2024 08:44:42 +0000 Received: from engicam.com ([146.241.8.107]) by Aruba Outgoing Smtp with ESMTPSA id 1McasUO2u8U421MccsNchL; Mon, 29 Apr 2024 10:44:27 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1714380267; bh=sO/TpHzVZ8PFiThYiAiePuc8bTCsjOCKRxFbcQiTZFA=; h=From:To:Subject:Date:MIME-Version; b=R4odrm5gG9WbN/fUrgoW0/3QrVlbSmrunigJ2jQm3uzJFjp13oof7zyLBKACyutnR aIEv8h02o/qAAwow5YNDzpJsHr3cgAdrXZbmVwrVdvqZwY0HK4+it8XD0eMIYFtl2/ wNx5Y7S/obBwvQC++RfhQtLkbhqh/7IdBqQGQOF6F277hVUzfJCMj+/vouxQePgsHP j2jiSIvUc0tod+3b+Y6fWTZVUDl+OnHC7/yIqEI27brnXuv5rP5TNDZLcef7PpOu++ vLAytStlkqIvmMqjr/GbQ4zvkhizZc/Kcc+QRoC99cEZL/Y4xlqVFo+O+JcseBMqNF ec6a5Z7CVy5zg== From: Fabio Aiuto To: Shawn Guo , Sascha Hauer , Krzysztof Kozlowski , Rob Herring , Conor Dooley Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Aiuto , Matteo Lisi , Mirko Ardinghi , Peng Fan , Michael Trimarchi Subject: [PATCH v7 3/3] arm64: dts: imx93: Add Engicam i.Core MX93 EDIMM 2.0 Starter Kit Date: Mon, 29 Apr 2024 10:44:22 +0200 Message-Id: <20240429084422.8369-4-fabio.aiuto@engicam.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240429084422.8369-1-fabio.aiuto@engicam.com> References: <20240429084422.8369-1-fabio.aiuto@engicam.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfGtDtukDk7g0QnDAaxtwbojdvOLg2EvRrdfCRi9Bii4qvCCih2bVZ6qGGyL0gpDEGlAQ3pnyp/d+bU+1zQNsqPk9JiwmZrW+WszYii+CZ1VMaftcMbMX 4+J2TBD4OyacYA7AYX0Jaa+gjMNMclDZIcLOSzku9jNeyBtLaIUkV/ECQpmn49FSe9BTTdZvdKnHtfnCpljMBlxV6HUvdc+kPpRIEVfrUt9J0hfNJkCx4QAu FbQOH3240APKFbcNcZEIxCysk+z3m12GC0b4uKyGqcMUonWZOxtCNwWvbcdj4F7FM1P+/IF2NFpQ67qvSLAhUsgfOb76yLNlswwwar8gzW/xnjcB7mMjo1tg HraRGME0TaHnCpeC1AKWHL2BbSRo/hCJQC/1mU4OIh+97YrYCV8RD33zf2y506XwP+rSpx3566l6HQIFneVQP7unHxHC3wSUlwfaEeJdht6FDUrba47m8JHB 4zUXktA0HVUQ4fQfF9/OkZQgfFOBtpdD+LfciIny6gdUNyCXHmmAcAFoReERMxp3UXiM36ZZZym8c8uYD1C+6KmAPzmyQ58OrNRiJSefUEYx2lMNTFRxCtsi 6SaxsoO/gG54c0dEaCPFr2xfDRcZN9oO/gH9P0gpDHsb9udIRy2I+BeWta1slLeId/+rGozg/oJsp7bu9oW3YUHt X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240429_014438_658856_EC1AB748 X-CRM114-Status: GOOD ( 14.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.Core MX93 is a NXP i.MX93 based SoM by Enigcam which needs to be mounted on top of Engicam baseboards. Add support for EDIMM 2.0 Starter Kit hosting i.Core MX93. Starter Kit main features: 2x LVDS interfaces HDMI output Audio out Mic in Micro SD card slot USB 3.0 A port 3x USB 2.0 A port Gb Ethernet 2x CAN bus, 3x UART interfaces SIM card slot M.2 KEY_B slot Cc: Matteo Lisi Cc: Mirko Ardinghi Reviewed-by: Peng Fan Reviewed-by: Michael Trimarchi Signed-off-by: Fabio Aiuto --- v6 ---> v7: - removed max-frequency property in wifi node - removed pinctrl-{1,2} in usdhc3 node v5 ---> v6: - added property in lpuart5 node - removed unused sai1 node - move Cc tag to Reviewed-by tag v4 ---> v5: - done some property reorder, indentation fixes, node rename, drop/add new lines - added Reviewed-by tag v3 ---> v4: - drop wl_reg_on regulator in favor of mmc-pwrseq-simple - add Cc tag v2 ---> v3: - fixed dtschema warnings - removed regulator-always-on on bt_reg_on - fixed clock rate assignment on sgtl5000 node - fixed indentation issue v1 ---> v2: - fixed indentation issue - fixed missing space issue - improved naming of regulator nodes - removed unneeded include arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx93-icore-mx93-edimm2.dts | 321 ++++++++++++++++++ 2 files changed, 322 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-icore-mx93-edimm2.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 045250d0a040..d26c0a458a44 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -226,6 +226,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-tqma8xqp-mba8xx.dtb dtb-$(CONFIG_ARCH_MXC) += imx8ulp-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx93-icore-mx93-edimm2.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb diff --git a/arch/arm64/boot/dts/freescale/imx93-icore-mx93-edimm2.dts b/arch/arm64/boot/dts/freescale/imx93-icore-mx93-edimm2.dts new file mode 100644 index 000000000000..c22d71cdf7cb --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-icore-mx93-edimm2.dts @@ -0,0 +1,321 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 NXP + * Copyright 2024 Engicam s.r.l. + */ + +/dts-v1/; + +#include "imx93-icore-mx93.dtsi" + +/ { + model = "Engicam i.Core MX93 - EDIMM 2 Starterkit"; + compatible = "engicam,icore-mx93-edimm2", "engicam,icore-mx93", + "fsl,imx93"; + + aliases { + rtc1 = &bbnsm_rtc; + }; + + chosen { + stdout-path = &lpuart1; + }; + + bt_reg_on: regulator-btregon { + compatible = "regulator-gpio"; + regulator-name = "BT_REG_ON"; + regulator-min-microvolt = <100000>; + regulator-max-microvolt = <3300000>; + states = <3300000 0x1>, <100000 0x0>; + gpios = <&gpio2 19 GPIO_ACTIVE_HIGH>; + }; + + reg_1v8_sgtl: regulator-1v8-sgtl { + compatible = "regulator-fixed"; + regulator-name = "1v8_sgtl"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + reg_3v3_avdd_sgtl: regulator-3v3-avdd-sgtl { + compatible = "regulator-fixed"; + regulator-name = "3v3_avdd_sgtl"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reg_3v3_sgtl: regulator-3v3-sgtl { + compatible = "regulator-fixed"; + regulator-name = "3v3_sgtl"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + linux,cma { + compatible = "shared-dma-pool"; + reusable; + alloc-ranges = <0 0x80000000 0 0x40000000>; + size = <0 0x10000000>; + linux,cma-default; + }; + + rsc_table: rsc-table@2021f000 { + reg = <0 0x2021f000 0 0x1000>; + no-map; + }; + + vdevbuffer: vdevbuffer@a4020000 { + compatible = "shared-dma-pool"; + reg = <0 0xa4020000 0 0x100000>; + no-map; + }; + + vdev0vring0: vdev0vring0@a4000000 { + reg = <0 0xa4000000 0 0x8000>; + no-map; + }; + + vdev0vring1: vdev0vring1@a4008000 { + reg = <0 0xa4008000 0 0x8000>; + no-map; + }; + + vdev1vring0: vdev1vring0@a4000000 { + reg = <0 0xa4010000 0 0x8000>; + no-map; + }; + + vdev1vring1: vdev1vring1@a4018000 { + reg = <0 0xa4018000 0 0x8000>; + no-map; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "imx93-sgtl5000"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + /*simple-audio-card,mclk-fs = <1>;*/ + + simple-audio-card,cpu { + sound-dai = <&sai3>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&sgtl5000>; + clocks = <&clk IMX93_CLK_SAI3_IPG>; + }; + }; + + usdhc3_pwrseq: usdhc3-pwrseq { + compatible = "mmc-pwrseq-simple"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc3_pwrseq>; + reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>; + }; +}; + +&cm33 { + mbox-names = "tx", "rx", "rxdb"; + mboxes = <&mu1 0 1>, + <&mu1 1 1>, + <&mu1 3 1>; + memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, + <&vdev1vring0>, <&vdev1vring1>, <&rsc_table>; + status = "okay"; +}; + +&flexcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; + fsl,stop-mode = <&aonmix_ns_gpr 0x10 4>; + status = "okay"; +}; + +&flexcan2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; + fsl,stop-mode = <&aonmix_ns_gpr 0x10 4>; + status = "okay"; +}; + +&lpi2c1 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <400000>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_lpi2c1>; + pinctrl-1 = <&pinctrl_lpi2c1>; + status = "okay"; + + sgtl5000: audio-codec@a { + compatible = "fsl,sgtl5000"; + reg = <0x0a>; + #sound-dai-cells = <0>; + clocks = <&clk IMX93_CLK_SAI3_GATE>; + VDDA-supply = <®_3v3_avdd_sgtl>; + VDDIO-supply = <®_3v3_sgtl>; + VDDD-supply = <®_1v8_sgtl>; + status = "okay"; + }; + + pcf8523: rtc@68 { + compatible = "nxp,pcf8523"; + reg = <0x68>; + }; +}; + +&lpuart1 { /* console */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; + status = "okay"; +}; + +&lpuart5 { /* RS485 */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart5>; + uart-has-rtscts; + status = "okay"; +}; + +&lpuart8 { /* RS232 */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart8>; + status = "okay"; +}; + +&micfil { + #sound-dai-cells = <0>; + assigned-clocks = <&clk IMX93_CLK_PDM>; + assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>; + assigned-clock-rates = <196608000>; + status = "okay"; +}; + +&mu1 { + status = "okay"; +}; + +&mu2 { + status = "okay"; +}; + +&sai3 { + #sound-dai-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sai3>; + assigned-clocks = <&clk IMX93_CLK_SAI3>; + assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>; + assigned-clock-rates = <24576000>; + fsl,sai-mclk-direction-output; + status = "okay"; +}; + +&usdhc3 { /* WiFi */ + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc3>; + mmc-pwrseq = <&usdhc3_pwrseq>; + bus-width = <4>; + no-1-8-v; + non-removable; + status = "okay"; + + brcmf: bcrmf@1 { + compatible = "brcm,bcm4329-fmac"; + reg = <1>; + }; +}; + +&wdog3 { + status = "okay"; +}; + +&iomuxc { + pinctrl_bluetooth: bluetoothgrp { + fsl,pins = < + MX93_PAD_GPIO_IO19__GPIO2_IO19 0x31e /* BT_REG_ON */ + >; + }; + + pinctrl_flexcan1: flexcan1grp { + fsl,pins = < + MX93_PAD_PDM_CLK__CAN1_TX 0x139e + MX93_PAD_PDM_BIT_STREAM0__CAN1_RX 0x139e + >; + }; + + pinctrl_flexcan2: flexcan2grp { + fsl,pins = < + MX93_PAD_GPIO_IO25__CAN2_TX 0x139e + MX93_PAD_GPIO_IO27__CAN2_RX 0x139e + >; + }; + + pinctrl_lpi2c1: lpi2c1grp { + fsl,pins = < + MX93_PAD_I2C1_SCL__LPI2C1_SCL 0x40000b9e + MX93_PAD_I2C1_SDA__LPI2C1_SDA 0x40000b9e + >; + }; + + pinctrl_sai3: sai3grp { + fsl,pins = < + MX93_PAD_GPIO_IO26__SAI3_TX_SYNC 0x31e + MX93_PAD_GPIO_IO16__SAI3_TX_BCLK 0x31e + MX93_PAD_GPIO_IO17__SAI3_MCLK 0x31e + MX93_PAD_GPIO_IO21__SAI3_TX_DATA00 0x31e + MX93_PAD_GPIO_IO20__SAI3_RX_DATA00 0x31e + >; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = < + MX93_PAD_UART1_RXD__LPUART1_RX 0x31e + MX93_PAD_UART1_TXD__LPUART1_TX 0x31e + >; + }; + + pinctrl_uart5: uart5grp { + fsl,pins = < + MX93_PAD_GPIO_IO01__LPUART5_RX 0x31e + MX93_PAD_GPIO_IO00__LPUART5_TX 0x31e + MX93_PAD_GPIO_IO02__LPUART5_CTS_B 0x31e + >; + }; + + pinctrl_uart8: uart8grp { + fsl,pins = < + MX93_PAD_GPIO_IO13__LPUART8_RX 0x31e + MX93_PAD_GPIO_IO12__LPUART8_TX 0x31e + >; + }; + + pinctrl_usdhc3: usdhc3grp { + fsl,pins = < + MX93_PAD_SD3_CLK__USDHC3_CLK 0x17fe + MX93_PAD_SD3_CMD__USDHC3_CMD 0x13fe + MX93_PAD_SD3_DATA0__USDHC3_DATA0 0x13fe + MX93_PAD_SD3_DATA1__USDHC3_DATA1 0x13fe + MX93_PAD_SD3_DATA2__USDHC3_DATA2 0x13fe + MX93_PAD_SD3_DATA3__USDHC3_DATA3 0x13fe + >; + }; + + pinctrl_usdhc3_pwrseq: usdhc3pwrseqgrp { + fsl,pins = < + MX93_PAD_GPIO_IO22__GPIO2_IO22 0x31e /* WL_REG_ON */ + >; + }; +};