Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp274205lqd; Wed, 24 Apr 2024 01:40:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyy3qfJ8nwnE/3wFiG2gc6fdIS/CMCsSfX9MRn1LpucDNETvnVLylZRX+z2WkUcUMio6y9H9IYPd1YCHKObJfFDc0Q0LxPElhmy3qVXg== X-Google-Smtp-Source: AGHT+IGbzruEym3x6OG67DrY/K6HjgU3Gz0XBj6xkt588HzliFAiW6U2mCpj2rYfxhhkJuc3rIs3 X-Received: by 2002:a17:90a:ab87:b0:2a7:48b:1d2d with SMTP id n7-20020a17090aab8700b002a7048b1d2dmr1636726pjq.42.1713948016193; Wed, 24 Apr 2024 01:40:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713948016; cv=pass; d=google.com; s=arc-20160816; b=XoiczBgekSgHqtiY5lcmIVldcnlzORqUbM8zEAEdSQ+H19zv+9bZQEZUf26F/Cov1j XrbW9cFYvjhmmKhafEa3Zu/b9M9TTnSlL15x/D1H46L+G8qnQPJz+cxDcLGbVRJDeCVd Q/OJQ8o0PWFBW97+I7dnnoMQq7D5DG05EGyiBxWdws2KFY2XPYHzUH1xZrhuV9fT852F 7lVjbGpW6+ju1TNw35f/MEl5m6TBH870v6V2Pgyw6go/YZPdZ5iY/PD94dtYm9SSMb0S kLCNJXNEfShD4o/X0H7TieOVkaHqTxjBX1pO5/igiOE+F6/Kx+D0cXGd/opaxExyFIke gNMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FOHvLMuY8CcY+owj+FydrPL6KhMMKq3yLK3NU4CqGGg=; fh=j6A6mmq96vmXtfX+KWoz/SDLe49ydPcWRvTWd9OUejI=; b=PAdp6ASLITlVIegBzHRFPKTEOVd0s4IsKjzPluIXyfivgKL1VTdBe9Z7Fc7zPAl/Kv hsj193p+DkXR71Q5urL3hKC7T+IDy+y725DDERYPsB5pBDeQVDBjmvdJKhG7O2QTnWxq Ou3KB7WSDvk6wzb6xkIRKh7MwlVkRsRH1370/gY/OZzxYuqFOUPkcufh2FCETZwj1gBG IF1xA/N5k4WJPPrsjKx/wFpo5fSGlgME4I8X196ELwDq3EsHiwtW6ZJJjrK/LXgn1m9g w0xJyU0QAsBLm8wG6jnsyJuxS/QcBk7KV41wBw3BZdYB4+g1gVyRkPA7ZfC5oP6xXy8g y7ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=dBdKIObL; arc=pass (i=1 spf=pass spfdomain=engicam.com dkim=pass dkdomain=aruba.it dmarc=pass fromdomain=engicam.com); spf=pass (google.com: domain of linux-kernel+bounces-156560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156560-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=engicam.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c23-20020a17090abf1700b002af13976e7csi1301198pjs.162.2024.04.24.01.40.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 01:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=dBdKIObL; arc=pass (i=1 spf=pass spfdomain=engicam.com dkim=pass dkdomain=aruba.it dmarc=pass fromdomain=engicam.com); spf=pass (google.com: domain of linux-kernel+bounces-156560-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156560-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=engicam.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8B8732898E2 for ; Wed, 24 Apr 2024 08:40:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20B98158D84; Wed, 24 Apr 2024 08:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aruba.it header.i=@aruba.it header.b="dBdKIObL" Received: from smtpcmd01-g.aruba.it (smtpcmd01-g.aruba.it [62.149.158.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1E97157468 for ; Wed, 24 Apr 2024 08:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.149.158.217 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713947979; cv=none; b=mMiQbnn4dRig8E5+vbiHmZh54z/DP6UE1eFE9N9+sMWZDqpIjstRg+JwkYYdArwH42n4mdysJhpA5jMrAlShUOYktaZBUHhLU17TS7uACCpTeO9lUGoEKCe7bh9us3Va/jdfkAbDk7AAsWsomx2aJrYZsahc481VvxW1U8T8w2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713947979; c=relaxed/simple; bh=nBZQY8aPVzlLBaDs9+qvlVl9rfvH3HM6mxSRZ2dbZLk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pUBNxdgDyN/U8UcrcM/NjuVGqlIgr0o9SnVYdY6UpP+VHN+JjtaEpUyciRNy0aSlZMGaDcS1NaeVow1PiUWleBxXEI19Jtmzwye+IS5OuTgbJm6B2C2NnKnVrgrhLkGPr0oBYtNxrqGX4Xa72cGDnk6pWx67Gw7bLCAXcR8S1/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=engicam.com; spf=pass smtp.mailfrom=engicam.com; dkim=pass (2048-bit key) header.d=aruba.it header.i=@aruba.it header.b=dBdKIObL; arc=none smtp.client-ip=62.149.158.217 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=engicam.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=engicam.com Received: from engicam.com ([146.241.29.4]) by Aruba Outgoing Smtp with ESMTPSA id zY75r7sLxwy3rzY78rdAqg; Wed, 24 Apr 2024 10:36:26 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1713947786; bh=nBZQY8aPVzlLBaDs9+qvlVl9rfvH3HM6mxSRZ2dbZLk=; h=From:To:Subject:Date:MIME-Version; b=dBdKIObLk5jJCCsEIdlzK3zzlJnnOibJk9pCjD3KW3551RuoL7xFs8PSxrqKeHgCG NbI7NIpISe3r+OxGydN3JaCx+n53DZedvNrCpY5TaIP8RUVEgDN7/KAtVE0qUxnB/P +Xyxuf9atVSWuHaY8OdTWODQQUzYUxmjwG2YSDsjhZLJ9+ph6ScYPfOEJR0/ZkrP1S nZ0lZpWDC9PfCSk2/hItJOcTFb7wK+6dtAnANFnkkIwhrotgECVAhKtfAYx6Fa3hki +4YzQE4p6EUfp0OsBsOnN6meQPgUQivrC2a42oKzYLMqIrH+UlvqJVtTb8/dZA911G ynYp3cZZaWkWA== 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 Subject: [PATCH v4 2/3] arm64: dts: imx93: add Engicam i.Core MX93 SoM Date: Wed, 24 Apr 2024 10:36:06 +0200 Message-Id: <20240424083607.11162-3-fabio.aiuto@engicam.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240424083607.11162-1-fabio.aiuto@engicam.com> References: <20240424083607.11162-1-fabio.aiuto@engicam.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfNWrA2QwJIllrVeX8O9QWMHqSyyKKNYoWuYnQHHskYIutnelpB3bQjgKvAZtSX53lyIaXJgLRRCxTKwePb5xXY/nDDw3JApYFvx/I8bOGyqgSXzRrr8E DZgWrRnabjxhih6gj3jzU0YLRLQ6OZnHn99j4uTRzhbm2lXcDsLz6CKVMGDzlu9p3B32Iwd17OGQikANvUWzotoCKNFZ5KWKLXB9WMIDF5Nr9S+/CQi3k9eA E0itM7bBeNUr44ExSDfsBN2rrFR+7Ken66hsAkIM8DOyzZrHKwLkxo05h4VCZC4Hxa0YSDdFK80vTSZwPRFiCmtOHbUDrXaAKFfn4ZlnwvDevm1SgT0FQyzk PPCDdtH69mDhBNcDlsE/ie0bYUtoG15iq4UiZ7wBep3zokGQgEjhdwzzaHDVpf5QfXNTmheFlv60TVJxE+D12nd1aQjMhagnUNwoCwJvUNLDkOrSbd0CCgGu KnhhsccfFMZX9y2cZyqpD2hwLFwdDD/AZP1se1o315HM9urzaIq5qXjwpRjBy7980PgsylcP9xLnM8lqYm8VHQWAmYGPYZuZDrVA6NV1v7BBF5PkilNbn2Ip Vxgw2qGu1GU3Mva85y6VtDIx 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 Signed-off-by: Fabio Aiuto --- .../boot/dts/freescale/imx93-icore-mx93.dtsi | 271 ++++++++++++++++++ 1 file changed, 271 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..32a56d51f904 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-icore-mx93.dtsi @@ -0,0 +1,271 @@ +// 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>; + nxp,wdog_b-warm-reset; + + interrupt-parent = <&gpio2>; + interrupts = <15 IRQ_TYPE_LEVEL_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>; + }; + + 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 + >; + }; +}; -- 2.34.1