Skip to contentSkip to conversation

arm64: dts: imx93-var-som-symphony: align DTS with hardware revision

PATCH Applied Stefano Radaelli 2 participants 8 messages Jun 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v3 cover arm64: dts: imx93-var-som-symphony: align DTS with hardware revision

This series updates the i.MX93 VAR-SOM Symphony device tree to match the latest carrier board hardware revision.

The changes add support for onboard peripherals and complete the board configuration with the required GPIO, pinctrl and PWM settings.

v2->v3:
- Use reset-gpios for the TPM instead of a GPIO hog
- Add ADC1 support

v1->v2:
- Rename pca6408 label to pcal6408 to match the compatible
- Clarify that the TPM enable line is a board-level GPIO hog

Stefano Radaelli (5):
arm64: dts: imx93-var-som-symphony: add TPM support
arm64: dts: imx93-var-som-symphony: enable UART7
arm64: dts: imx93-var-som-symphony: keep RGB_SEL low
arm64: dts: imx93-var-som-symphony: enable TPM3 PWM
arm64: dts: imx93-var-som-symphony: enable ADC

 .../dts/freescale/imx93-var-som-symphony.dts  | 61 +++++++++++++++++++
 1 file changed, 61 insertions(+)

base-commit: b3c1d1631f097619f8091f0293e027c4301285d6

Signature · 1 line
2.47.3
#1 lore raw

PATCH v3 1/5 arm64: dts: imx93-var-som-symphony: add TPM support

From: Stefano Radaelli <[email protected]>

Add the ST33KTPM2XI2C TPM device on the Symphony carrier board.

The TPM reset line is driven through a PCAL6408 GPIO expander, so add the expander on the I2C bus and describe the TPM reset GPIO.

---
v2->v3:
- Use reset-gpios for the TPM instead of a GPIO hog

v1->v2:
- Rename pca6408 label to pcal6408 to match the compatible
- Clarify that the TPM enable line is a board-level GPIO hog

 .../boot/dts/freescale/imx93-var-som-symphony.dts | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts +15 -0
