Add RS485 mode on ls1028

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Add RS485 mode on ls1028

Jump to solution
1,663 Views
Eddy1
Contributor V

Hi:

How do I configure Duart to operate in half-duplex RS485 mode? Currently, I am using the duart1 port, and the default configuration is as follows: 

 

 

 

 

 

 

 

      duart1: serial@21c0600 {
                        compatible = "fsl,ns16550", "ns16550a";
                        reg = <0x00 0x21c0600 0x0 0x100>;
                        interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&clockgen 4 1>;
                        status = "disabled";
                };

 

 

 

 

 

 

 

 

 

 

 

Tags (1)
0 Kudos
Reply
1 Solution
1,607 Views
Eddy1
Contributor V

Hi:

Thank you for your reply. I have modified the SW driver, and it can now send and receive

View solution in original post

0 Kudos
Reply
2 Replies
1,626 Views
June_Lu
NXP TechSupport
NXP TechSupport

First, you should confirm the customer HW mode of UART in RS485.

If the direction of the RS485 is controlled by the extra signal, you should add it in the DTS, and modify the SW driver.

If the direction of the RS485 is controlled by the RTS, I don't think it needs extra modification.

0 Kudos
Reply
1,608 Views
Eddy1
Contributor V

Hi:

Thank you for your reply. I have modified the SW driver, and it can now send and receive

0 Kudos
Reply