xref: /freebsd/sys/contrib/device-tree/Bindings/serial/nxp,lpc1850-uart.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* NXP LPC1850 UART
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible	: "nxp,lpc1850-uart", "ns16550a".
5*c66ec88fSEmmanuel Vadot- reg		: offset and length of the register set for the device.
6*c66ec88fSEmmanuel Vadot- interrupts	: should contain uart interrupt.
7*c66ec88fSEmmanuel Vadot- clocks	: phandle to the input clocks.
8*c66ec88fSEmmanuel Vadot- clock-names	: required elements: "uartclk", "reg".
9*c66ec88fSEmmanuel Vadot
10*c66ec88fSEmmanuel VadotOptional properties:
11*c66ec88fSEmmanuel Vadot- dmas		: Two or more DMA channel specifiers following the
12*c66ec88fSEmmanuel Vadot		  convention outlined in bindings/dma/dma.txt
13*c66ec88fSEmmanuel Vadot- dma-names	: Names for the dma channels, if present. There must
14*c66ec88fSEmmanuel Vadot		  be at least one channel named "tx" for transmit
15*c66ec88fSEmmanuel Vadot		  and named "rx" for receive.
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel VadotSince it's also possible to also use the of_serial.c driver all
18*c66ec88fSEmmanuel Vadotparameters from 8250.txt also apply but are optional.
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel VadotExample:
21*c66ec88fSEmmanuel Vadotuart0: serial@40081000 {
22*c66ec88fSEmmanuel Vadot	compatible = "nxp,lpc1850-uart", "ns16550a";
23*c66ec88fSEmmanuel Vadot	reg = <0x40081000 0x1000>;
24*c66ec88fSEmmanuel Vadot	reg-shift = <2>;
25*c66ec88fSEmmanuel Vadot	interrupts = <24>;
26*c66ec88fSEmmanuel Vadot	clocks = <&ccu2 CLK_APB0_UART0>, <&ccu1 CLK_CPU_UART0>;
27*c66ec88fSEmmanuel Vadot	clock-names = "uartclk", "reg";
28*c66ec88fSEmmanuel Vadot};
29