Merge tag 'tegra-for-4.8-i2c' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[cascardo/linux.git] / Documentation / devicetree / bindings / serial / st,stm32-usart.txt
1 * STMicroelectronics STM32 USART
2
3 Required properties:
4 - compatible: Can be either "st,stm32-usart", "st,stm32-uart",
5 "st,stm32f7-usart" or "st,stm32f7-uart" depending on whether
6 the device supports synchronous mode and is compatible with
7 stm32(f4) or stm32f7.
8 - reg: The address and length of the peripheral registers space
9 - interrupts: The interrupt line of the USART instance
10 - clocks: The input clock of the USART instance
11
12 Optional properties:
13 - pinctrl: The reference on the pins configuration
14 - st,hw-flow-ctrl: bool flag to enable hardware flow control.
15 - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt
16 - dma-names: "rx" and/or "tx"
17
18 Examples:
19 usart4: serial@40004c00 {
20         compatible = "st,stm32-uart";
21         reg = <0x40004c00 0x400>;
22         interrupts = <52>;
23         clocks = <&clk_pclk1>;
24         pinctrl-names = "default";
25         pinctrl-0 = <&pinctrl_usart4>;
26 };
27
28 usart2: serial@40004400 {
29         compatible = "st,stm32-usart", "st,stm32-uart";
30         reg = <0x40004400 0x400>;
31         interrupts = <38>;
32         clocks = <&clk_pclk1>;
33         st,hw-flow-ctrl;
34         pinctrl-names = "default";
35         pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
36 };
37
38 usart1: serial@40011000 {
39         compatible = "st,stm32-usart", "st,stm32-uart";
40         reg = <0x40011000 0x400>;
41         interrupts = <37>;
42         clocks = <&rcc 0 164>;
43         dmas = <&dma2 2 4 0x414 0x0>,
44                <&dma2 7 4 0x414 0x0>;
45         dma-names = "rx", "tx";
46 };