st,stm32-usart.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. * STMicroelectronics STM32 USART
  2. Required properties:
  3. - compatible: can be either:
  4. - "st,stm32-uart",
  5. - "st,stm32f7-uart",
  6. - "st,stm32h7-uart".
  7. depending is compatible with stm32(f4), stm32f7 or stm32h7.
  8. - reg: The address and length of the peripheral registers space
  9. - interrupts:
  10. - The interrupt line for the USART instance,
  11. - An optional wake-up interrupt.
  12. - clocks: The input clock of the USART instance
  13. Optional properties:
  14. - pinctrl: The reference on the pins configuration
  15. - st,hw-flow-ctrl: bool flag to enable hardware flow control.
  16. - rs485-rts-delay, rs485-rx-during-tx, rs485-rts-active-low,
  17. linux,rs485-enabled-at-boot-time: see rs485.txt.
  18. - dmas: phandle(s) to DMA controller node(s). Refer to stm32-dma.txt
  19. - dma-names: "rx" and/or "tx"
  20. Examples:
  21. usart4: serial@40004c00 {
  22. compatible = "st,stm32-uart";
  23. reg = <0x40004c00 0x400>;
  24. interrupts = <52>;
  25. clocks = <&clk_pclk1>;
  26. pinctrl-names = "default";
  27. pinctrl-0 = <&pinctrl_usart4>;
  28. };
  29. usart2: serial@40004400 {
  30. compatible = "st,stm32-uart";
  31. reg = <0x40004400 0x400>;
  32. interrupts = <38>;
  33. clocks = <&clk_pclk1>;
  34. st,hw-flow-ctrl;
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&pinctrl_usart2 &pinctrl_usart2_rtscts>;
  37. };
  38. usart1: serial@40011000 {
  39. compatible = "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. };