Skip to contentSkip to conversation

arm64: dts: ti: k3-j722s-evm: Describe main_uart5

PATCH In review Bhavya Kapoor 2 participants 3 messages Aug 22, 2024 – Aug 27, 2024

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

PATCH 1/1 arm64: dts: ti: k3-j722s-evm: Describe main_uart5

main_uart5 in J722S platform is used by the firmware. Thus, describe it for completeness, adding the pinmux and mark it as reserved.

---
 arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +14 -0
index 24e9f2ea509b..5addf1c0afc2 100644
@@ -20,6 +20,7 @@ / {
 	aliases {
 		serial0 = &wkup_uart0;
 		serial2 = &main_uart0;
+		serial3 = &main_uart5;
 		mmc0 = &sdhci0;
 		mmc1 = &sdhci1;
 	};
@@ -211,6 +212,13 @@ J722S_IOPAD(0x01cc, PIN_OUTPUT, 0)	/* (B22) UART0_TXD */
 		bootph-all;
 	};
 
+	main_uart5_pins_default: main-uart5-default-pins {
+		pinctrl-single,pins = <
+			J722S_IOPAD(0x0108, PIN_INPUT, 3)       /* (J27) UART5_RXD */
+			J722S_IOPAD(0x010c, PIN_OUTPUT, 3)      /* (H27) UART5_TXD */
+		>;
+	};
+
 	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
 		pinctrl-single,pins = <
 			J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */
@@ -330,6 +338,12 @@ &main_uart0 {
 	bootph-all;
 };
 
+&main_uart5 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_uart5_pins_default>;
+	status = "reserved";
+};
+
 &mcu_pmx0 {
 
 	mcu_mcan0_pins_default: mcu-mcan0-default-pins {
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 1 line · Bhavya Kapoor

main_uart5 in J722S platform is used by the firmware. Thus,

what platform? what firmware?

Quoted 35 lines

describe it for completeness, adding the pinmux and mark it as reserved.

---
 arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +8 -0
index 24e9f2ea509b..5addf1c0afc2 100644
@@ -20,6 +20,7 @@ / {
 	aliases {
 		serial0 = &wkup_uart0;
 		serial2 = &main_uart0;
+		serial3 = &main_uart5;
 		mmc0 = &sdhci0;
 		mmc1 = &sdhci1;
 	};
@@ -211,6 +212,13 @@ J722S_IOPAD(0x01cc, PIN_OUTPUT, 0)	/* (B22) UART0_TXD */
 		bootph-all;
 	};
 
+	main_uart5_pins_default: main-uart5-default-pins {
+		pinctrl-single,pins = <
+			J722S_IOPAD(0x0108, PIN_INPUT, 3)       /* (J27) UART5_RXD */
+			J722S_IOPAD(0x010c, PIN_OUTPUT, 3)      /* (H27) UART5_TXD */
+		>;
+	};
+
 	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
 		pinctrl-single,pins = <
 			J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */

arch/arm64/boot/dts/ti/k3-j722s-evm.dts &main_uart0 { · line 343

Quoted 6 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +3 -0
@@ -330,6 +338,12 @@ &main_uart0 {
 	bootph-all;
 };
 
+&main_uart5 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_uart5_pins_default>;

Document specifically why reserved.

Quoted 9 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +3 -0
+	status = "reserved";
+};
+
 &mcu_pmx0 {
 
 	mcu_mcan0_pins_default: mcu-mcan0-default-pins {
Signature · 1 line
2.34.1
Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
#2 lore raw
Quoted 3 lines · Nishanth Menon
Quoted 1 line · Bhavya Kapoor

main_uart5 in J722S platform is used by the firmware. Thus,

what platform? what firmware?

Hey Nishanth, it is used by system firmware for its logs

in J722S-EVM.

Quoted 39 lines
Quoted 39 lines

describe it for completeness, adding the pinmux and mark it as reserved.

---
  arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +8 -0
index 24e9f2ea509b..5addf1c0afc2 100644
@@ -20,6 +20,7 @@ / {
  	aliases {
  		serial0 = &wkup_uart0;
  		serial2 = &main_uart0;
+		serial3 = &main_uart5;
  		mmc0 = &sdhci0;
  		mmc1 = &sdhci1;
  	};
@@ -211,6 +212,13 @@ J722S_IOPAD(0x01cc, PIN_OUTPUT, 0)	/* (B22) UART0_TXD */
  		bootph-all;
  	};
 
+	main_uart5_pins_default: main-uart5-default-pins {
+		pinctrl-single,pins = <
+			J722S_IOPAD(0x0108, PIN_INPUT, 3)       /* (J27) UART5_RXD */
+			J722S_IOPAD(0x010c, PIN_OUTPUT, 3)      /* (H27) UART5_TXD */
+		>;
+	};
+
  	vdd_sd_dv_pins_default: vdd-sd-dv-default-pins {
  		pinctrl-single,pins = <
  			J722S_IOPAD(0x0120, PIN_INPUT, 7) /* (F27) MMC2_CMD.GPIO0_70 */
@@ -330,6 +338,12 @@ &main_uart0 {
  	bootph-all;
  };
 
Quoted 4 lines

arch/arm64/boot/dts/ti/k3-j722s-evm.dts &main_uart0 { · line 343

Quoted 3 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +3 -0
+&main_uart5 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_uart5_pins_default>;

Document specifically why reserved.

Will send out v2 for this.

Quoted 10 lines
Quoted 10 lines
arch/arm64/boot/dts/ti/k3-j722s-evm.dts +3 -0
+	status = "reserved";
+};
+
  &mcu_pmx0 {
 
  	mcu_mcan0_pins_default: mcu-mcan0-default-pins {
Signature · 1 line
2.34.1