dts of rs485 configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

dts of rs485 configuration

1,582件の閲覧回数
wang_qujian
Contributor I

iMX6Q processor 

linux kernel 4.9.88

I will use CTS_B pin as RS485 direction control pin,Could you also help about the dts configuration part?

Sorry that it’s the first time I configure UART.

uart1: serial@02020000 {
                                        compatible = "fsl,imx6q-uart", "fsl,imx21-uart";
                                        reg = <0x02020000 0x4000>;
                                        interrupts = <0 26 IRQ_TYPE_LEVEL_HIGH>;
                                        clocks = <&clks IMX6QDL_CLK_UART_IPG>,
                                                 <&clks IMX6QDL_CLK_UART_SERIAL>;
                                        clock-names = "ipg", "per";
                                        dmas = <&sdma 25 4 0>, <&sdma 26 4 0>;
                                        dma-names = "rx", "tx";
                                        status = "disabled";
                                };

ラベル(1)
0 件の賞賛
返信
1 返信

1,304件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi qjwang 

one can look at driver sources in linux/drivers/tty/serial/imx.c
imx.c\serial\tty\drivers - linux-imx - i.MX Linux kernel 

and check codes with "of_get_property" which read dts entries and its usage.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信