st,stm32-timer.yaml 920 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/timer/st,stm32-timer.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: STMicroelectronics STM32 general-purpose 16 and 32 bits timers
  7. maintainers:
  8. - Fabrice Gasnier <fabrice.gasnier@foss.st.com>
  9. - Patrice Chotard <patrice.chotard@foss.st.com>
  10. properties:
  11. compatible:
  12. const: st,stm32-timer
  13. reg:
  14. maxItems: 1
  15. interrupts:
  16. maxItems: 1
  17. clocks:
  18. maxItems: 1
  19. resets:
  20. maxItems: 1
  21. required:
  22. - compatible
  23. - reg
  24. - interrupts
  25. - clocks
  26. additionalProperties: false
  27. examples:
  28. - |
  29. #include <dt-bindings/interrupt-controller/arm-gic.h>
  30. #include <dt-bindings/clock/stm32mp1-clks.h>
  31. timer: timer@40000c00 {
  32. compatible = "st,stm32-timer";
  33. reg = <0x40000c00 0x400>;
  34. interrupts = <50>;
  35. clocks = <&clk_pmtr1>;
  36. };
  37. ...