Skip to contentSkip to conversation

arm64: dts: imx95: Add ADLINK LEC-iMX95 support

PATCH Superseded Dinesh kumar v 3 participants 6 messages Nov 25

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v4 cover arm64: dts: imx95: Add ADLINK LEC-iMX95 support

Add device tree support for the ADLINK LEC-iMX95 module with the I-Pi SMARC Plus carrier board.

The series includes:
- Add ADLINK Technology vendor prefix.
- Document ADLINK LEC-iMX95 compatible strings.
- Add device tree support for the LEC-iMX95 module and I-Pi SMARC Plus carrier board.

Changes in v4:
- Correct alphabetical ordering of the ADLINK vendor prefix.
- Remove non-standard USB aliases.
- Remove the ChipIdea USB2 controller configuration. Hardware testing confirmed that all four Type-A ports on the I-Pi SMARC Plus carrier board work without enabling this controller.
- Remove unverified SMARC USB connector comments while retaining the DWC3 host configuration and U1/U2 quirks.

Dinesh kumar v (3):
dt-bindings: vendor-prefixes: Add ADLINK
dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
arm64: dts: imx95: Add ADLINK LEC-iMX95 board support

 .../devicetree/bindings/arm/fsl.yaml          |   6 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../dts/freescale/imx95-lec-ipi-smarc.dts     | 138 ++++
 arch/arm64/boot/dts/freescale/imx95-lec.dtsi  | 628 ++++++++++++++++++
 5 files changed, 775 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec.dtsi
Signature · 1 line
2.25.1
#1 lore raw

PATCH v4 1/3 dt-bindings: vendor-prefixes: Add ADLINK

Add the ADLINK Technology vendor prefix for device tree compatible strings.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index e467da45cd7a..162a4a9d8c18 100644
@@ -68,6 +68,8 @@ patternProperties:
     description: Analog Devices, Inc.
   "^adieng,.*":
     description: ADI Engineering, Inc.
+  "^adlink,.*":
+    description: ADLINK Technology Inc.
   "^admatec,.*":
     description: admatec GmbH
   "^advantech,.*":
Signature · 1 line
2.25.1
#3 lore raw

PATCH v4 2/3 dt-bindings: arm: fsl: Add ADLINK LEC-iMX95

In reply to Dinesh kumar v

Document the ADLINK LEC-iMX95 board compatibles.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +6 -0
index cb99fb74805b..baa96b004c52 100644
@@ -1577,6 +1577,12 @@ properties:
               - fsl,imx952-frdm           # i.MX952 FRDM Board
           - const: fsl,imx952
 
+      - description: ADLINK LEC-iMX95 based Boards
+        items:
+          - const: adlink,lec-imx95-ipi-smarc
+          - const: adlink,lec-imx95
+          - const: fsl,imx95
+
       - description: PHYTEC i.MX 95 FPSC based Boards
         items:
           - enum:
Signature · 1 line
2.25.1
#4 lore raw

PATCH v4 3/3 arm64: dts: imx95: Add ADLINK LEC-iMX95 board support

In reply to Dinesh kumar v

Add device tree support for the ADLINK LEC-iMX95 module with the I-Pi SMARC Plus carrier board.

---
 arch/arm64/boot/dts/freescale/Makefile        |   1 +
 .../dts/freescale/imx95-lec-ipi-smarc.dts     | 138 ++++
 arch/arm64/boot/dts/freescale/imx95-lec.dtsi  | 628 ++++++++++++++++++
 3 files changed, 767 insertions(+)
 create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts
 create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
index a80cccf34eb5..bb02809bb225 100644
@@ -965,6 +965,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-evk-sof.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-frdm-pro.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-aquila-clover.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-aquila-dev.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx95-lec-ipi-smarc.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-navq.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-toradex-osm-dev.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx95-toradex-smarc-dev.dtb
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +138 -0

138 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +628 -0

628 lines not on this page · raw message

Signature · 1 line
2.25.1
#5 lore raw

Re: [PATCH v4 3/3] arm64: dts: imx95: Add ADLINK LEC-iMX95 board support

Quoted 5 lines · Dinesh kumar v

Add device tree support for the ADLINK LEC-iMX95 module with the I-Pi SMARC Plus carrier board.

---

...

