This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62L: Use wkup_uart0, but don‘t generate device nodes

Part Number: AM62L

Tool/software:

Hi,

   We used AM62L EVM and configured it in the device tree based on SDK11.00.05.02 in the following way, but no wkup_uart0 related nodes were generated under/dev/. May I ask what the reason is?

   The device tree has been modified as follows:

--- a/arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi
+++ b/arch/arm64/boot/dts/ti/k3-am62l-wakeup.dtsi
@@ -99,7 +99,7 @@ SYSC_OMAP2_SOFTRESET |
                #address-cells = <1>;
                #size-cells = <1>;
                ranges = <0x0 0x00 0x2b300000 0x100000>;
-               status = "disabled";
+               status = "okay";
 
                wkup_uart0: serial@0 {
                        compatible = "ti,am64-uart", "ti,am654-uart";
@@ -109,7 +109,7 @@ wkup_uart0: serial@0 {
                        assigned-clocks = <&scmi_clk 324>;
                        assigned-clock-rates = <48000000>;
                        clock-names = "fck";
-                       status = "disabled";
+                       status = "okay";
                };
        };
--- a/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts
+++ b/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts
@@ -151,6 +151,14 @@ AM62LX_IOPAD(0x01b8, PIN_OUTPUT, 0)        /* (C13) UART0_TXD */
                bootph-all;
        };
 
+       wkup_uart0_pins_default: wkup-uart0-default-pins {
+               pinctrl-single,pins = <
+                       AM62LX_IOPAD(0x0000, PIN_INPUT, 0)      
+                       AM62LX_IOPAD(0x0004, PIN_OUTPUT, 0)     
+               >;
+               bootph-all;
+       };
+
@@ -384,6 +400,13 @@ &main_uart0 {
        bootph-all;
 };
 
+&wkup_uart0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&wkup_uart0_pins_default>;
+       status = "okay";
+       bootph-all;
+};
+
 &main_uart1 {
        pinctrl-names = "default";
        pinctrl-0 = <&main_uart1_pins_default>;