配置哪里有问题???
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3>;
uart-has-rtscts;
/*cts-gpios = <&gpio3 30 GPIO_ACTIVE_LOW>;*/
/*rts-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;*/
status = "okay";
};
pinctrl_uart3: uart3grp {
fsl,pins = <
MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
MX6QDL_PAD_EIM_D30__UART3_CTS_B 0x1b0b1
MX6QDL_PAD_EIM_D31__UART3_RTS_B 0x1b0b1
>;
};
|
用法如下: Optional properties: - cts-gpios: Must contain a GPIO specifier, referring to the GPIO pin to be used as the UART's CTS line. - dcd-gpios: Must contain a GPIO specifier, referring to the GPIO pin to be used as the UART's DCD line. - dsr-gpios: Must contain a GPIO specifier, referring to the GPIO pin to be used as the UART's DSR line. - dtr-gpios: Must contain a GPIO specifier, referring to the GPIO pin to be used as the UART's DTR line. - rng-gpios: Must con
cts-gpios = <&gpio3 30 GPIO_ACTIVE_LOW>;rts-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;这种方式是可以收发的。