Other Parts Discussed in Thread: AM4372, TPS65218
I am doing embedded development using the Linux SDK on the AM4378.
I want to communicate via UART2 and have configured the .dts file as follows, but communication is not working.
Is the configuration correct?
Also, are there any missing settings?
■Pins Used
uart2_rxd:AD22
uart2_txd:B13
uart2_ctsn:AD23
uart2_rtsn:AE24
■.dts File Configuration
&uart2 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&uart2_pins_default>;
pinctrl-1 = <&uart2_pins_sleep>;
};
uart2_pins_default: pinmux_uart2_pins_default {
pinctrl-single,pins = <
AM4372_IOPAD(0x9f8, PIN_INPUT_PULLUP | MUX_MODE2) /* (AD22) */
AM4372_IOPAD(0x48c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* (B13) */
AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE2) /* (AD23) */
AM4372_IOPAD(0xa04, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* (AE24)*/
AM4372_IOPAD(0x9f0, PIN_INPUT | MUX_MODE7) /* (AD21) */
AM4372_IOPAD(0xa24, PIN_INPUT | MUX_MODE7) /* (AD20) */
>;
};
uart2_pins_sleep: pinmux_uart2_pins_sleep {
pinctrl-single,pins = <
AM4372_IOPAD(0x9f8, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD22) */
AM4372_IOPAD(0x48c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (B13) */
AM4372_IOPAD(0xa00, PIN_INPUT_PULLUP | MUX_MODE7) /* (AD23) */
AM4372_IOPAD(0xa04, PIN_INPUT_PULLDOWN | MUX_MODE2) /* (AE24) */
AM4372_IOPAD(0x9f0, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD21) */
AM4372_IOPAD(0xa24, PIN_INPUT_PULLDOWN | MUX_MODE7) /* (AD20) */
>;
};