There are 4 serial configure on 1046 dts.
serial@21c0500 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x0 0x21c0500 0x0 0x100>;
interrupts = <0x56 0x0 0x4>;
interrupt-parent = <0x1>;
clocks = <0x6>;
status = "okay";
};
serial@21c0600 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x0 0x21c0600 0x0 0x100>;
interrupts = <0x56 0x0 0x4>;
interrupt-parent = <0x1>;
clocks = <0x6>;
status = "disabled";
};
serial@21d0500 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x0 0x21d0500 0x0 0x100>;
interrupts = <0x57 0x0 0x4>;
interrupt-parent = <0x1>;
clocks = <0x7>;
status = "disabled";
};
serial@21d0600 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x0 0x21d0600 0x0 0x100>;
interrupts = <0x57 0x0 0x4>;
interrupt-parent = <0x1>;
clocks = <0x7>;
status = "disabled";
};
Now I want to use the tx and rx of uart2 and uart4 to use GPIO mode which I can pull up/down the GPIO status manually.
for example,I want to change the GPIO1_19 20 21 22 to GPIO mode.
How can I do it?