xref: /freebsd/sys/contrib/device-tree/Bindings/serial/microchip,pic32-uart.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot* Microchip Universal Asynchronous Receiver Transmitter (UART)
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadot- compatible: Should be "microchip,pic32mzda-uart"
5*c66ec88fSEmmanuel Vadot- reg: Should contain registers location and length
6*c66ec88fSEmmanuel Vadot- interrupts: Should contain interrupt
7*c66ec88fSEmmanuel Vadot- clocks: Phandle to the clock.
8*c66ec88fSEmmanuel Vadot          See: Documentation/devicetree/bindings/clock/clock-bindings.txt
9*c66ec88fSEmmanuel Vadot- pinctrl-names: A pinctrl state names "default" must be defined.
10*c66ec88fSEmmanuel Vadot- pinctrl-0: Phandle referencing pin configuration of the UART peripheral.
11*c66ec88fSEmmanuel Vadot             See: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties:
14*c66ec88fSEmmanuel Vadot- cts-gpios: CTS pin for UART
15*c66ec88fSEmmanuel Vadot
16*c66ec88fSEmmanuel VadotExample:
17*c66ec88fSEmmanuel Vadot	uart1: serial@1f822000 {
18*c66ec88fSEmmanuel Vadot		compatible = "microchip,pic32mzda-uart";
19*c66ec88fSEmmanuel Vadot		reg = <0x1f822000 0x50>;
20*c66ec88fSEmmanuel Vadot		interrupts = <112 IRQ_TYPE_LEVEL_HIGH>,
21*c66ec88fSEmmanuel Vadot			<113 IRQ_TYPE_LEVEL_HIGH>,
22*c66ec88fSEmmanuel Vadot			<114 IRQ_TYPE_LEVEL_HIGH>;
23*c66ec88fSEmmanuel Vadot		clocks = <&rootclk PB2CLK>;
24*c66ec88fSEmmanuel Vadot		pinctrl-names = "default";
25*c66ec88fSEmmanuel Vadot		pinctrl-0 = <&pinctrl_uart1
26*c66ec88fSEmmanuel Vadot				&pinctrl_uart1_cts
27*c66ec88fSEmmanuel Vadot				&pinctrl_uart1_rts>;
28*c66ec88fSEmmanuel Vadot		cts-gpios = <&gpio1 15 0>;
29*c66ec88fSEmmanuel Vadot	};
30