xref: /freebsd/sys/contrib/device-tree/Bindings/serial/fsl-imx-uart.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Freescale i.MX Universal Asynchronous Receiver/Transmitter (UART)
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible : Should be "fsl,<soc>-uart"
5*c66ec88fSEmmanuel Vadot- reg : Address and length of the register set for the device
6*c66ec88fSEmmanuel Vadot- interrupts : Should contain uart interrupt
7*c66ec88fSEmmanuel Vadot
8*c66ec88fSEmmanuel VadotOptional properties:
9*c66ec88fSEmmanuel Vadot- fsl,dte-mode : Indicate the uart works in DTE mode. The uart works
10*c66ec88fSEmmanuel Vadot                  in DCE mode by default.
11*c66ec88fSEmmanuel Vadot- fsl,inverted-tx , fsl,inverted-rx : Indicate that the hardware attached
12*c66ec88fSEmmanuel Vadot  to the peripheral inverts the signal transmitted or received,
13*c66ec88fSEmmanuel Vadot  respectively, and that the peripheral should invert its output/input
14*c66ec88fSEmmanuel Vadot  using the INVT/INVR registers.
15*c66ec88fSEmmanuel Vadot- rs485-rts-delay, rs485-rts-active-low, rs485-rx-during-tx,
16*c66ec88fSEmmanuel Vadot  linux,rs485-enabled-at-boot-time: see rs485.txt. Note that for RS485
17*c66ec88fSEmmanuel Vadot  you must enable either the "uart-has-rtscts" or the "rts-gpios"
18*c66ec88fSEmmanuel Vadot  properties. In case you use "uart-has-rtscts" the signal that controls
19*c66ec88fSEmmanuel Vadot  the transceiver is actually CTS_B, not RTS_B. CTS_B is always output,
20*c66ec88fSEmmanuel Vadot  and RTS_B is input, regardless of dte-mode.
21*c66ec88fSEmmanuel Vadot
22*c66ec88fSEmmanuel VadotPlease check Documentation/devicetree/bindings/serial/serial.yaml
23*c66ec88fSEmmanuel Vadotfor the complete list of generic properties.
24*c66ec88fSEmmanuel Vadot
25*c66ec88fSEmmanuel VadotNote: Each uart controller should have an alias correctly numbered
26*c66ec88fSEmmanuel Vadotin "aliases" node.
27*c66ec88fSEmmanuel Vadot
28*c66ec88fSEmmanuel VadotExample:
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadotaliases {
31*c66ec88fSEmmanuel Vadot	serial0 = &uart1;
32*c66ec88fSEmmanuel Vadot};
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadotuart1: serial@73fbc000 {
35*c66ec88fSEmmanuel Vadot	compatible = "fsl,imx51-uart", "fsl,imx21-uart";
36*c66ec88fSEmmanuel Vadot	reg = <0x73fbc000 0x4000>;
37*c66ec88fSEmmanuel Vadot	interrupts = <31>;
38*c66ec88fSEmmanuel Vadot	uart-has-rtscts;
39*c66ec88fSEmmanuel Vadot	fsl,dte-mode;
40*c66ec88fSEmmanuel Vadot};
41