ARM: dts: am335x: Guardian: Enable UART port two
authorGireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
Fri, 25 Mar 2022 10:06:09 +0000 (10:06 +0000)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Apr 2022 11:03:15 +0000 (14:03 +0300)
* Add support for uart2 port

Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
Message-Id: <20220325100613.1494-12-Gireesh.Hiremath@in.bosch.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am335x-guardian.dts

index fab8448..9f60f54 100644 (file)
        status = "okay";
 };
 
+&uart2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&uart2_pins>;
+       status = "okay";
+};
+
 &usb0 {
        dr_mode = "peripheral";
 };
                >;
        };
 
+       uart2_pins: pinmux_uart2_pins {
+               pinctrl-single,pins = <
+                       /* K18 uart2_rxd.mirx_txd */
+                       AM33XX_IOPAD(0x92c, PIN_INPUT_PULLUP | MUX_MODE1)
+                       /* L18 uart2_txd.mirx_rxd */
+                       AM33XX_IOPAD(0x930, PIN_OUTPUT_PULLDOWN | MUX_MODE1)
+               >;
+       };
+
        nandflash_pins: pinmux_nandflash_pins {
                pinctrl-single,pins = <
                        /* (U7) gpmc_ad0.gpmc_ad0 */