OSDN Git Service

arm64: dts: ti: k3-am642-sk: Describe main_uart1 pins
authorNishanth Menon <nm@ti.com>
Fri, 14 Apr 2023 07:33:22 +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-5-nm@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 3e16942..da4121b 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_usb0_pins_default: main-usb0-pins-default {
                pinctrl-single,pins = <
                        AM64X_IOPAD(0x02a8, PIN_OUTPUT, 0) /* (E19) USB0_DRVVBUS */
 &main_uart1 {
        /* main_uart1 is reserved for firmware usage */
        status = "reserved";
+       pinctrl-names = "default";
+       pinctrl-0 = <&main_uart1_pins_default>;
 };
 
 &main_i2c0 {