如题。
UART0 已经 默认在 /dev/ttyO0
谢谢。
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.
如题。
UART0 已经 默认在 /dev/ttyO0
谢谢。
直接在device tree文件里面配置即可,如在am335x-evmsk.dts中
添加pinmux配置
uart1_pins: pinmux_uart1_pins{
pinctrl-single,pins=<
0x180(PIN_INPUT_PULLUP | MUX_MODE0)
0x184(PIN_OUTPUT_PULLDOWN | MUX_MODE0)
>;
};
然后再添加
&uart1{
pinctrl-names="default";
pinctrl-0=<&uart1_pins>;
status="okay";
}