Quoted 16 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +16 -0
+
+&lpi2c8 {
+	status = "okay";
+
+	/* SX1509(2) U1001@IPi SMARC Plus */
+	i2c8_gpio_expander_3e: pinctrl@3e {
+		/*
+		 * GPIO Expander 2 Mapping:
+		 * - 0: E_GPIO1_0	<=>	IPi SMARC Plus CN101_PIN29: E_GPIO1_0
+		 * - 1: E_GPIO1_1	<=>	IPi SMARC Plus CN101_PIN31: E_GPIO1_1
+		 * - 2: E_GPIO1_2	<=>	IPi SMARC Plus CN101_PIN32: E_GPIO1_2
+		 * - 3: E_GPIO1_3	<=>	IPi SMARC Plus CN101_PIN33: E_GPIO1_3
+		 * - 4: E_GPIO1_4	<=>	IPi SMARC Plus CN101_PIN35: E_GPIO1_4
+		 * - 5: E_GPIO1_5	<=>	IPi SMARC Plus CN101_PIN36: E_GPIO1_5
+		 * - 6: E_GPIO1_6	<=>	IPi SMARC Plus CN101_PIN37: E_GPIO1_6
+		 * - 7: E_GPIO1_7	<=>	IPi SMARC Plus CN101_PIN38: E_GPIO1_7

arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts line 58

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +10 -0
+		 * - 8: E_GPIO2_8	<=>	IPi SMARC Plus CN101_PIN40: E_GPIO2_8
+		 * - 9: TP1002		<=>	IPi SMARC Plus TP1002
+		 * - 10: TP1003		<=>	IPi SMARC Plus TP1003
+		 * - 11: TP1004		<=>	IPi SMARC Plus TP1004
+		 * - 12: TP1005		<=>	IPi SMARC Plus TP1005
+		 * - 13: TP1006		<=>	IPi SMARC Plus TP1006
+		 * - 14: TP1007		<=>	IPi SMARC Plus TP1007
+		 * - 15: TP1008		<=>	IPi SMARC Plus TP1008
+		 * - 16: OSCIO		<=>	IPi SMARC Plus TP1001
+		 */

The below gpio-line-names already include the same informaiton, needn't duplicate it here.

Quoted 32 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +32 -0
+		compatible = "semtech,sx1509q";
+		reg = <0x3e>;
+		#gpio-cells = <2>;
+		#interrupt-cells = <2>;
+		gpio-controller;
+		interrupt-controller;
+		/* GPIO2_IO22 (module FAN_PWM_1V8) is the expander IRQ on this carrier */
+		interrupt-parent = <&gpio2>;
+		interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
+		pinctrl-0 = <&pinctrl_gpio_exp_3e>;
+		pinctrl-names = "default";
+		gpio-line-names =
+			"E_GPIO1_0",		/* 0 - CN101 Pin 29 */
+			"E_GPIO1_1",		/* 1 - CN101 Pin 31 */
+			"E_GPIO1_2",		/* 2 - CN101 Pin 32 */
+			"E_GPIO1_3",		/* 3 - CN101 Pin 33 */
+			"E_GPIO1_4",		/* 4 - CN101 Pin 35 */
+			"E_GPIO1_5",		/* 5 - CN101 Pin 36 */
+			"E_GPIO1_6",		/* 6 - CN101 Pin 37 */
+			"E_GPIO1_7",		/* 7 - CN101 Pin 38 */
+			"E_GPIO2_8",		/* 8 - CN101 Pin 40 */
+			"",			/* 9 - TP1002 */
+			"",			/* 10 - TP1003 */
+			"",			/* 11 - TP1004 */
+			"",			/* 12 - TP1005 */
+			"",			/* 13 - TP1006 */
+			"",			/* 14 - TP1007 */
+			"",			/* 15 - TP1008 */
+			"";			/* 16 - OSCIO / TP1001 */
+		semtech,probe-reset;
+	};
+};

...

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +12 -0
+
+	/* U1000 SX1509BIULTRT_SEMTECH on module */
+	i2c2_gpio_expander_71: pinctrl@71 {
+		/*
+		 * GPIO Expander Mapping:
+		 * - 0: ENET1_RST_B_3V		=>		U2001
+		 * - 1: ENET2_RST_B_3V		=>		U2101
+		 * - 2: SERDES_RST#_3V		=>		SMARC S77 PCIE_C_RST
+		 * - 3: RC210_EN_3V		=>		U1300, RC21008B001GND
+		 * - 4: LT9611_RSTN_3V		=>		U1500
+		 * - 5: HDMI_INT_3V		<=		U1500
+		 * - 6: PCIEA_RST#_3V		=>		SMARC P75

arch/arm64/boot/dts/freescale/imx95-lec.dtsi line 252

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +10 -0
+		 * - 7: PCIEB_RST#_3V		=>		SMARC S76
+		 * - 8: TPM_RST_N_1V8		=>		U2400
+		 * - 9: LID#_1V8		<=	R1005	SMARC S148
+		 * - 10: SLEEP#_1V8		<=	R1010	SMARC S149
+		 * - 11: CHARGING#_1V8		<=	R1007	SMARC S151
+		 * - 12: CHARGER_PRSNT#_1V8	<=	R1011	SMARC S152
+		 * - 13: BATLOW#_1V8		<=	R1014	SMARC S156
+		 * - 14: TEST#_1V8		<=	R1015	SMARC S157
+		 * - 15: DSI0_TE_1V8		<=	R1087	SMARC S144
+		 */

merge to comment of gpio-line-names

Frank

Quoted 31 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +31 -0
+		compatible = "semtech,sx1509q";
+		reg = <0x71>;
+		#gpio-cells = <2>;
+		#interrupt-cells = <2>;
+		gpio-controller;
+		interrupt-controller;
+		interrupt-parent = <&gpio4>;
+		interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
+		pinctrl-0 = <&pinctrl_sx1509q>;
+		pinctrl-names = "default";
+		gpio-line-names =
+			"ENET1_RST_B_3V",	/* 0 */
+			"ENET2_RST_B_3V",	/* 1 */
+			"SERDES_RST#_3V",	/* 2 */
+			"RC210_EN_3V",		/* 3 */
+			"LT9611_RSTN_3V",	/* 4 */
+			"HDMI_INT_3V",		/* 5 */
+			"PCIEA_RST#_3V",	/* 6 */
+			"PCIEB_RST#_3V",	/* 7 */
+			"TPM_RST_N_1V8",	/* 8 */
+			"SMARC_LID#",		/* 9 */
+			"SMARC_SLEEP#",		/* 10 */
+			"SMARC_CHARGING#",	/* 11 */
+			"SMARC_CHARGER_PRSNT#",	/* 12 */
+			"SMARC_BATLOW#",	/* 13 */
+			"SMARC_TEST#",		/* 14 */
+			"DSI0_TE_1V8",		/* 15 */
+			"";			/* 16 - OSCIO */
+		semtech,probe-reset;
+	};
+};