OSDN Git Service

arm64: dts: ti: k3-am642-evm: Describe main_uart1 pins
authorNishanth Menon <nm@ti.com>
Fri, 14 Apr 2023 07:33:25 +0000 (02:33 -0500)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 8 May 2023 15:12:46 +0000 (20:42 +0530)
Describe the main_uart1 pins even though it is a reserved node for
hardware complete description. This is used by other users of device
tree to help configure the SoC per board requirements.

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20230414073328.381336-8-nm@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am642-evm.dts

index 6456cc6..a1ed102 100644 (file)
                >;
        };
 
+       main_uart1_pins_default: main-uart1-pins-default {
+               pinctrl-single,pins = <
+                       AM64X_IOPAD(0x0248, PIN_INPUT, 0)               /* (D16) UART1_CTSn */
+                       AM64X_IOPAD(0x024c, PIN_OUTPUT, 0)              /* (E16) UART1_RTSn */
+                       AM64X_IOPAD(0x0240, PIN_INPUT, 0)               /* (E15) UART1_RXD */
+                       AM64X_IOPAD(0x0244, PIN_OUTPUT, 0)              /* (E14) UART1_TXD */
+               >;
+       };
+
        main_uart0_pins_default: main-uart0-pins-default {
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x0238, PIN_INPUT, 0) /* (B16) UART0_CTSn */
 /* main_uart1 is reserved for firmware usage */
 &main_uart1 {
        status = "reserved";
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_uart1_pins_default>;
 };
 
 &main_i2c0 {