b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | * Freescale i.MX Universal Asynchronous Receiver/Transmitter (UART) |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible : Should be "fsl,<soc>-uart" |
| 5 | - reg : Address and length of the register set for the device |
| 6 | - interrupts : Should contain uart interrupt |
| 7 | |
| 8 | Optional properties: |
| 9 | - fsl,dte-mode : Indicate the uart works in DTE mode. The uart works |
| 10 | in DCE mode by default. |
| 11 | - rs485-rts-delay, rs485-rts-active-low, rs485-rx-during-tx, |
| 12 | linux,rs485-enabled-at-boot-time: see rs485.txt. Note that for RS485 |
| 13 | you must enable either the "uart-has-rtscts" or the "rts-gpios" |
| 14 | properties. In case you use "uart-has-rtscts" the signal that controls |
| 15 | the transceiver is actually CTS_B, not RTS_B. CTS_B is always output, |
| 16 | and RTS_B is input, regardless of dte-mode. |
| 17 | |
| 18 | Please check Documentation/devicetree/bindings/serial/serial.txt |
| 19 | for the complete list of generic properties. |
| 20 | |
| 21 | Note: Each uart controller should have an alias correctly numbered |
| 22 | in "aliases" node. |
| 23 | |
| 24 | Example: |
| 25 | |
| 26 | aliases { |
| 27 | serial0 = &uart1; |
| 28 | }; |
| 29 | |
| 30 | uart1: serial@73fbc000 { |
| 31 | compatible = "fsl,imx51-uart", "fsl,imx21-uart"; |
| 32 | reg = <0x73fbc000 0x4000>; |
| 33 | interrupts = <31>; |
| 34 | uart-has-rtscts; |
| 35 | fsl,dte-mode; |
| 36 | }; |