Skip to contentSkip to conversation

arm: dts: k3-am68-sk*: Remove pinmux nodes from R5 dts

PATCH NAK Sinthu Raja 2 participants 2 messages May 5, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: k3-am68-sk*: Remove pinmux nodes from R5 dts

From: Sinthu Raja <[email protected]>

Pin-mux nodes should not be present in the R5 dts file; instead, they should be inherited from the board dts file. To enable/override the appropriate configurations, remove the pinmux nodes from am68-sk-r5 dts and inherit the nodes from board dts.

---
 arch/arm/dts/k3-am68-sk-base-board.dts    | 18 +++++++
 arch/arm/dts/k3-am68-sk-r5-base-board.dts | 63 +----------------------
 2 files changed, 20 insertions(+), 61 deletions(-)
arch/arm/dts/k3-am68-sk-base-board.dts +18 -0
index 8fc03324ab..df45be1a83 100644
@@ -136,6 +136,24 @@
 			J721S2_WKUP_IOPAD(0x098, PIN_INPUT, 0) /* (A22) MCU_MDIO0_MDIO */
 		>;
 	};
+
+	mcu_uart0_pins_default: mcu-uart0-pins-default {
+		bootph-pre-ram;
+		pinctrl-single,pins = <
+			J721S2_WKUP_IOPAD(0x0f4, PIN_INPUT, 0) /*(C24) WKUP_GPIO0_13.MCU_UART0_RXD*/
+			J721S2_WKUP_IOPAD(0x0f0, PIN_OUTPUT, 0) /*(C25) WKUP_GPIO0_12.MCU_UART0_TXD*/
+		>;
+	};
+
+	wkup_uart0_pins_default: wkup-uart0-pins-default {
+		bootph-pre-ram;
+		pinctrl-single,pins = <
+			J721S2_WKUP_IOPAD(0x0d8, PIN_INPUT, 0) /*(E25) WKUP_GPIO0_6.WKUP_UART0_CTSn*/
+			J721S2_WKUP_IOPAD(0x0dc, PIN_OUTPUT, 0) /*(F28) WKUP_GPIO0_7.WKUP_UART0_RTSn*/
+			J721S2_WKUP_IOPAD(0x0b0, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */
+			J721S2_WKUP_IOPAD(0x0b4, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */
+		>;
+	};
 };
 
 &main_gpio2 {
arch/arm/dts/k3-am68-sk-r5-base-board.dts +2 -61

91 lines not on this page · raw message

Signature · 1 line
2.36.1
#1 lore raw
Quoted 7 lines · Sinthu Raja

From: Sinthu Raja <[email protected]>

Pin-mux nodes should not be present in the R5 dts file; instead, they should be inherited from the board dts file. To enable/override the appropriate configurations, remove the pinmux nodes from am68-sk-r5 dts and inherit the nodes from board dts.

Quoted 6 lines
---
 arch/arm/dts/k3-am68-sk-base-board.dts    | 18 +++++++
 arch/arm/dts/k3-am68-sk-r5-base-board.dts | 63 +----------------------
 2 files changed, 20 insertions(+), 61 deletions(-)

Thanks for doing this, BUT:

Quoted 16 lines
arch/arm/dts/k3-am68-sk-base-board.dts +8 -0
index 8fc03324ab..df45be1a83 100644
@@ -136,6 +136,24 @@
 			J721S2_WKUP_IOPAD(0x098, PIN_INPUT, 0) /* (A22) MCU_MDIO0_MDIO */
 		>;
 	};
+
+	mcu_uart0_pins_default: mcu-uart0-pins-default {
+		bootph-pre-ram;
+		pinctrl-single,pins = <
+			J721S2_WKUP_IOPAD(0x0f4, PIN_INPUT, 0) /*(C24) WKUP_GPIO0_13.MCU_UART0_RXD*/
+			J721S2_WKUP_IOPAD(0x0f0, PIN_OUTPUT, 0) /*(C25) WKUP_GPIO0_12.MCU_UART0_TXD*/
+		>;
+	};

arch/arm/dts/k3-am68-sk-base-board.dts line 156

Quoted 10 lines
arch/arm/dts/k3-am68-sk-base-board.dts +10 -0
+
+	wkup_uart0_pins_default: wkup-uart0-pins-default {
+		bootph-pre-ram;
+		pinctrl-single,pins = <
+			J721S2_WKUP_IOPAD(0x0d8, PIN_INPUT, 0) /*(E25) WKUP_GPIO0_6.WKUP_UART0_CTSn*/
+			J721S2_WKUP_IOPAD(0x0dc, PIN_OUTPUT, 0) /*(F28) WKUP_GPIO0_7.WKUP_UART0_RTSn*/
+			J721S2_WKUP_IOPAD(0x0b0, PIN_INPUT, 0) /* (D28) WKUP_UART0_RXD */
+			J721S2_WKUP_IOPAD(0x0b4, PIN_OUTPUT, 0) /* (D27) WKUP_UART0_TXD */
+		>;
+	};

NAK, not on k.org master. Send and get accepted in upstream k.org, then we will pick it up as part of kernel migration.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D