Merge tag 'apparmor-pr-2018-04-10' of git://git.kernel.org/pub/scm/linux/kernel/git...
[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 - rs485-rts-delay, rs485-rx-during-tx, rs485-rts-active-low,
19   linux,rs485-enabled-at-boot-time: see rs485.txt.
20 - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt
21 - dma-names: "rx" and/or "tx"
22
23 Examples:
24 usart4: serial@40004c00 {
25         compatible = "st,stm32-uart";
26         reg = <0x40004c00 0x400>;
27         interrupts = <52>;
28         clocks = <&clk_pclk1>;
29         pinctrl-names = "default";
30         pinctrl-0 = <&pinctrl_usart4>;
31 };
32
33 usart2: serial@40004400 {
34         compatible = "st,stm32-uart";
35         reg = <0x40004400 0x400>;
36         interrupts = <38>;
37         clocks = <&clk_pclk1>;
38         st,hw-flow-ctrl;
39         pinctrl-names = "default";
40         pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
41 };
42
43 usart1: serial@40011000 {
44         compatible = "st,stm32-uart";
45         reg = <0x40011000 0x400>;
46         interrupts = <37>;
47         clocks = <&rcc 0 164>;
48         dmas = <&dma2 2 4 0x414 0x0>,
49                <&dma2 7 4 0x414 0x0>;
50         dma-names = "rx", "tx";
51 };