Merge tag '4.3-rc-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / serial / st,stm32-usart.txt
1 * STMicroelectronics STM32 USART
2
3 Required properties:
4 - compatible: can be either:
5   - "st,stm32-uart",
6   - "st,stm32f7-uart",
7   - "st,stm32h7-uart".
8   depending is compatible with stm32(f4), stm32f7 or stm32h7.
9 - reg: The address and length of the peripheral registers space
10 - interrupts:
11   - The interrupt line for the USART instance,
12   - An optional wake-up interrupt.
13 - clocks: The input clock of the USART instance
14
15 Optional properties:
16 - resets: Must contain the phandle to the reset controller.
17 - pinctrl: The reference on the pins configuration
18 - st,hw-flow-ctrl: bool flag to enable hardware flow control.
19 - rs485-rts-delay, rs485-rx-during-tx, rs485-rts-active-low,
20   linux,rs485-enabled-at-boot-time: see rs485.txt.
21 - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt
22 - dma-names: "rx" and/or "tx"
23
24 Examples:
25 usart4: serial@40004c00 {
26         compatible = "st,stm32-uart";
27         reg = <0x40004c00 0x400>;
28         interrupts = <52>;
29         clocks = <&clk_pclk1>;
30         pinctrl-names = "default";
31         pinctrl-0 = <&pinctrl_usart4>;
32 };
33
34 usart2: serial@40004400 {
35         compatible = "st,stm32-uart";
36         reg = <0x40004400 0x400>;
37         interrupts = <38>;
38         clocks = <&clk_pclk1>;
39         st,hw-flow-ctrl;
40         pinctrl-names = "default";
41         pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
42 };
43
44 usart1: serial@40011000 {
45         compatible = "st,stm32-uart";
46         reg = <0x40011000 0x400>;
47         interrupts = <37>;
48         clocks = <&rcc 0 164>;
49         dmas = <&dma2 2 4 0x414 0x0>,
50                <&dma2 7 4 0x414 0x0>;
51         dma-names = "rx", "tx";
52 };