Merge tag 'renesas-dt-fixes-for-v4.15' of https://git.kernel.org/pub/scm/linux/kernel...
[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 - pinctrl: The reference on the pins configuration
17 - st,hw-flow-ctrl: bool flag to enable hardware flow control.
18 - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt
19 - dma-names: "rx" and/or "tx"
20
21 Examples:
22 usart4: serial@40004c00 {
23         compatible = "st,stm32-uart";
24         reg = <0x40004c00 0x400>;
25         interrupts = <52>;
26         clocks = <&clk_pclk1>;
27         pinctrl-names = "default";
28         pinctrl-0 = <&pinctrl_usart4>;
29 };
30
31 usart2: serial@40004400 {
32         compatible = "st,stm32-uart";
33         reg = <0x40004400 0x400>;
34         interrupts = <38>;
35         clocks = <&clk_pclk1>;
36         st,hw-flow-ctrl;
37         pinctrl-names = "default";
38         pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
39 };
40
41 usart1: serial@40011000 {
42         compatible = "st,stm32-uart";
43         reg = <0x40011000 0x400>;
44         interrupts = <37>;
45         clocks = <&rcc 0 164>;
46         dmas = <&dma2 2 4 0x414 0x0>,
47                <&dma2 7 4 0x414 0x0>;
48         dma-names = "rx", "tx";
49 };