Skip to contentSkip to conversation

arm64: dts: freescale: Add Toradex Lino and OSM iMX91/iMX93

PATCH Superseded Francesco Dolcini 4 participants 25 messages Sep 11 – Sep 23

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: freescale: Add Toradex Lino and OSM iMX91/iMX93

From: Francesco Dolcini <[email protected]>

Add Device Tree support for the Toradex Lino and OSM SoM families, based on the NXP i.MX91 and i.MX93 SoCs.

Both families are available with either i.MX91 or i.MX93 on the same PCB. Since the two SoCs are pin compatible, common Device Tree files are used to share the hardware description between the two variants.

For the Lino family, add support for the Lino-Verdin Adapter, which allows Lino modules to be used with Verdin-compatible carrier boards. This series supports the Verdin Development Board and Dahlia carrier board.

For the OSM family, add support for the OSM Development Board.

v2:
- add acked-by
- removed #.*cells properties that are already set in the soc dtsi
v1: https://lore.kernel.org/all/[email protected]/

Francesco Dolcini (7):
dt-bindings: arm: fsl: Add Lino iMX91/iMX93
dt-bindings: arm: fsl: Add Toradex OSM iMX91/iMX93
arm64: dts: freescale: Add Lino iMX93
arm64: dts: freescale: imx93-lino: Add dahlia
arm64: dts: freescale: Add Lino iMX91
arm64: dts: freescale: Add Toradex OSM iMX93
arm64: dts: freescale: Add Toradex OSM iMX91

 .../devicetree/bindings/arm/fsl.yaml          |  30 +
 arch/arm64/boot/dts/freescale/Makefile        |   8 +
 .../freescale/imx91-lino-verdin-dahlia.dts    |  24 +
 .../dts/freescale/imx91-lino-verdin-dev.dts   |  24 +
 arch/arm64/boot/dts/freescale/imx91-lino.dtsi | 305 ++++++++++
 .../dts/freescale/imx91-toradex-osm-dev.dts   |  22 +
 .../boot/dts/freescale/imx91-toradex-osm.dtsi | 303 ++++++++++
 .../freescale/imx93-imx91-lino-common.dtsi    | 536 ++++++++++++++++++
 .../imx93-imx91-lino-verdin-common.dtsi       | 175 ++++++
 ...imx93-imx91-lino-verdin-dahlia-common.dtsi | 198 +++++++
 .../imx93-imx91-lino-verdin-dev-common.dtsi   | 216 +++++++
 .../imx93-imx91-toradex-osm-common.dtsi       | 526 +++++++++++++++++
 .../imx93-imx91-toradex-osm-dev-common.dtsi   | 324 +++++++++++
 .../freescale/imx93-lino-verdin-dahlia.dts    |  24 +
 .../dts/freescale/imx93-lino-verdin-dev.dts   |  24 +
 arch/arm64/boot/dts/freescale/imx93-lino.dtsi | 359 ++++++++++++
 .../dts/freescale/imx93-toradex-osm-dev.dts   |  22 +
 .../boot/dts/freescale/imx93-toradex-osm.dtsi | 357 ++++++++++++
 18 files changed, 3477 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino-verdin-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-toradex-osm-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-toradex-osm.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dahlia-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-toradex-osm-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-toradex-osm.dtsi
Signature · 1 line
2.47.3
#1 lore raw

PATCH v2 1/7 dt-bindings: arm: fsl: Add Lino iMX91/iMX93

From: Francesco Dolcini <[email protected]>

Add bindings for the Toradex Lino iMX91 and Lino iMX93 SoMs, based on the NXP i.MX91 and i.MX93 SoCs, respectively.

Lino SoMs use two board-to-board connectors to interface with a carrier board. They can also be mounted on the Lino-Verdin Adapter, which converts the Lino interface to the Toradex Verdin family pinout and allows the SoM to be used with Verdin-compatible carrier boards.

The Lino-Verdin Adapter also provides a Wi-Fi/Bluetooth module, an Ethernet PHY and a GPIO expander.

Add compatibles for systems consisting of a Lino SoM mounted on a Lino-Verdin Adapter and connected to either a Verdin Development Board or a Dahlia carrier board.

---
v2:
- add acked-by

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +18 -0
index 338dd9eafb17..a32f779f02e4 100644
@@ -1511,6 +1511,15 @@ properties:
               - fsl,imx91-11x11-frdm-s    # FRDM i.MX91S Development Board
           - const: fsl,imx91
 
+      - description: i.MX91 boards with Toradex Lino Modules and Verdin Adapter
+        items:
+          - enum:
+              - toradex,lino-imx91-verdin-dahlia # Lino iMX91 Module on Verdin Dahlia Board
+              - toradex,lino-imx91-verdin-dev    # Lino iMX91 Module on Verdin Dev Board
+          - const: toradex,lino-imx91-verdin     # Lino iMX91 Module on Verdin Adapter
+          - const: toradex,lino-imx91
+          - const: fsl,imx91
+
       - description: i.MX93 based Boards
         items:
           - enum:
@@ -1522,6 +1531,15 @@ properties:
               - fsl,imx93-wireless-frdm   # i.MX93 and IW610G WLCSP (Wi-Fi + BLE + 802.15.4) SiP FRDM Board
           - const: fsl,imx93
 
+      - description: i.MX93 boards with Toradex Lino Modules and Verdin Adapter
+        items:
+          - enum:
+              - toradex,lino-imx93-verdin-dahlia # Lino iMX93 Module on Verdin Dahlia Board
+              - toradex,lino-imx93-verdin-dev    # Lino iMX93 Module on Verdin Dev Board
+          - const: toradex,lino-imx93-verdin     # Lino iMX93 Module on Verdin Adapter
+          - const: toradex,lino-imx93
+          - const: fsl,imx93
+
       - description: i.MX94 based Boards
         items:
           - enum:
Signature · 1 line
2.47.3
#2 lore raw

PATCH v2 2/7 dt-bindings: arm: fsl: Add Toradex OSM iMX91/iMX93

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add bindings for the Toradex OSM iMX91 and OSM iMX93 SoMs and the OSM Development Board they can be mated with.

The Toradex OSM iMX91 and OSM iMX93 are OSM 1.2-compliant SoMs based on the NXP i.MX91 and i.MX93 SoCs, respectively.

---
v2:
- add acked-by

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +12 -0
index a32f779f02e4..33ced11fa2a0 100644
@@ -1520,6 +1520,12 @@ properties:
           - const: toradex,lino-imx91
           - const: fsl,imx91
 
+      - description: i.MX91 boards with Toradex OSM Modules
+        items:
+          - const: toradex,osm-imx91-dev # OSM iMX91 Module on OSM Dev Board
+          - const: toradex,osm-imx91
+          - const: fsl,imx91
+
       - description: i.MX93 based Boards
         items:
           - enum:
@@ -1540,6 +1546,12 @@ properties:
           - const: toradex,lino-imx93
           - const: fsl,imx93
 
+      - description: i.MX93 boards with Toradex OSM Modules
+        items:
+          - const: toradex,osm-imx93-dev # OSM iMX93 Module on OSM Dev Board
+          - const: toradex,osm-imx93
+          - const: fsl,imx93
+
       - description: i.MX94 based Boards
         items:
           - enum:
Signature · 1 line
2.47.3
#3 lore raw

PATCH v2 3/7 arm64: dts: freescale: Add Lino iMX93

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

---
v2:
- drop #address-cells/#size-cells from &lpi2c1, &lpi2c2, &lpi2c3 and &lpi2c4, already set in imx91_93_common.dtsi.
- drop #sound-dai-cells from &sai3, already set in imx91_93_common.dtsi.

---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../freescale/imx93-imx91-lino-common.dtsi    | 536 ++++++++++++++++++
 .../imx93-imx91-lino-verdin-common.dtsi       | 175 ++++++
 .../imx93-imx91-lino-verdin-dev-common.dtsi   | 216 +++++++
 .../dts/freescale/imx93-lino-verdin-dev.dts   |  24 +
 arch/arm64/boot/dts/freescale/imx93-lino.dtsi | 359 ++++++++++++
 6 files changed, 1311 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
index 984642146dd9..eb71f126a8ed 100644
@@ -887,6 +887,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-frdm-pixpaper.dtb
 
 dtb-$(CONFIG_ARCH_MXC) += imx93-14x14-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-kontron-bl-osm-s.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-lino-verdin-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-nash.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin.dtb
 
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +536 -0

536 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi new file +175 -0

175 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dev-common.dtsi new file +216 -0

216 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-lino-verdin-dev.dts new file +24 -0
new file mode 100644
index 000000000000..a79553d94649
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93 SoM on Lino-Verdin Adapter / Development carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ * https://www.toradex.com/products/carrier-board/verdin-development-board-kit
+ */
+
+/dts-v1/;
+
+#include "imx93.dtsi"
+#include "imx93-lino.dtsi"
+#include "imx93-imx91-lino-verdin-common.dtsi"
+#include "imx93-imx91-lino-verdin-dev-common.dtsi"
+
+/ {
+	model = "Toradex Lino iMX93 on Verdin Adapter plus Development Board";
+	compatible = "toradex,lino-imx93-verdin-dev",
+		     "toradex,lino-imx93-verdin",
+		     "toradex,lino-imx93",
+		     "fsl,imx93";
+};
arch/arm64/boot/dts/freescale/imx93-lino.dtsi new file +359 -0

359 lines not on this page · raw message

Signature · 1 line
2.47.3
#4 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 192 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

---
v2:
- drop #address-cells/#size-cells from &lpi2c1, &lpi2c2, &lpi2c3 and &lpi2c4, already set in imx91_93_common.dtsi.
- drop #sound-dai-cells from &sai3, already set in imx91_93_common.dtsi.

---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../freescale/imx93-imx91-lino-common.dtsi    | 536 ++++++++++++++++++
 .../imx93-imx91-lino-verdin-common.dtsi       | 175 ++++++
 .../imx93-imx91-lino-verdin-dev-common.dtsi   | 216 +++++++
 .../dts/freescale/imx93-lino-verdin-dev.dts   |  24 +
 arch/arm64/boot/dts/freescale/imx93-lino.dtsi | 359 ++++++++++++
 6 files changed, 1311 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