index c0842fb3cfa3..c736127c7115 100644
@@ -208,6 +208,21 @@ &lpi2c1 {
 	sda-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
 	status = "okay";
 
+	pcal6408: gpio@21 {
+		compatible = "nxp,pcal6408";
+		reg = <0x21>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		status = "okay";
+	};
+
+	st33ktpm2xi2c: tpm@2e {
+		compatible = "st,st33ktpm2xi2c", "tcg,tpm-tis-i2c";
+		reg = <0x2e>;
+		label = "tpm";
+		reset-gpios = <&pcal6408 4 GPIO_ACTIVE_LOW>;
+	};
+
 	/* Capacitive touch controller */
 	ft5x06_ts: touchscreen@38 {
 		compatible = "edt,edt-ft5206";
Signature · 1 line
2.47.3
#2 lore raw

PATCH v3 2/5 arm64: dts: imx93-var-som-symphony: enable UART7

In reply to Stefano Radaelli

From: Stefano Radaelli <[email protected]>

Enable UART7 on the Symphony carrier board and add its pinctrl configuration.

---
v2->v3:
-

v1->v2:
-

 .../boot/dts/freescale/imx93-var-som-symphony.dts  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts +14 -0
index c736127c7115..77377127c18c 100644
@@ -35,6 +35,7 @@ aliases {
 		serial3 = &lpuart4;
 		serial4 = &lpuart5;
 		serial5 = &lpuart6;
+		serial6 = &lpuart7;
 	};
 
 
@@ -305,6 +306,12 @@ &lpuart6 {
 	status = "okay";
 };
 
+&lpuart7 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart7>;
+	status = "okay";
+};
+
 &usbotg1 {
 	dr_mode = "otg";
 	hnp-disable;
@@ -441,6 +448,13 @@ MX93_PAD_GPIO_IO04__LPUART6_TX			0x31e
 		>;
 	};
 
+	pinctrl_uart7: uart7grp {
+		fsl,pins = <
+			MX93_PAD_GPIO_IO09__LPUART7_RX			0x31e
+			MX93_PAD_GPIO_IO08__LPUART7_TX			0x31e
+		>;
+	};
+
 	pinctrl_reg_usdhc2_vmmc: regusdhc2vmmcgrp {
 		fsl,pins = <
 			MX93_PAD_GPIO_IO18__GPIO2_IO18		0x31e
Signature · 1 line
2.47.3
#3 lore raw

PATCH v3 3/5 arm64: dts: imx93-var-som-symphony: keep RGB_SEL low

In reply to Stefano Radaelli

From: Stefano Radaelli <[email protected]>

Keep the RGB_SEL line driven low on the Symphony carrier board.

This avoids leaving the line floating and ensures the board remains in the expected display configuration.

---
v2->v3:
-

v1->v2:
-

 arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts +8 -0
index 77377127c18c..c835394468ef 100644
@@ -215,6 +215,14 @@ pcal6408: gpio@21 {
 		gpio-controller;
 		#gpio-cells = <2>;
 		status = "okay";
+
+		/* RGB_SEL */
+		lvds-brg-enable-hog {
+			gpio-hog;
+			gpios = <7 GPIO_ACTIVE_HIGH>;
+			output-low;
+			line-name = "lvds_brg_en";
+		};
 	};
 
 	st33ktpm2xi2c: tpm@2e {
Signature · 1 line
2.47.3
#4 lore raw

PATCH v3 4/5 arm64: dts: imx93-var-som-symphony: enable TPM3 PWM

In reply to Stefano Radaelli

From: Stefano Radaelli <[email protected]>

Enable TPM3 on the Symphony carrier board and add the pinctrl states for the PWM output and sleep configuration.

---
v2->v3:
-

v1->v2:
-

 .../dts/freescale/imx93-var-som-symphony.dts  | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts +19 -0
index c835394468ef..56f8744c861a 100644
@@ -320,6 +320,13 @@ &lpuart7 {
 	status = "okay";
 };
 
+&tpm3 {
+	pinctrl-0 = <&pinctrl_tpm3>;
+	pinctrl-1 = <&pinctrl_tpm3_sleep>;
+	pinctrl-names = "default", "sleep";
+	status = "okay";
+};
+
 &usbotg1 {
 	dr_mode = "otg";
 	hnp-disable;
@@ -442,6 +449,18 @@ MX93_PAD_PDM_BIT_STREAM1__GPIO1_IO10            0x31e
 		>;
 	};
 
+	pinctrl_tpm3: tpm3grp {
+		fsl,pins = <
+			MX93_PAD_GPIO_IO24__TPM3_CH3			0x51e
+		>;
+	};
+
+	pinctrl_tpm3_sleep: tpm3sleepgrp {
+		fsl,pins = <
+			MX93_PAD_GPIO_IO24__GPIO2_IO24			0x51e
+		>;
+	};
+
 	pinctrl_uart1: uart1grp {
 		fsl,pins = <
 			MX93_PAD_UART1_RXD__LPUART1_RX			0x31e
Signature · 1 line
2.47.3
#5 lore raw

PATCH v3 5/5 arm64: dts: imx93-var-som-symphony: enable ADC

In reply to Stefano Radaelli

From: Stefano Radaelli <[email protected]>

Enable ADC1 on the Symphony carrier board and describe its 1.8 V reference supply.

---
v2->v3:
- Add ADC1 support

 arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/freescale/imx93-var-som-symphony.dts +5 -0
index 56f8744c861a..409c7e74ffe3 100644
@@ -159,6 +159,11 @@ led-0 {
 	};
 };
 
+&adc1 {
+	vref-supply = <&reg_vref_1v8>;
+	status = "okay";
+};
+
 /* Use external instead of internal RTC*/
 &bbnsm_rtc {
 	status = "disabled";
Signature · 1 line
2.47.3
#6 lore raw
In reply to Stefano Radaelli

From: Frank Li <[email protected]>

Quoted 11 lines · Stefano Radaelli

This series updates the i.MX93 VAR-SOM Symphony device tree to match the latest carrier board hardware revision.

The changes add support for onboard peripherals and complete the board configuration with the required GPIO, pinctrl and PWM settings.

v2->v3:
- Use reset-gpios for the TPM instead of a GPIO hog
- Add ADC1 support

[...]

Applied, thanks!

[1/5] arm64: dts: imx93-var-som-symphony: add TPM support

      commit: 51248ee29b08f161bf5bef509f572ddc336cd0e4
[2/5] arm64: dts: imx93-var-som-symphony: enable UART7
      commit: f4e6883c411c40bbeadede75e92cff5e17066769
[3/5] arm64: dts: imx93-var-som-symphony: keep RGB_SEL low
      commit: 2b57947cc182076aeb7b6f81586c6220f37bf824
[4/5] arm64: dts: imx93-var-som-symphony: enable TPM3 PWM
      commit: c8ed835941cf679551e10c901c2bd2e2c7f333e5
[5/5] arm64: dts: imx93-var-som-symphony: enable ADC
      commit: c68b0517041f5406293c172af001136d85b9cacb

Best regards,

Signature · 1 line
Frank Li <[email protected]>
#7 lore raw
In reply to Stefano Radaelli

From: Frank Li <[email protected]>

Quoted 11 lines · Stefano Radaelli

This series updates the i.MX93 VAR-SOM Symphony device tree to match the latest carrier board hardware revision.

The changes add support for onboard peripherals and complete the board configuration with the required GPIO, pinctrl and PWM settings.

v2->v3:
- Use reset-gpios for the TPM instead of a GPIO hog
- Add ADC1 support

[...]

Applied, thanks!

[1/5] arm64: dts: imx93-var-som-symphony: add TPM support

      commit: ff36dd3052902fb9beb0aae9890f4e48dd1dbb17
[2/5] arm64: dts: imx93-var-som-symphony: enable UART7
      commit: 787bd1ec71cf1b176e4e89c26940790891a53a6a
[3/5] arm64: dts: imx93-var-som-symphony: keep RGB_SEL low
      commit: 5def8bdea91aa39b7eb87b513eb8c509f7125d2c
[4/5] arm64: dts: imx93-var-som-symphony: enable TPM3 PWM
      commit: 35aa71e7bee68b00291949d091c1f1b8f783b63e
[5/5] arm64: dts: imx93-var-som-symphony: enable ADC
      commit: ebb039d82a1b8f2d1ed3c98cc404a17e266e54a8

Best regards,

Signature · 1 line
Frank Li <[email protected]>