st,stm32-usart.txt 1.3 KB

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