index 984642146dd9..eb71f126a8ed 100644
@@ -887,6 +887,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-frdm-pixpaper.dtb
 
 dtb-$(CONFIG_ARCH_MXC) += imx93-14x14-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-kontron-bl-osm-s.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-lino-verdin-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-nash.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin.dtb
 
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +136 -0
new file mode 100644
index 000000000000..f8f13f785860
@@ -0,0 +1,536 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93/iMX91 SoM
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx91
+ */
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+/ {
+	aliases {
+		can0 = &flexcan1;
+		can1 = &flexcan2;
+		eeprom0 = &som_eeprom;
+		ethernet0 = &eqos;
+		ethernet1 = &fec;
+		i2c0 = &lpi2c2;
+		i2c1 = &lpi2c1;
+		i2c2 = &lpi2c3;
+		i2c3 = &lpi2c4;
+		mmc0 = &usdhc1;
+		mmc1 = &usdhc2;
+		mmc2 = &usdhc3;
+		serial0 = &lpuart6;
+		serial1 = &lpuart7;
+		serial2 = &lpuart1;
+		serial3 = &lpuart2;
+		usb0 = &usbotg1;
+		usb1 = &usbotg2;
+	};
+
+	chosen {
+		stdout-path = &lpuart1;
+	};
+
+	/* Lino SD_1 Power Supply */
+	reg_sd1_vmmc: regulator-sdhci2-vmmc {
+		compatible = "regulator-fixed";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_sd1_pwr_en>;
+		/* Lino SD_1_PWR_EN (Lino P72) */
+		gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		off-on-delay-us = <100000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <3300000>;
+		regulator-name = "+V3.3_SD";
+		startup-delay-us = <20000>;
+	};
+
+	reg_sd1_vqmmc: regulator-sdhci2-vqmmc {
+		compatible = "regulator-gpio";
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_sd1_vsel>;
+		/* PMIC_SD_2_VSEL */
+		gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <1800000>;
+		regulator-name = "LDO1-VSEL-SD (PMIC)";
+		states = <1800000 0x1>,
+			 <3300000 0x0>;
+		vin-supply = <&reg_sd_3v3_1v8>;
+	};
+
+	reg_usb1_vbus: regulator-usb1-vbus {
+		compatible = "regulator-fixed";
+		/* Lino USB_1_EN (P27) */
+		gpios = <&som_gpio_expander 0 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "USB_1_EN";
+		startup-delay-us = <20000>;
+	};
+
+	reg_usb2_vbus: regulator-usb2-vbus {
+		compatible = "regulator-fixed";
+		/* Lino USB_2_EN (P61) */
+		gpios = <&som_gpio_expander 1 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "USB_2_EN";
+		startup-delay-us = <20000>;
+	};
+};
+
+/* Lino ADC_1, ADC_2, ADC_3 and ADC_4 */
+&adc1 {
+	vref-supply = <&reg_1v8>;
+};
+
+/* Lino ETH_1 */
+&eqos {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_mdio>, <&pinctrl_eth1>;
+
+	mdio: mdio {
+		compatible = "snps,dwmac-mdio";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		status = "disabled";
+	};
+};
+
+/* Lino ETH_2 */
+&fec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_eth2>;
+};
+
+/* Lino CAN_1 */
+&flexcan1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_can1>;
+};
+
+/* Lino CAN_2 */
+&flexcan2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_can2>;
+};
+
+&gpio1 {
+	gpio-line-names =
+		"LINO_P18",
+		"LINO_P16",
+		"PMIC_I2C_SCL",
+		"PMIC_I2C_SDA",
+		"",
+		"",

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi line 146

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +10 -0
+		"",
+		"",
+		"",
+		"",
+		"LINO_P65", /* 10 */
+		"LINO_S18",
+		"LINO_S24",
+		"LINO_S20",
+		"LINO_S22",
+		"";

Can you wrap to 4 names pre line

	gpio-line-names = "LINO_P18", "LINO_P16", "PMIC_I2C_SCL", "PMIC_I2C_SDA",
			  "", "", "", "",

Reduce LOC, and easy to locate number, such gpio 13, second of 3rd line

Frank

Quoted 1,192 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +390 -0
+};
+
+&gpio2 {
+	gpio-line-names =
+		"LINO_P30",
+		"LINO_P32",
+		"LINO_P24",
+		"LINO_P26",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"", /* 10 */
+		"",
+		"LINO_P58",
+		"",
+		"",
+		"",
+		"",
+		"LINO_P34",
+		"",
+		"",
+		"", /* 20 */
+		"",
+		"LINO_P36",
+		"",
+		"LINO_P38",
+		"",
+		"",
+		"",
+		"LINO_P20",
+		"LINO_P22";
+};
+
+&gpio3 {
+	gpio-line-names =
+		"LINO_P78",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"LINO_P72",
+		"",
+		"",
+		"", /* 10 */
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"PMIC_SD_2_VSEL",
+		"", /* 20 */
+		"",
+		"",
+		"",
+		"",
+		"",
+		"LINO_P40",
+		"LINO_P42",
+		"",
+		"",
+		"", /* 30 */
+		"";
+};
+
+&gpio4 {
+	gpio-line-names =
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"", /* 10 */
+		"",
+		"",
+		"",
+		"LINO_P46",
+		"LINO_P48",
+		"",
+		"",
+		"",
+		"",
+		"", /* 20 */
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"",
+		"LINO_P44",
+		"GPIO_EXP_INT#";
+};
+
+/* Lino I2C_1 */
+&lpi2c1 {
+	pinctrl-names = "default", "gpio";
+	pinctrl-0 = <&pinctrl_i2c1>;
+	pinctrl-1 = <&pinctrl_i2c1_gpio>;
+	clock-frequency = <100000>;
+	scl-gpios = <&gpio1 0 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	sda-gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	single-master;
+};
+
+/* On-module I2C - PMIC_I2C */
+&lpi2c2 {
+	pinctrl-names = "default", "gpio";
+	pinctrl-0 = <&pinctrl_pmic_i2c>;
+	pinctrl-1 = <&pinctrl_pmic_i2c_gpio>;
+	clock-frequency = <400000>;
+	scl-gpios = <&gpio1 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	sda-gpios = <&gpio1 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	single-master;
+
+	status = "okay";
+
+	som_gpio_expander: gpio@21 {
+		compatible = "nxp,pcal6408";
+		reg = <0x21>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&pinctrl_gpio_exp_int>;
+		#interrupt-cells = <2>;
+		interrupt-controller;
+		interrupt-parent = <&gpio4>;
+		interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
+		#gpio-cells = <2>;
+		gpio-controller;
+		gpio-line-names =
+			"Lino_P27", /* Lino USB_1_EN */
+			"Lino_P61", /* Lino USB_2_EN */
+			"TPM_SPI_CS#",
+			"Lino_P29", /* Lino USB_1_OC# */
+			"Lino_P63", /* Lino USB_2_OC# */
+			"PMIC_INT#",
+			"TPM_IRQ#",
+			"Lino_S66";
+	};
+
+	pmic@32 {
+		compatible = "nxp,pf9453";
+		reg = <0x32>;
+		interrupt-parent = <&som_gpio_expander>;
+		interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+
+		regulators {
+			BUCK1 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <1100000>;
+				regulator-min-microvolt = <1100000>;
+				regulator-name = "+V1.1_DDR (PMIC BUCK1)";
+			};
+
+			reg_vdd_soc: BUCK2 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <950000>;
+				regulator-min-microvolt = <612500>;
+				regulator-name = "+VDD_SOC (PMIC BUCK2)";
+				regulator-ramp-delay = <12500>;
+			};
+
+			reg_1v8: BUCK3 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <1800000>;
+				regulator-min-microvolt = <1800000>;
+				regulator-name = "+V1.8 / +V1.8_ANA (PMIC BUCK3)";
+			};
+
+			reg_3v3: BUCK4 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <3300000>;
+				regulator-min-microvolt = <3300000>;
+				regulator-name = "+V3.3 (PMIC BUCK4)";
+			};
+
+			reg_sd_3v3_1v8: LDO1 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <3300000>;
+				regulator-min-microvolt = <1800000>;
+				regulator-name = "+V3.3_1.8_SD (PMIC LDO1)";
+			};
+
+			LDO2 {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <800000>;
+				regulator-min-microvolt = <800000>;
+				regulator-name = "+V0.8_ANA (PMIC LDO2)";
+			};
+
+			LDO-SNVS {
+				regulator-always-on;
+				regulator-boot-on;
+				regulator-max-microvolt = <1800000>;
+				regulator-min-microvolt = <1800000>;
+				regulator-name = "+V1.8_BBSM (PMIC LDO-SNVS)";
+			};
+		};
+	};
+
+	temperature-sensor@48 {
+		compatible = "ti,tmp1075";
+		reg = <0x48>;
+	};
+
+	som_eeprom: eeprom@50 {
+		compatible = "st,24c02", "atmel,24c02";
+		reg = <0x50>;
+		pagesize = <16>;
+	};
+};
+
+/* Lino I2C_2 */
+&lpi2c3 {
+	pinctrl-names = "default", "gpio";
+	pinctrl-0 = <&pinctrl_i2c2>;
+	pinctrl-1 = <&pinctrl_i2c2_gpio>;
+	clock-frequency = <100000>;
+	scl-gpios = <&gpio2 29 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	sda-gpios = <&gpio2 28 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	single-master;
+};
+
+/* Lino I2C_3 */
+&lpi2c4 {
+	pinctrl-names = "default", "gpio";
+	pinctrl-0 = <&pinctrl_i2c3>;
+	pinctrl-1 = <&pinctrl_i2c3_gpio>;
+	clock-frequency = <100000>;
+	scl-gpios = <&gpio2 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	sda-gpios = <&gpio2 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
+	single-master;
+};
+
+/* Lino SPI_2 */
+&lpspi1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_spi2>, <&pinctrl_spi2_cs0_gpio>;
+	cs-gpios = <&gpio1 11 GPIO_ACTIVE_LOW>, <&som_gpio_expander 2 GPIO_ACTIVE_LOW>;
+
+	status = "okay";
+
+	tpm@1 {
+		compatible = "infineon,slb9670", "tcg,tpm_tis-spi";
+		reg = <1>;
+		interrupt-parent = <&som_gpio_expander>;
+		interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
+		spi-max-frequency = <18500000>;
+	};
+};
+
+/* Lino SPI_1 */
+&lpspi8 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_spi1>, <&pinctrl_spi1_cs0_gpio>;
+	cs-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
+};
+
+/* Lino UART_3, used as the Linux Console */
+&lpuart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart3>;
+};
+
+/* Lino UART_4 */
+&lpuart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart4>;
+};
+
+/* Lino UART_1 */
+&lpuart6 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+	uart-has-rtscts;
+};
+
+/* Lino UART_2 */
+&lpuart7 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart2>;
+	uart-has-rtscts;
+};
+
+/* Lino I2S_1 */
+&sai3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2s1>;
+	assigned-clocks = <&clk IMX93_CLK_SAI3>;
+	assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>;
+	assigned-clock-rates = <24576000>;
+};
+
+/* Lino PWM_1 */
+&tpm4 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pwm1>;
+};
+
+/* Lino PWM_2 */
+&tpm5 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pwm2>;
+};
+
+/* Lino PWM_3 */
+&tpm6 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_pwm3>;
+};
+
+/* Lino USB_1 */
+&usbotg1 {
+	dr_mode = "otg";
+	adp-disable;
+	hnp-disable;
+	srp-disable;
+	usb-role-switch;
+	disable-over-current;
+	role-switch-default-mode = "peripheral";
+	samsung,picophy-dc-vol-level-adjust = <7>;
+	samsung,picophy-pre-emp-curr-control = <3>;
+};
+
+/* Lino USB_2 */
+&usbotg2 {
+	disable-over-current;
+	dr_mode = "host";
+	vbus-supply = <&reg_usb2_vbus>;
+	samsung,picophy-dc-vol-level-adjust = <7>;
+	samsung,picophy-pre-emp-curr-control = <3>;
+};
+
+/* On-module eMMC */
+&usdhc1 {
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
+	pinctrl-0 = <&pinctrl_emmc>;
+	pinctrl-1 = <&pinctrl_emmc>;
+	pinctrl-2 = <&pinctrl_emmc>;
+	no-sd;
+	no-sdio;
+	non-removable;
+
+	status = "okay";
+};
+
+/* Lino SD_1 */
+&usdhc2 {
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
+	pinctrl-0 = <&pinctrl_sd1>, <&pinctrl_sd1_cd>;
+	pinctrl-1 = <&pinctrl_sd1>, <&pinctrl_sd1_cd>;
+	pinctrl-2 = <&pinctrl_sd1>, <&pinctrl_sd1_cd>;
+	cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+	disable-wp;
+	vmmc-supply = <&reg_sd1_vmmc>;
+	vqmmc-supply = <&reg_sd1_vqmmc>;
+};
+
+/* Lino SD_2 */
+&usdhc3 {
+	pinctrl-names = "default", "state_100mhz", "state_200mhz";
+	pinctrl-0 = <&pinctrl_sd2>;
+	pinctrl-1 = <&pinctrl_sd2>;
+	pinctrl-2 = <&pinctrl_sd2>;
+};
+
+&wdog3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_wdog>;
+	fsl,ext-reset-output;
+
+	status = "okay";
+};
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi new file +175 -0
new file mode 100644
index 000000000000..0023e76210ce
@@ -0,0 +1,175 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93/iMX91 SoM on Lino-Verdin Adapter
+ *
+ * https://www.toradex.com/computer-on-modules/verdin-arm-family
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx91
+ */
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/net/ti-dp83867.h>
+
+/ {
+	verdin_i2s1_mclk: clock-24576000 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <24576000>;
+	};
+
+	verdin_csi1_mclk: clock-25000000 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <25000000>;
+	};
+
+	connector {
+		compatible = "gpio-usb-b-connector", "usb-b-connector";
+		id-gpios = <&adapter_gpio_expander 1 GPIO_ACTIVE_HIGH>;
+		self-powered;
+		type = "micro";
+		vbus-supply = <&reg_usb1_vbus>;
+
+		port {
+			usb_1_connector: endpoint {
+				remote-endpoint = <&usb1_drd_sw>;
+			};
+		};
+	};
+
+	verdin_gpio_keys: gpio-keys {
+		compatible = "gpio-keys";
+
+		status = "disabled";
+
+		key-wakeup {
+			debounce-interval = <10>;
+			/* Verdin CTRL_WAKE1_MICO# (SODIMM 252) */
+			gpios = <&adapter_gpio_expander 2 GPIO_ACTIVE_LOW>;
+			label = "Wake-Up";
+			wakeup-source;
+			linux,code = <KEY_WAKEUP>;
+		};
+	};
+};
+
+/* Lino ETH_1 */
+&eqos {
+	phy-handle = <&ethphy1>;
+	phy-mode = "rgmii-id";
+};
+
+/* Lino I2C_1 */
+&lpi2c1 {
+	status = "okay";
+
+	i2c-mux@70 {
+		compatible = "nxp,pca9543";
+		reg = <0x70>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		verdin_i2c_1: i2c@0 {
+			reg = <0>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			status = "disabled";
+		};
+
+		adapter_i2c: i2c@1 {
+			reg = <1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			adapter_gpio_expander: gpio@21 {
+				compatible = "nxp,pcal6416";
+				reg = <0x21>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&pinctrl_gpio_11>;
+				#interrupt-cells = <2>;
+				interrupt-controller;
+				interrupt-parent = <&gpio1>;
+				interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
+				#gpio-cells = <2>;
+				gpio-controller;
+				gpio-line-names =
+					"SODIMM_244", /* Verdin PCIE_1_RESET#    */
+					"SODIMM_161", /* Verdin USB_1_ID         */
+					"SODIMM_252", /* Verdin CTRL_WAKE1_MICO# */
+					"ETH_1_INT#",
+					"CTRL_EN_WIFI",
+					"",
+					"",
+					"",
+					"SODIMM_42", /* Verdin I2S_2_BCLK  */
+					"SODIMM_48", /* Verdin I2S_2_D_IN  */
+					"SODIMM_46", /* Verdin I2S_2_D_OUT */
+					"SODIMM_44", /* Verdin I2S_2_SYNC  */
+					"SODIMM_64", /* Verdin QSPI_1_CS2# */
+					"SODIMM_66", /* Verdin QSPI_1_DQS  */
+					"SODIMM_60", /* Verdin QSPI_1_IO2  */
+					"SODIMM_62"; /* Verdin QSPI_1_IO3  */
+
+				verdin_pcie_1_reset_hog: pcie-1-reset-hog {
+					gpio-hog;
+					/* Verdin PCIE_1_RESET# (SODIMM 244) */
+					gpios = <0 GPIO_ACTIVE_LOW>;
+					line-name = "PCIE_1_RESET#";
+					output-low;
+
+					status = "disabled";
+				};
+			};
+
+			/* Current measurement into module VCC */
+			hwmon@40 {
+				compatible = "ti,ina219";
+				reg = <0x40>;
+				shunt-resistor = <10000>;
+			};
+		};
+	};
+};
+
+/* Lino UART_1 */
+&lpuart6 {
+	status = "okay";
+
+	bluetooth {
+		compatible = "nxp,88w8987-bt";
+		fw-init-baudrate = <3000000>;
+	};
+};
+
+/* Lino Ethernet MDIO */
+&mdio {
+	status = "okay";
+
+	ethphy1: ethernet-phy@1 {
+		reg = <1>;
+		interrupt-parent = <&adapter_gpio_expander>;
+		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
+		ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+		ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
+	};
+};
+
+/* Lino USB_1 */
+&usbotg1 {
+	port {
+		usb1_drd_sw: endpoint {
+			remote-endpoint = <&usb_1_connector>;
+		};
+	};
+};
+
+/* Lino SD_2 */
+&usdhc3 {
+	keep-power-in-suspend;
+	non-removable;
+
+	status = "okay";
+};
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dev-common.dtsi new file +216 -0
new file mode 100644
index 000000000000..1664b380e58e
@@ -0,0 +1,216 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93/iMX91 SoM on Lino-Verdin Adapter / Development carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx91
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ * https://www.toradex.com/products/carrier-board/verdin-development-board-kit
+ */
+
+/ {
+	aliases {
+		eeprom1 = &carrier_eeprom;
+	};
+
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,bitclock-master = <&codec_dai>;
+		simple-audio-card,format = "i2s";
+		simple-audio-card,frame-master = <&codec_dai>;
+		simple-audio-card,mclk-fs = <256>;
+		simple-audio-card,name = "verdin-nau8822";
+		simple-audio-card,routing =
+			"Headphones", "LHP",
+			"Headphones", "RHP",
+			"Speaker", "LSPK",
+			"Speaker", "RSPK",
+			"Line Out", "AUXOUT1",
+			"Line Out", "AUXOUT2",
+			"LAUX", "Line In",
+			"RAUX", "Line In",
+			"LMICP", "Mic In",
+			"RMICP", "Mic In";
+		simple-audio-card,widgets =
+			"Headphones", "Headphones",
+			"Line Out", "Line Out",
+			"Speaker", "Speaker",
+			"Microphone", "Mic In",
+			"Line", "Line In";
+
+		codec_dai: simple-audio-card,codec {
+			sound-dai = <&nau8822_1a>;
+		};
+
+		simple-audio-card,cpu {
+			sound-dai = <&sai3>;
+		};
+	};
+};
+
+/* Lino ADC_1, ADC_2, ADC_3 and ADC_4 */
+&adc1 {
+	status = "okay";
+};
+
+&gpio2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>, <&pinctrl_gpio3>,
+		    <&pinctrl_gpio4>, <&pinctrl_gpio5>;
+};
+
+&gpio3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio6>, <&pinctrl_gpio7>;
+};
+
+&gpio4 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio8>, <&pinctrl_gpio9>, <&pinctrl_gpio10>;
+};
+
+/* Lino ETH_1 */
+&eqos {
+	status = "okay";
+};
+
+/* Lino ETH_2 */
+&fec {
+	phy-handle = <&ethphy2>;
+	phy-mode = "rgmii-id";
+
+	status = "okay";
+};
+
+/* Lino CAN_1 */
+&flexcan1 {
+	status = "okay";
+};
+
+/* Lino CAN_2 */
+&flexcan2 {
+	status = "okay";
+};
+
+/* Lino I2C_2 */
+&lpi2c3 {
+	status = "okay";
+};
+
+/* Lino I2C_3 */
+&lpi2c4 {
+	status = "okay";
+};
+
+/* Lino SPI_1 */
+&lpspi8 {
+	status = "okay";
+};
+
+/* Lino UART_3, used as the Linux Console */
+&lpuart1 {
+	status = "okay";
+};
+
+/* Lino UART_4 */
+&lpuart2 {
+	status = "okay";
+};
+
+/* Lino UART_2 */
+&lpuart7 {
+	status = "okay";
+};
+
+/* Lino Ethernet MDIO */
+&mdio {
+	ethphy2: ethernet-phy@7 {
+		compatible = "ethernet-phy-ieee802.3-c22";
+		reg = <7>;
+		micrel,led-mode = <0>;
+	};
+};
+
+/* Lino I2S_1 */
+&sai3 {
+	status = "okay";
+};
+
+/* Lino PWM_1 */
+&tpm4 {
+	status = "okay";
+};
+
+/* Lino PWM_2 */
+&tpm5 {
+	status = "okay";
+};
+
+/* Lino PWM_3 */
+&tpm6 {
+	status = "okay";
+};
+
+/* Lino USB_1 */
+&usbotg1 {
+	status = "okay";
+};
+
+/* Lino USB_2 */
+&usbotg2 {
+	status = "okay";
+};
+
+/* Lino SD_1 */
+&usdhc2 {
+	status = "okay";
+};
+
+/* Verdin CTRL_WAKE1_MICO# */
+&verdin_gpio_keys {
+	status = "okay";
+};
+
+/* Verdin I2C_1 */
+&verdin_i2c_1 {
+	status = "okay";
+
+	nau8822_1a: audio-codec@1a {
+		compatible = "nuvoton,nau8822";
+		reg = <0x1a>;
+		clock-names = "mclk";
+		clocks = <&verdin_i2s1_mclk>;
+		#sound-dai-cells = <0>;
+	};
+
+	carrier_gpio_expander: gpio@21 {
+		compatible = "nxp,pcal6416";
+		reg = <0x21>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	/* Current measurement into module VCC */
+	hwmon@40 {
+		compatible = "ti,ina219";
+		reg = <0x40>;
+		shunt-resistor = <10000>;
+	};
+
+	temperature-sensor@4f {
+		compatible = "ti,tmp75c";
+		reg = <0x4f>;
+	};
+
+	carrier_eeprom: eeprom@57 {
+		compatible = "st,24c02", "atmel,24c02";
+		reg = <0x57>;
+		pagesize = <16>;
+	};
+};
+
+/* Verdin PCIE_1_RESET# */
+&verdin_pcie_1_reset_hog {
+	status = "okay";
+};
arch/arm64/boot/dts/freescale/imx93-lino-verdin-dev.dts new file +24 -0
new file mode 100644
index 000000000000..a79553d94649
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93 SoM on Lino-Verdin Adapter / Development carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ * https://www.toradex.com/products/carrier-board/verdin-development-board-kit
+ */
+
+/dts-v1/;
+
+#include "imx93.dtsi"
+#include "imx93-lino.dtsi"
+#include "imx93-imx91-lino-verdin-common.dtsi"
+#include "imx93-imx91-lino-verdin-dev-common.dtsi"
+
+/ {
+	model = "Toradex Lino iMX93 on Verdin Adapter plus Development Board";
+	compatible = "toradex,lino-imx93-verdin-dev",
+		     "toradex,lino-imx93-verdin",
+		     "toradex,lino-imx93",
+		     "fsl,imx93";
+};
arch/arm64/boot/dts/freescale/imx93-lino.dtsi new file +359 -1
new file mode 100644
index 000000000000..cab7f344f2fe
@@ -0,0 +1,359 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93 SoM
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ */
+
+#include "imx93-pinfunc.h"
+#include "imx93-imx91-lino-common.dtsi"
+
+/ {
+	reserved-memory {
+		ranges;
+		#address-cells = <2>;
+		#size-cells = <2>;
+
+		rsc_table: rsc-table@2021e000 {
+			reg = <0 0x2021e000 0 0x1000>;
+			no-map;
+		};
+
+		vdev0vring0: vdev0vring0@a4000000 {
+			reg = <0 0xa4000000 0 0x8000>;
+			no-map;
+		};
+
+		vdev0vring1: vdev0vring1@a4008000 {
+			reg = <0 0xa4008000 0 0x8000>;
+			no-map;
+		};
+
+		vdev1vring0: vdev1vring0@a4010000 {
+			reg = <0 0xa4010000 0 0x8000>;
+			no-map;
+		};
+
+		vdev1vring1: vdev1vring1@a4018000 {
+			reg = <0 0xa4018000 0 0x8000>;
+			no-map;
+		};
+
+		vdev0buffer: vdev0buffer@a4020000 {
+			compatible = "shared-dma-pool";
+			reg = <0 0xa4020000 0 0x100000>;
+			no-map;
+		};
+	};
+};
+
+&cm33 {
+	mbox-names = "tx", "rx", "rxdb";
+	mboxes = <&mu1 0 1>,
+		 <&mu1 1 1>,
+		 <&mu1 3 1>;
+	memory-region = <&vdev0buffer>, <&vdev0vring0>, <&vdev0vring1>,
+			<&vdev1vring0>, <&vdev1vring1>, <&rsc_table>;
+
+	status = "okay";
+};
+
+&mu1 {
+	status = "okay";
+};
+
+&iomuxc {
+	/* Lino CAN_1 */
+	pinctrl_can1: can1grp {
+		fsl,pins = <MX93_PAD_PDM_BIT_STREAM0__CAN1_RX	0x139e>, /* Lino P12 */
+			   <MX93_PAD_PDM_CLK__CAN1_TX		0x139e>; /* Lino P10 */
+	};
+
+	/* Lino CAN_2 */
+	pinctrl_can2: can2grp {
+		fsl,pins = <MX93_PAD_GPIO_IO25__CAN2_TX	0x139e>, /* Lino S28 */
+			   <MX93_PAD_GPIO_IO27__CAN2_RX	0x139e>; /* Lino S30 */
+	};
+
+	/* Lino ETH_1 RGMII */
+	pinctrl_eth1: eqosgrp {
+		fsl,pins = <MX93_PAD_ENET1_RD0__ENET_QOS_RGMII_RD0			0x1fe>, /* Lino P77 */
+			   <MX93_PAD_ENET1_RD1__ENET_QOS_RGMII_RD1			0x1fe>, /* Lino P79 */
+			   <MX93_PAD_ENET1_RD2__ENET_QOS_RGMII_RD2			0x1fe>, /* Lino P81 */
+			   <MX93_PAD_ENET1_RD3__ENET_QOS_RGMII_RD3			0x1fe>, /* Lino P83 */
+			   <MX93_PAD_ENET1_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK	0x1fe>, /* Lino P73 */
+			   <MX93_PAD_ENET1_RX_CTL__ENET_QOS_RGMII_RX_CTL		0x1fe>, /* Lino P75 */
+			   <MX93_PAD_ENET1_TD0__ENET_QOS_RGMII_TD0			0x1fe>, /* Lino P97 */
+			   <MX93_PAD_ENET1_TD1__ENET_QOS_RGMII_TD1			0x1fe>, /* Lino P95 */
+			   <MX93_PAD_ENET1_TD2__ENET_QOS_RGMII_TD2			0x1fe>, /* Lino P93 */
+			   <MX93_PAD_ENET1_TD3__ENET_QOS_RGMII_TD3			0x1fe>, /* Lino P91 */
+			   <MX93_PAD_ENET1_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK	0x1fe>, /* Lino P89 */
+			   <MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL		0x1fe>; /* Lino P85 */
+	};
+
+	/* Lino ETH MDIO */
+	pinctrl_mdio: eqosmdiogrp {
+		fsl,pins = <MX93_PAD_ENET1_MDC__ENET_QOS_MDC	0x1fe>, /* Lino P69 */
+			   <MX93_PAD_ENET1_MDIO__ENET_QOS_MDIO	0x1fe>; /* Lino P67 */
+	};
+
+	/* Lino ETH_2 RGMII */
+	pinctrl_eth2: fecgrp {
+		fsl,pins = <MX93_PAD_ENET2_RD0__ENET1_RGMII_RD0		0x1fe>, /* Lino S77 */
+			   <MX93_PAD_ENET2_RD1__ENET1_RGMII_RD1		0x1fe>, /* Lino S79 */
+			   <MX93_PAD_ENET2_RD2__ENET1_RGMII_RD2		0x1fe>, /* Lino S81 */
+			   <MX93_PAD_ENET2_RD3__ENET1_RGMII_RD3		0x1fe>, /* Lino S83 */
+			   <MX93_PAD_ENET2_RXC__ENET1_RGMII_RXC		0x1fe>, /* Lino S71 */
+			   <MX93_PAD_ENET2_RX_CTL__ENET1_RGMII_RX_CTL	0x1fe>, /* Lino S73 */
+			   <MX93_PAD_ENET2_TD0__ENET1_RGMII_TD0		0x1fe>, /* Lino S99 */
+			   <MX93_PAD_ENET2_TD1__ENET1_RGMII_TD1		0x1fe>, /* Lino S97 */
+			   <MX93_PAD_ENET2_TD2__ENET1_RGMII_TD2		0x1fe>, /* Lino S93 */
+			   <MX93_PAD_ENET2_TD3__ENET1_RGMII_TD3		0x1fe>, /* Lino S91 */
+			   <MX93_PAD_ENET2_TXC__ENET1_RGMII_TXC		0x1fe>, /* Lino S87 */
+			   <MX93_PAD_ENET2_TX_CTL__ENET1_RGMII_TX_CTL	0x1fe>; /* Lino S89 */
+	};
+
+	/* Lino GPIO_11 */
+	pinctrl_gpio_11: gpio1io10grp {
+		fsl,pins = <MX93_PAD_PDM_BIT_STREAM1__GPIO1_IO10	0x139e>; /* Lino P65 */
+	};
+
+	/* Lino SPI_2_CS as GPIO */
+	pinctrl_spi2_cs0_gpio: gpio1io11grp {
+		fsl,pins = <MX93_PAD_SAI1_TXFS__GPIO1_IO11	0x139e>; /* Lino S18 */
+	};
+
+	/* Lino GPIO_1 */
+	pinctrl_gpio1: gpio2io0grp {
+		fsl,pins = <MX93_PAD_GPIO_IO00__GPIO2_IO00	0x139e>; /* Lino P30 */
+	};
+
+	/* Lino GPIO_2 */
+	pinctrl_gpio2: gpio2io1grp {
+		fsl,pins = <MX93_PAD_GPIO_IO01__GPIO2_IO01	0x139e>; /* Lino P32 */
+	};
+
+	/* Lino SPI_1_CS as GPIO */
+	pinctrl_spi1_cs0_gpio: gpio2io12grp {
+		fsl,pins = <MX93_PAD_GPIO_IO12__GPIO2_IO12	0x139e>; /* Lino P58 */
+	};
+
+	/* Lino GPIO_3 */
+	pinctrl_gpio3: gpio2io17grp {
+		fsl,pins = <MX93_PAD_GPIO_IO17__GPIO2_IO17	0x139e>; /* Lino P34 */
+	};
+
+	/* Lino GPIO_4 */
+	pinctrl_gpio4: gpio2io22grp {
+		fsl,pins = <MX93_PAD_GPIO_IO22__GPIO2_IO22	0x139e>; /* Lino P36 */
+	};
+
+	/* Lino PWM_3 as GPIO */
+	pinctrl_pwm3_gpio: gpio2io23grp {
+		fsl,pins = <MX93_PAD_GPIO_IO23__GPIO2_IO23	0x139e>; /* Lino P5 */
+	};
+
+	/* Lino GPIO_5 */
+	pinctrl_gpio5: gpio2io24grp {
+		fsl,pins = <MX93_PAD_GPIO_IO24__GPIO2_IO24	0x139e>; /* Lino P38 */
+	};
+
+	/* Lino GPIO_6 */
+	pinctrl_gpio6: gpio3io26grp {
+		fsl,pins = <MX93_PAD_CCM_CLKO1__GPIO3_IO26	0x139e>; /* Lino P40 */
+	};
+
+	/* Lino GPIO_7 */
+	pinctrl_gpio7: gpio3io27grp {
+		fsl,pins = <MX93_PAD_CCM_CLKO2__GPIO3_IO27	0x139e>; /* Lino P42 */
+	};
+
+	/* Lino GPIO_9 */
+	pinctrl_gpio9: gpio4io14grp {
+		fsl,pins = <MX93_PAD_ENET2_MDC__GPIO4_IO14	0x139e>; /* Lino P46 */
+	};
+
+	/* Lino GPIO_10 */
+	pinctrl_gpio10: gpio4io15grp {
+		fsl,pins = <MX93_PAD_ENET2_MDIO__GPIO4_IO15	0x139e>; /* Lino P48 */
+	};
+
+	/* Lino GPIO_8 */
+	pinctrl_gpio8: gpio4io28grp {
+		fsl,pins = <MX93_PAD_CCM_CLKO3__GPIO4_IO28	0x139e>; /* Lino P44 */
+	};
+
+	/* On-module GPIO_EXP_INT# */
+	pinctrl_gpio_exp_int: gpio4io29grp {
+		fsl,pins = <MX93_PAD_CCM_CLKO4__GPIO4_IO29	0x139e>; /* GPIO_EXP_INT# */
+	};
+
+	/* Lino I2C_1 as GPIO */
+	pinctrl_i2c1_gpio: lpi2c1gpiogrp {
+		fsl,pins = <MX93_PAD_I2C1_SCL__GPIO1_IO00	0x40000b9e>, /* Lino P18 */
+			   <MX93_PAD_I2C1_SDA__GPIO1_IO01	0x40000b9e>; /* Lino P16 */
+	};
+
+	/* Lino I2C_1 */
+	pinctrl_i2c1: lpi2c1grp {
+		fsl,pins = <MX93_PAD_I2C1_SCL__LPI2C1_SCL	0x40000b9e>, /* Lino P18 */
+			   <MX93_PAD_I2C1_SDA__LPI2C1_SDA	0x40000b9e>; /* Lino P16 */
+	};
+
+	/* On-module PMIC I2C as GPIO */
+	pinctrl_pmic_i2c_gpio: lpi2c2gpiogrp {
+		fsl,pins = <MX93_PAD_I2C2_SCL__GPIO1_IO02	0x40000b9e>, /* PMIC_I2C_SCL */
+			   <MX93_PAD_I2C2_SDA__GPIO1_IO03	0x40000b9e>; /* PMIC_I2C_SDA */
+	};
+
+	/* On-module PMIC I2C */
+	pinctrl_pmic_i2c: lpi2c2grp {
+		fsl,pins = <MX93_PAD_I2C2_SCL__LPI2C2_SCL	0x40000b9e>, /* PMIC_I2C_SCL */
+			   <MX93_PAD_I2C2_SDA__LPI2C2_SDA	0x40000b9e>; /* PMIC_I2C_SDA */
+	};
+
+	/* Lino I2C_2 as GPIO */
+	pinctrl_i2c2_gpio: lpi2c3gpiogrp {
+		fsl,pins = <MX93_PAD_GPIO_IO28__GPIO2_IO28	0x40000b9e>, /* Lino P20 */
+			   <MX93_PAD_GPIO_IO29__GPIO2_IO29	0x40000b9e>; /* Lino P22 */
+	};
+
+	/* Lino I2C_2 */
+	pinctrl_i2c2: lpi2c3grp {
+		fsl,pins = <MX93_PAD_GPIO_IO28__LPI2C3_SDA	0x40000b9e>, /* Lino P20 */
+			   <MX93_PAD_GPIO_IO29__LPI2C3_SCL	0x40000b9e>; /* Lino P22 */
+	};
+
+	/* Lino I2C_3 as GPIO */
+	pinctrl_i2c3_gpio: lpi2c4gpiogrp {
+		fsl,pins = <MX93_PAD_GPIO_IO02__GPIO2_IO02	0x40000b9e>, /* Lino P24 */
+			   <MX93_PAD_GPIO_IO03__GPIO2_IO03	0x40000b9e>; /* Lino P26 */
+	};
+
+	/* Lino I2C_3 */
+	pinctrl_i2c3: lpi2c4grp {
+		fsl,pins = <MX93_PAD_GPIO_IO02__LPI2C4_SDA	0x40000b9e>, /* Lino P24 */
+			   <MX93_PAD_GPIO_IO03__LPI2C4_SCL	0x40000b9e>; /* Lino P26 */
+	};
+
+	/* Lino SPI_2 */
+	pinctrl_spi2: lpspi1grp {
+		fsl,pins = <MX93_PAD_SAI1_TXD0__LPSPI1_SCK	0x139e>, /* Lino S20 */
+			   <MX93_PAD_SAI1_RXD0__LPSPI1_SOUT	0x139e>, /* Lino S22 */
+			   <MX93_PAD_SAI1_TXC__LPSPI1_SIN	0x139e>; /* Lino S24 */
+	};
+
+	/* Lino SPI_1 */
+	pinctrl_spi1: lpspi8grp {
+		fsl,pins = <MX93_PAD_GPIO_IO13__LPSPI8_SIN	0x139e>, /* Lino P54 */
+			   <MX93_PAD_GPIO_IO14__LPSPI8_SOUT	0x139e>, /* Lino P56 */
+			   <MX93_PAD_GPIO_IO15__LPSPI8_SCK	0x139e>; /* Lino P52 */
+	};
+
+	/* Lino UART_3 */
+	pinctrl_uart3: lpuart1grp {
+		fsl,pins = <MX93_PAD_UART1_RXD__LPUART1_RX	0x39e>, /* Lino P17 */
+			   <MX93_PAD_UART1_TXD__LPUART1_TX	0x39e>; /* Lino P19 */
+	};
+
+	/* Lino UART_4 */
+	pinctrl_uart4: lpuart2grp {
+		fsl,pins = <MX93_PAD_UART2_RXD__LPUART2_RX	0x39e>, /* Lino P23 */
+			   <MX93_PAD_UART2_TXD__LPUART2_TX	0x39e>; /* Lino P25 */
+	};
+
+	/* Lino UART_1 */
+	pinctrl_uart1: lpuart6grp {
+		fsl,pins = <MX93_PAD_GPIO_IO04__LPUART6_TX	0x39e>, /* Lino P11 */
+			   <MX93_PAD_GPIO_IO05__LPUART6_RX	0x39e>, /* Lino P9 */
+			   <MX93_PAD_GPIO_IO06__LPUART6_CTS_B	0x39e>, /* Lino P8 */
+			   <MX93_PAD_GPIO_IO07__LPUART6_RTS_B	0x39e>; /* Lino P6 */
+	};
+
+	/* Lino UART_2 */
+	pinctrl_uart2: lpuart7grp {
+		fsl,pins = <MX93_PAD_GPIO_IO08__LPUART7_TX	0x39e>, /* Lino P15 */
+			   <MX93_PAD_GPIO_IO09__LPUART7_RX	0x39e>, /* Lino P13 */
+			   <MX93_PAD_GPIO_IO10__LPUART7_CTS_B	0x39e>, /* Lino S7 */
+			   <MX93_PAD_GPIO_IO11__LPUART7_RTS_B	0x39e>; /* Lino S5 */
+	};
+
+	/* Lino I2S_1 */
+	pinctrl_i2s1: sai3grp {
+		fsl,pins = <MX93_PAD_GPIO_IO16__SAI3_TX_BCLK	0x139e>, /* Lino S94 */
+			   <MX93_PAD_GPIO_IO19__SAI3_TX_DATA00	0x139e>, /* Lino S98 */
+			   <MX93_PAD_GPIO_IO20__SAI3_RX_DATA00	0x139e>, /* Lino S100 */
+			   <MX93_PAD_GPIO_IO26__SAI3_TX_SYNC	0x139e>; /* Lino S96 */
+	};
+
+	/* Lino PWM_1 */
+	pinctrl_pwm1: tpm4ch1grp {
+		fsl,pins = <MX93_PAD_GPIO_IO21__TPM4_CH1	0x139e>; /* Lino P1 */
+	};
+
+	/* Lino PWM_2 */
+	pinctrl_pwm2: tpm5ch2grp {
+		fsl,pins = <MX93_PAD_GPIO_IO18__TPM5_CH2	0x139e>; /* Lino P3 */
+	};
+
+	/* Lino PWM_3 */
+	pinctrl_pwm3: tpm6ch1grp {
+		fsl,pins = <MX93_PAD_GPIO_IO23__TPM6_CH1	0x139e>; /* Lino P5 */
+	};
+
+	/* On-module eMMC */
+	pinctrl_emmc: usdhc1grp {
+		fsl,pins = <MX93_PAD_SD1_CLK__USDHC1_CLK	0x5fe>,      /* eMMC_CLK    */
+			   <MX93_PAD_SD1_CMD__USDHC1_CMD	0x400013fe>, /* eMMC_CMD    */
+			   <MX93_PAD_SD1_DATA0__USDHC1_DATA0	0x400013fe>, /* eMMC_DATA0  */
+			   <MX93_PAD_SD1_DATA1__USDHC1_DATA1	0x400013fe>, /* eMMC_DATA1  */
+			   <MX93_PAD_SD1_DATA2__USDHC1_DATA2	0x400013fe>, /* eMMC_DATA2  */
+			   <MX93_PAD_SD1_DATA3__USDHC1_DATA3	0x400013fe>, /* eMMC_DATA3  */
+			   <MX93_PAD_SD1_DATA4__USDHC1_DATA4	0x400013fe>, /* eMMC_DATA4  */
+			   <MX93_PAD_SD1_DATA5__USDHC1_DATA5	0x400013fe>, /* eMMC_DATA5  */
+			   <MX93_PAD_SD1_DATA6__USDHC1_DATA6	0x400013fe>, /* eMMC_DATA6  */
+			   <MX93_PAD_SD1_DATA7__USDHC1_DATA7	0x400013fe>, /* eMMC_DATA7  */
+			   <MX93_PAD_SD1_STROBE__USDHC1_STROBE	0x1580>;     /* eMMC_STROBE */
+	};
+
+	/* Lino SD_1_CD# */
+	pinctrl_sd1_cd: usdhc2cdgrp {
+		fsl,pins = <MX93_PAD_SD2_CD_B__GPIO3_IO00	0x139e>; /* Lino P78 */
+	};
+
+	/* Lino SD_1 */
+	pinctrl_sd1: usdhc2grp {
+		fsl,pins = <MX93_PAD_SD2_CLK__USDHC2_CLK	0x5fe>,      /* Lino P68 */
+			   <MX93_PAD_SD2_CMD__USDHC2_CMD	0x400013fe>, /* Lino P66 */
+			   <MX93_PAD_SD2_DATA0__USDHC2_DATA0	0x400013fe>, /* Lino P74 */
+			   <MX93_PAD_SD2_DATA1__USDHC2_DATA1	0x400013fe>, /* Lino P76 */
+			   <MX93_PAD_SD2_DATA2__USDHC2_DATA2	0x400013fe>, /* Lino P60 */
+			   <MX93_PAD_SD2_DATA3__USDHC2_DATA3	0x400013fe>; /* Lino P64 */
+	};
+
+	/* Lino SD_1_PWR_EN */
+	pinctrl_sd1_pwr_en: usdhc2pwrgrp {
+		fsl,pins = <MX93_PAD_SD2_RESET_B__GPIO3_IO07	0x139e>; /* Lino P72 */
+	};
+
+	/* On-module PMIC_SD_2_VSEL */
+	pinctrl_sd1_vsel: usdhc2vselgrp {
+		fsl,pins = <MX93_PAD_SD2_VSELECT__GPIO3_IO19	0x51e>; /* PMIC_SD_2_VSEL */
+	};
+
+	/* Lino SD_2 */
+	pinctrl_sd2: usdhc3grp {
+		fsl,pins = <MX93_PAD_SD3_CLK__USDHC3_CLK	0x5fe>,      /* Lino S10 */
+			   <MX93_PAD_SD3_CMD__USDHC3_CMD	0x400013fe>, /* Lino S8  */
+			   <MX93_PAD_SD3_DATA0__USDHC3_DATA0	0x400013fe>, /* Lino S12 */
+			   <MX93_PAD_SD3_DATA1__USDHC3_DATA1	0x400013fe>, /* Lino S16 */
+			   <MX93_PAD_SD3_DATA2__USDHC3_DATA2	0x400013fe>, /* Lino S2  */
+			   <MX93_PAD_SD3_DATA3__USDHC3_DATA3	0x400013fe>; /* Lino S4  */
+	};
+
+	pinctrl_wdog: wdoggrp {
+		fsl,pins = <MX93_PAD_WDOG_ANY__WDOG1_WDOG_ANY 0x31e>; /* PMIC_WDOG_B */
+	};
+};
--

2.47.3

#5 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Frank,

Quoted 20 lines · Frank Li
Quoted 19 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

...

Quoted 21 lines
Quoted 8 lines

+&gpio1 {

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +7 -0
+	gpio-line-names =
+		"LINO_P18",
+		"LINO_P16",
+		"PMIC_I2C_SCL",
+		"PMIC_I2C_SDA",
+		"",
+		"",

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi line 146

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +10 -0
+		"",
+		"",
+		"",
+		"",
+		"LINO_P65", /* 10 */
+		"LINO_S18",
+		"LINO_S24",
+		"LINO_S20",
+		"LINO_S22",
+		"";

Can you wrap to 4 names pre line

Quoted 4 lines
	gpio-line-names = "LINO_P18", "LINO_P16", "PMIC_I2C_SCL", "PMIC_I2C_SDA",
			  "", "", "", "",

Reduce LOC, and easy to locate number, such gpio 13, second of 3rd line

I already replied on the v1 that I disagree on your request. To me it is just more readable the way it is now and I do not see minimizing the lines of code something that is bringing any kind of benefit on its own.

Is this blocking this from being picked up?
Is there any other concern on this series?

Francesco

#6 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 47 lines · Francesco Dolcini

Hello Frank,

Quoted 20 lines · Frank Li
Quoted 19 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

...

Quoted 21 lines
Quoted 8 lines

+&gpio1 {

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +7 -0
+	gpio-line-names =
+		"LINO_P18",
+		"LINO_P16",
+		"PMIC_I2C_SCL",
+		"PMIC_I2C_SDA",
+		"",
+		"",

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi line 146

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +10 -0
+		"",
+		"",
+		"",
+		"",
+		"LINO_P65", /* 10 */
+		"LINO_S18",
+		"LINO_S24",
+		"LINO_S20",
+		"LINO_S22",
+		"";

Can you wrap to 4 names pre line

Quoted 6 lines
Quoted 4 lines
	gpio-line-names = "LINO_P18", "LINO_P16", "PMIC_I2C_SCL", "PMIC_I2C_SDA",
			  "", "", "", "",

Reduce LOC, and easy to locate number, such gpio 13, second of 3rd line

I already replied on the v1 that I disagree on your request.

Your v2 sent too quick before I read v1.

Quoted 3 lines

To me it is
just more readable the way it is now and I do not see minimizing the lines of code something that is bringing any kind of benefit on its own.

The major concern is that it makes code read harder and lost focus by long lines.

Frank

Quoted 6 lines

Is this blocking this from being picked up?
Is there any other concern on this series?

Francesco

#7 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 55 lines · Frank Li
Quoted 47 lines · Francesco Dolcini

Hello Frank,

Quoted 20 lines · Frank Li
Quoted 19 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

...

Quoted 21 lines
Quoted 8 lines

+&gpio1 {

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +7 -0
+	gpio-line-names =
+		"LINO_P18",
+		"LINO_P16",
+		"PMIC_I2C_SCL",
+		"PMIC_I2C_SDA",
+		"",
+		"",

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi line 146

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +10 -0
+		"",
+		"",
+		"",
+		"",
+		"LINO_P65", /* 10 */
+		"LINO_S18",
+		"LINO_S24",
+		"LINO_S20",
+		"LINO_S22",
+		"";

Can you wrap to 4 names pre line

Quoted 6 lines
Quoted 4 lines
	gpio-line-names = "LINO_P18", "LINO_P16", "PMIC_I2C_SCL", "PMIC_I2C_SDA",
			  "", "", "", "",

Reduce LOC, and easy to locate number, such gpio 13, second of 3rd line

I already replied on the v1 that I disagree on your request.

Quoted 8 lines

Your v2 sent too quick before I read v1.

Quoted 3 lines

To me it is
just more readable the way it is now and I do not see minimizing the lines of code something that is bringing any kind of benefit on its own.

The major concern is that it makes code read harder and lost focus by long lines.

Understood, we do disagree on this.

Quoted 2 lines
Quoted 2 lines

Is this blocking this from being picked up?
Is there any other concern on this series?

Can you answer these two questions?

Thanks,
Francesco

#8 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Frank,

Quoted 65 lines · Francesco Dolcini
Quoted 55 lines · Frank Li
Quoted 47 lines · Francesco Dolcini

Hello Frank,

Quoted 20 lines · Frank Li
Quoted 19 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

...

Quoted 21 lines
Quoted 8 lines

+&gpio1 {

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +7 -0
+	gpio-line-names =
+		"LINO_P18",
+		"LINO_P16",
+		"PMIC_I2C_SCL",
+		"PMIC_I2C_SDA",
+		"",
+		"",

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi line 146

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +10 -0
+		"",
+		"",
+		"",
+		"",
+		"LINO_P65", /* 10 */
+		"LINO_S18",
+		"LINO_S24",
+		"LINO_S20",
+		"LINO_S22",
+		"";

Can you wrap to 4 names pre line

Quoted 6 lines
Quoted 4 lines
	gpio-line-names = "LINO_P18", "LINO_P16", "PMIC_I2C_SCL", "PMIC_I2C_SDA",
			  "", "", "", "",

Reduce LOC, and easy to locate number, such gpio 13, second of 3rd line

I already replied on the v1 that I disagree on your request.

Quoted 8 lines

Your v2 sent too quick before I read v1.

Quoted 3 lines

To me it is
just more readable the way it is now and I do not see minimizing the lines of code something that is bringing any kind of benefit on its own.

The major concern is that it makes code read harder and lost focus by long lines.

Quoted 6 lines

Understood, we do disagree on this.

Quoted 2 lines
Quoted 2 lines

Is this blocking this from being picked up?
Is there any other concern on this series?

Can you answer these two questions?

Please let me know if it is a requirement to have the gpio line names wrapped with 4 elements per row or not. I am waiting on your answer on this.

Thanks,
Francesco

#9 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 70 lines · Francesco Dolcini

Hello Frank,

Quoted 67 lines · Francesco Dolcini
Quoted 55 lines · Frank Li
Quoted 47 lines · Francesco Dolcini

Hello Frank,

Quoted 20 lines · Frank Li
Quoted 19 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

...

Quoted 21 lines
Quoted 8 lines

+&gpio1 {

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +7 -0
+	gpio-line-names =
+		"LINO_P18",
+		"LINO_P16",
+		"PMIC_I2C_SCL",
+		"PMIC_I2C_SDA",
+		"",
+		"",

arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi line 146

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi new file +10 -0
+		"",
+		"",
+		"",
+		"",
+		"LINO_P65", /* 10 */
+		"LINO_S18",
+		"LINO_S24",
+		"LINO_S20",
+		"LINO_S22",
+		"";

Can you wrap to 4 names pre line

Quoted 6 lines
Quoted 4 lines
	gpio-line-names = "LINO_P18", "LINO_P16", "PMIC_I2C_SCL", "PMIC_I2C_SDA",
			  "", "", "", "",

Reduce LOC, and easy to locate number, such gpio 13, second of 3rd line

I already replied on the v1 that I disagree on your request.

Quoted 8 lines

Your v2 sent too quick before I read v1.

Quoted 3 lines

To me it is
just more readable the way it is now and I do not see minimizing the lines of code something that is bringing any kind of benefit on its own.

The major concern is that it makes code read harder and lost focus by long lines.

Understood, we do disagree on this.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

Is this blocking this from being picked up?
Is there any other concern on this series?

Can you answer these two questions?

Please let me know if it is a requirement to have the gpio line names wrapped with 4 elements per row or not. I am waiting on your answer on this.

Although it is not "must" requirement, I think it is easy to read by packed 4 elements.

Frank

Quoted 4 lines

Thanks,
Francesco

#10 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Frank,

Quoted 14 lines · Frank Li
Quoted 13 lines · Francesco Dolcini
Quoted 12 lines · Francesco Dolcini
Quoted 11 lines · Frank Li
Quoted 10 lines · Francesco Dolcini
Quoted 9 lines · Frank Li
Quoted 8 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX93 SoM, its Verdin adapter and development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

[...]

Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines

Is this blocking this from being picked up?
Is there any other concern on this series?

Can you answer these two questions?

Please let me know if it is a requirement to have the gpio line names wrapped with 4 elements per row or not. I am waiting on your answer on this.

Although it is not "must" requirement, I think it is easy to read by packed 4 elements.

Thanks for the reply. Given this comment and the disagreement we have on the read-ability I do not plan to change anything in this patch series.

Let me know if any other issue is present or if anything changes on this specific regard.

Thanks,
Francesco

#11 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

In reply to Francesco Dolcini

arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi line 154

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi new file +4 -0
+	ethphy1: ethernet-phy@1 {
+		reg = <1>;
+		interrupt-parent = <&adapter_gpio_expander>;
+		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;

Falling interrupts is probably wrong. They are normally level, active low.

Andrew

#12 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Andrew,
thanks for the review.

Quoted 7 lines · Andrew Lunn

arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi line 154

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi new file +4 -0
+	ethphy1: ethernet-phy@1 {
+		reg = <1>;
+		interrupt-parent = <&adapter_gpio_expander>;
+		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;

Falling interrupts is probably wrong. They are normally level, active low.

It is wanted. The I2C ioexpander component used for the interrupt supports only edge interrupts. We tested it and it works fine like that.

The linux driver is now able to emulate the level interrupt in software, however ...
- the DT is shared with other project, it is a HW description and it is not supposed to pair with the specific linux driver
- when we tested it, the SW emulation was not really reliable, and we prefer to play on the safe side

Francesco

#13 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 13 lines · Francesco Dolcini

Hello Andrew,
thanks for the review.

Quoted 7 lines · Andrew Lunn

arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi line 154

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi new file +4 -0
+	ethphy1: ethernet-phy@1 {
+		reg = <1>;
+		interrupt-parent = <&adapter_gpio_expander>;
+		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;

Falling interrupts is probably wrong. They are normally level, active low.

Quoted 2 lines

It is wanted. The I2C ioexpander component used for the interrupt supports only edge interrupts. We tested it and it works fine like that.

It works, until it does not work, because you hit a race condition with the hardware, two interrupts in quick succession. The second one gets lost, and your link remains down forever.

Quoted 2 lines

- when we tested it, the SW emulation was not really reliable, and we prefer to play on the safe side

If you want to be safe, delete the interrupt properties and let phylib poll the PHY. That always works.

Andrew

#14 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Andrew,

Quoted 10 lines · Andrew Lunn
Quoted 9 lines · Francesco Dolcini
Quoted 7 lines · Andrew Lunn

arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi line 154

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi new file +4 -0
+	ethphy1: ethernet-phy@1 {
+		reg = <1>;
+		interrupt-parent = <&adapter_gpio_expander>;
+		interrupts = <3 IRQ_TYPE_EDGE_FALLING>;

Falling interrupts is probably wrong. They are normally level, active low.

Quoted 6 lines
Quoted 2 lines

It is wanted. The I2C ioexpander component used for the interrupt supports only edge interrupts. We tested it and it works fine like that.

It works, until it does not work, because you hit a race condition with the hardware, two interrupts in quick succession. The second one gets lost, and your link remains down forever.

Would you mind to articulate in which situation such race condition can happen? I tried to think a little bit about it and I cannot think of anything. I asked google about it and it pointed out to a patch of myself ... (https://lkml.org/lkml/2022/5/16/1186)

This limitation is something that exist also with the TI SoC, for example, also there only edge is supported.

Quoted 5 lines
Quoted 2 lines

- when we tested it, the SW emulation was not really reliable, and we prefer to play on the safe side

If you want to be safe, delete the interrupt properties and let phylib poll the PHY. That always works.

Yes, with the 1Hz polling. That might be too slow for some use cases.

Francesco

#15 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 2 lines

Would you mind to articulate in which situation such race condition can happen?

Most PHYs have a number of interrupt sources. Taking a random example:

/* DM9161 Interrupt Register */

#define MII_DM9161_INTR_DPLX_CHANGE     0x0010
#define MII_DM9161_INTR_SPD_CHANGE      0x0008
#define MII_DM9161_INTR_LINK_CHANGE     0x0004
#define MII_DM9161_INTR_CHANGE  \
        (MII_DM9161_INTR_DPLX_CHANGE | \
         MII_DM9161_INTR_SPD_CHANGE | \
         MII_DM9161_INTR_LINK_CHANGE)

and a completely made up example which results in problems...

Three interrupts are enabled. Say the PHY reports a duplex change first. That causes the interrupt line to go low, giving a downward edge. The interrupt handler fires, and reads the interrupt status register. In order the clear the interrupt you need to access another register about duplex. Before you do that, the link interrupt fires, setting the link bit in the status register. However, there is not another edge, because the duplex interrupt has not been cleared yet. The PHY driver does clear the duplex interrupt and exits the interrupt handler.

The interrupt line is still low, indicating a link interrupt, but without an edge, no interrupt handler is triggered. The interrupt has been lost, and the link is reported down, despite being up.

If however you are using level interrupts, as soon as the interrupt handler exits, and reenables the interrupt in the parent interrupt controller, it fires again, and the link interrupt is handled.

If you have multiple interrupts indicated by a single line, you should use level handling in the parent interrupt controller.

Andrew

#16 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Andrew,
thanks a lot for the detailed explanation.

Quoted 6 lines · Andrew Lunn
Quoted 2 lines

Would you mind to articulate in which situation such race condition can happen?

Most PHYs have a number of interrupt sources. Taking a random example:

/* DM9161 Interrupt Register */

...

Quoted 10 lines

The interrupt line is still low, indicating a link interrupt, but without an edge, no interrupt handler is triggered. The interrupt has been lost, and the link is reported down, despite being up.

If however you are using level interrupts, as soon as the interrupt handler exits, and reenables the interrupt in the parent interrupt controller, it fires again, and the link interrupt is handled.

If you have multiple interrupts indicated by a single line, you should use level handling in the parent interrupt controller.

I looked into the specific ethernet phy used here, TI DP83867, and I would say that the falling edge interrupt should be safe on this specific board/phy.

There is a single ISR register, and it's a single read/clear atomic operation (MII_DP83867_ISR 0x13, dp83867_ack_interrupt). This is done before doing any access to any other register, so the interrupt will just fires again if anything happen. I do not see the race condition window.

I know it is not conclusive, but we have multiple boards with the same edge interrupt configuration and the same ethernet phy (the interrupt is wired directly to a TI SoC, that supports only edge interrupt, not to a gpio expander) and we never had any failure. Our test coverage is quite good IMO, commit 91a7cda1f4b8 ("net: phy: Fix race condition on link status change") is something I did because our testing had some sporadic failures for a different race condition.

What do you think? *IF* my reasoning is correct I would suggest to keep the code as it is now.

Francesco

#17 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 3 lines

I looked into the specific ethernet phy used here, TI DP83867, and I would say that the falling edge interrupt should be safe on this specific board/phy.

https://www.ti.com/lit/ds/symlink/dp83867ir.pdf

Page 7:

INTERRUPT: This pin can be programmed as an interrupt output instead of a Power down input. In this mode, Interrupts is asserted low using this pin.

Also:

When operating this pin as an interrupt, the pin is an open-drain architecture.

This allows you to connect multiple PHYs to one SoC interrupt, shared interrupts, which again needs level interrupts.

So the datasheet says it is active low.

Quoted 2 lines

What do you think? *IF* my reasoning is correct I would suggest to keep the code as it is now.

If you decide to stay with edge, i suggest you put a comment in DT, something like:

# The PHY data sheet says the interrupt is active low, but the

# interrupt controller does not support level interrupts. Use it as
# falling edge and hope for the best.

Andrew

#18 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Hello Andrew,

Quoted 14 lines · Andrew Lunn
Quoted 3 lines

I looked into the specific ethernet phy used here, TI DP83867, and I would say that the falling edge interrupt should be safe on this specific board/phy.

https://www.ti.com/lit/ds/symlink/dp83867ir.pdf

Page 7:

INTERRUPT: This pin can be programmed as an interrupt output instead of a Power down input. In this mode, Interrupts is asserted low using this pin.

Also:

Quoted 7 lines

When operating this pin as an interrupt, the pin is an open-drain architecture.

This allows you to connect multiple PHYs to one SoC interrupt, shared interrupts, which again needs level interrupts.

So the datasheet says it is active low.

Yes, indeed. I was aware of it, I was just assuming this as a shared understanding - sorry. My comment was supposed to be read as, "even if this is a level interrupt, using it as edge is safe because of this reasons, ...". In addition, in this specific board, the interrupt is not shared, otherwise it could not work at all.

Quoted 9 lines
Quoted 2 lines

What do you think? *IF* my reasoning is correct I would suggest to keep the code as it is now.

If you decide to stay with edge, i suggest you put a comment in DT, something like:

# The PHY data sheet says the interrupt is active low, but the

# interrupt controller does not support level interrupts. Use it as
# falling edge and hope for the best.

"hope for the best" is not what I plan for. Given the specific of this ethernet phy I do not see any race condition, as I tried to describe in the previous email. If you believe that my explanation is flowed and there is a possible race condition please let me know and I would rather go for polling.

And again, thanks for the review, I appreciate it. The goal is to have working ethernet with the interrupt, and, **IF** not possible, working ethernet is more important than the interrupt :-)

Francesco

#19 lore raw

Re: [PATCH v2 3/7] arm64: dts: freescale: Add Lino iMX93

Quoted 3 lines

And again, thanks for the review, I appreciate it. The goal is to have working ethernet with the interrupt, and, **IF** not possible, working ethernet is more important than the interrupt :-)

Your decision.

The datasheet says it is active low. Polling will always work.

Generally, users who want fast notification of link down use something like Bidirectional Forwarding Detection, which can tell you much faster that the link is dead then the PHY itself, which tends to wait for 1 second before declaring the link down and changing BMSR.

Andrew

#20 lore raw

PATCH v2 4/7 arm64: dts: freescale: imx93-lino: Add dahlia

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for Lino iMX93 mated with the Verdin adapter and Dahlia carrier board.

---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 ...imx93-imx91-lino-verdin-dahlia-common.dtsi | 198 ++++++++++++++++++
 .../freescale/imx93-lino-verdin-dahlia.dts    |  24 +++
 3 files changed, 223 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dahlia-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dahlia.dts
arch/arm64/boot/dts/freescale/Makefile +1 -0
index eb71f126a8ed..319a0e797e94 100644
@@ -887,6 +887,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-frdm-pixpaper.dtb
 
 dtb-$(CONFIG_ARCH_MXC) += imx93-14x14-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-kontron-bl-osm-s.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx93-lino-verdin-dahlia.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-lino-verdin-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-nash.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin.dtb
arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dahlia-common.dtsi new file +198 -0

198 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-lino-verdin-dahlia.dts new file +24 -0
new file mode 100644
index 000000000000..c708a2e18c90
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX93 SoM on Lino-Verdin Adapter / Dahlia carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx93
+ * https://www.toradex.com/products/carrier-board/dahlia-carrier-board-kit
+ */
+
+/dts-v1/;
+
+#include "imx93.dtsi"
+#include "imx93-lino.dtsi"
+#include "imx93-imx91-lino-verdin-common.dtsi"
+#include "imx93-imx91-lino-verdin-dahlia-common.dtsi"
+
+/ {
+	model = "Toradex Lino iMX93 on Verdin Adapter plus Dahlia Board";
+	compatible = "toradex,lino-imx93-verdin-dahlia",
+		     "toradex,lino-imx93-verdin",
+		     "toradex,lino-imx93",
+		     "fsl,imx93";
+};
Signature · 1 line
2.47.3
#21 lore raw

PATCH v2 5/7 arm64: dts: freescale: Add Lino iMX91

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Lino iMX91 SoM, its Verdin adapter, dahlia and development carrier board.

---
 arch/arm64/boot/dts/freescale/Makefile        |   2 +
 .../freescale/imx91-lino-verdin-dahlia.dts    |  24 ++
 .../dts/freescale/imx91-lino-verdin-dev.dts   |  24 ++
 arch/arm64/boot/dts/freescale/imx91-lino.dtsi | 305 ++++++++++++++++++
 4 files changed, 355 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino-verdin-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino.dtsi
arch/arm64/boot/dts/freescale/Makefile +2 -0
index 319a0e797e94..823ef16ba621 100644
@@ -847,6 +847,8 @@ dtb-$(CONFIG_ARCH_MXC) += imx91-9x9-qsb-tianma-tm050rdh03.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx91-11x11-evk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx91-11x11-frdm.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx91-11x11-frdm-s.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx91-lino-verdin-dahlia.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx91-lino-verdin-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx91-phyboard-segin.dtb
 
 imx91-9x9-qsb-can1-dtbs += imx91-9x9-qsb.dtb imx91-9x9-qsb-can1.dtbo
arch/arm64/boot/dts/freescale/imx91-lino-verdin-dahlia.dts new file +24 -0
new file mode 100644
index 000000000000..eb3a8cdcd08f
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX91 SoM on Lino-Verdin Adapter / Dahlia carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx91
+ * https://www.toradex.com/products/carrier-board/dahlia-carrier-board-kit
+ */
+
+/dts-v1/;
+
+#include "imx91.dtsi"
+#include "imx91-lino.dtsi"
+#include "imx93-imx91-lino-verdin-common.dtsi"
+#include "imx93-imx91-lino-verdin-dahlia-common.dtsi"
+
+/ {
+	model = "Toradex Lino iMX91 on Verdin Adapter plus Dahlia Board";
+	compatible = "toradex,lino-imx91-verdin-dahlia",
+		     "toradex,lino-imx91-verdin",
+		     "toradex,lino-imx91",
+		     "fsl,imx91";
+};
arch/arm64/boot/dts/freescale/imx91-lino-verdin-dev.dts new file +24 -0
new file mode 100644
index 000000000000..a988897f3388
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Lino iMX91 SoM on Lino-Verdin Adapter / Development carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/lino-arm-family/nxp-imx91
+ * https://www.toradex.com/products/carrier-board/verdin-development-board-kit
+ */
+
+/dts-v1/;
+
+#include "imx91.dtsi"
+#include "imx91-lino.dtsi"
+#include "imx93-imx91-lino-verdin-common.dtsi"
+#include "imx93-imx91-lino-verdin-dev-common.dtsi"
+
+/ {
+	model = "Toradex Lino iMX91 on Verdin Adapter plus Development Board";
+	compatible = "toradex,lino-imx91-verdin-dev",
+		     "toradex,lino-imx91-verdin",
+		     "toradex,lino-imx91",
+		     "fsl,imx91";
+};
arch/arm64/boot/dts/freescale/imx91-lino.dtsi new file +305 -0

305 lines not on this page · raw message

Signature · 1 line
2.47.3
#22 lore raw

PATCH v2 6/7 arm64: dts: freescale: Add Toradex OSM iMX93

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the Toradex OSM iMX93 and its development carrier board.

The SoM is available in two variants, with i.MX91 or i.MX93 SoC, using the same PCB (the two chips are pin to pin compatible), to avoid duplication create a common dtsi to share commonalities.

---
v2:
- drop #address-cells/#size-cells from &lpi2c1, &lpi2c2 and &lpi2c3, already set in imx91_93_common.dtsi.
- drop #sound-dai-cells from &sai3, already set in imx91_93_common.dtsi.

---
 arch/arm64/boot/dts/freescale/Makefile        |   2 +
 .../imx93-imx91-toradex-osm-common.dtsi       | 526 ++++++++++++++++++
 .../imx93-imx91-toradex-osm-dev-common.dtsi   | 324 +++++++++++
 .../dts/freescale/imx93-toradex-osm-dev.dts   |  22 +
 .../boot/dts/freescale/imx93-toradex-osm.dtsi | 357 ++++++++++++
 5 files changed, 1231 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-toradex-osm-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-toradex-osm.dtsi
arch/arm64/boot/dts/freescale/Makefile +2 -0
index 823ef16ba621..64fa5d0527ff 100644
@@ -911,6 +911,8 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin-peb-eval-01.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phyboard-segin-peb-wlbt-05.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-phycore-rpmsg.dtb
 
+dtb-$(CONFIG_ARCH_MXC) += imx93-toradex-osm-dev.dtb
+
 dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba91xxca.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb
arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi new file +526 -0

526 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi new file +324 -0

324 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx93-toradex-osm-dev.dts new file +22 -0
new file mode 100644
index 000000000000..a6cc2ae35d04
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex OSM iMX93 SoM on OSM Development carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/osm-arm-family/nxp-imx93
+ * https://www.toradex.com/products/carrier-board/osm-development-board
+ */
+
+/dts-v1/;
+
+#include "imx93.dtsi"
+#include "imx93-toradex-osm.dtsi"
+#include "imx93-imx91-toradex-osm-dev-common.dtsi"
+
+/ {
+	model = "Toradex OSM iMX93 on OSM Development Board";
+	compatible = "toradex,osm-imx93-dev",
+		     "toradex,osm-imx93",
+		     "fsl,imx93";
+};
arch/arm64/boot/dts/freescale/imx93-toradex-osm.dtsi new file +357 -0

357 lines not on this page · raw message

Signature · 1 line
2.47.3
#23 lore raw

PATCH v2 7/7 arm64: dts: freescale: Add Toradex OSM iMX91

In reply to Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add support for the OSM iMX91 SoM and the development carrier board that can be mated with.

---
 arch/arm64/boot/dts/freescale/Makefile        |   2 +
 .../dts/freescale/imx91-toradex-osm-dev.dts   |  22 ++
 .../boot/dts/freescale/imx91-toradex-osm.dtsi | 303 ++++++++++++++++++
 3 files changed, 327 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-toradex-osm-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-toradex-osm.dtsi
arch/arm64/boot/dts/freescale/Makefile +2 -0
index 64fa5d0527ff..39686f17891b 100644
@@ -856,6 +856,8 @@ imx91-phyboard-segin-peb-av-18-dtbs += imx91-phyboard-segin.dtb imx91-phyboard-s
 dtb-$(CONFIG_ARCH_MXC) += imx91-9x9-qsb-can1.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx91-phyboard-segin-peb-av-18.dtb
 
+dtb-$(CONFIG_ARCH_MXC) += imx91-toradex-osm-dev.dtb
+
 dtb-$(CONFIG_ARCH_MXC) += imx91-tqma9131-mba91xxca.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx91-tqma9131-mba93xxca.dtb
 
arch/arm64/boot/dts/freescale/imx91-toradex-osm-dev.dts new file +22 -0
new file mode 100644
index 000000000000..ec5e701fb275
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-only OR MIT
+/*
+ * Copyright (c) Toradex
+ *
+ * Toradex OSM iMX91 SoM on OSM Development carrier board
+ *
+ * https://www.toradex.com/computer-on-modules/osm-arm-family/nxp-imx91
+ * https://www.toradex.com/products/carrier-board/osm-development-board
+ */
+
+/dts-v1/;
+
+#include "imx91.dtsi"
+#include "imx91-toradex-osm.dtsi"
+#include "imx93-imx91-toradex-osm-dev-common.dtsi"
+
+/ {
+	model = "Toradex OSM iMX91 on OSM Development Board";
+	compatible = "toradex,osm-imx91-dev",
+		     "toradex,osm-imx91",
+		     "fsl,imx91";
+};
arch/arm64/boot/dts/freescale/imx91-toradex-osm.dtsi new file +303 -0

303 lines not on this page · raw message

Signature · 1 line
2.47.3
#24 lore raw
In reply to Francesco Dolcini
Quoted 9 lines · Francesco Dolcini

From: Francesco Dolcini <[email protected]>

Add Device Tree support for the Toradex Lino and OSM SoM families, based on the NXP i.MX91 and i.MX93 SoCs.

Both families are available with either i.MX91 or i.MX93 on the same PCB. Since the two SoCs are pin compatible, common Device Tree files are used to share the hardware description between the two variants.

Quoted 6 lines

For the Lino family, add support for the Lino-Verdin Adapter, which allows Lino modules to be used with Verdin-compatible carrier boards. This series supports the Verdin Development Board and Dahlia carrier board.

For the OSM family, add support for the OSM Development Board.

Please rebase.

Frank

Quoted 54 lines

v2:
- add acked-by
- removed #.*cells properties that are already set in the soc dtsi
v1: https://lore.kernel.org/all/[email protected]/

Francesco Dolcini (7):
dt-bindings: arm: fsl: Add Lino iMX91/iMX93
dt-bindings: arm: fsl: Add Toradex OSM iMX91/iMX93
arm64: dts: freescale: Add Lino iMX93
arm64: dts: freescale: imx93-lino: Add dahlia
arm64: dts: freescale: Add Lino iMX91
arm64: dts: freescale: Add Toradex OSM iMX93
arm64: dts: freescale: Add Toradex OSM iMX91

 .../devicetree/bindings/arm/fsl.yaml          |  30 +
 arch/arm64/boot/dts/freescale/Makefile        |   8 +
 .../freescale/imx91-lino-verdin-dahlia.dts    |  24 +
 .../dts/freescale/imx91-lino-verdin-dev.dts   |  24 +
 arch/arm64/boot/dts/freescale/imx91-lino.dtsi | 305 ++++++++++
 .../dts/freescale/imx91-toradex-osm-dev.dts   |  22 +
 .../boot/dts/freescale/imx91-toradex-osm.dtsi | 303 ++++++++++
 .../freescale/imx93-imx91-lino-common.dtsi    | 536 ++++++++++++++++++
 .../imx93-imx91-lino-verdin-common.dtsi       | 175 ++++++
 ...imx93-imx91-lino-verdin-dahlia-common.dtsi | 198 +++++++
 .../imx93-imx91-lino-verdin-dev-common.dtsi   | 216 +++++++
 .../imx93-imx91-toradex-osm-common.dtsi       | 526 +++++++++++++++++
 .../imx93-imx91-toradex-osm-dev-common.dtsi   | 324 +++++++++++
 .../freescale/imx93-lino-verdin-dahlia.dts    |  24 +
 .../dts/freescale/imx93-lino-verdin-dev.dts   |  24 +
 arch/arm64/boot/dts/freescale/imx93-lino.dtsi | 359 ++++++++++++
 .../dts/freescale/imx93-toradex-osm-dev.dts   |  22 +
 .../boot/dts/freescale/imx93-toradex-osm.dtsi | 357 ++++++++++++
 18 files changed, 3477 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino-verdin-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-lino.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-toradex-osm-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx91-toradex-osm.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dahlia-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-lino-verdin-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-imx91-toradex-osm-dev-common.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dahlia.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino-verdin-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-lino.dtsi
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-toradex-osm-dev.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx93-toradex-osm.dtsi

--
2.47.3