pwm.yaml 837 B

123456789101112131415161718192021222324252627282930313233343536
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/pwm/pwm.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: PWM controllers (providers)
  7. maintainers:
  8. - Thierry Reding <thierry.reding@gmail.com>
  9. select: false
  10. properties:
  11. $nodename:
  12. pattern: "^pwm(@.*|-([0-9]|[1-9][0-9]+))?$"
  13. "#pwm-cells":
  14. description: |
  15. Number of cells in a PWM specifier. Typically the cells represent, in
  16. order: the chip-relative PWM number, the PWM period in nanoseconds and
  17. optionally a number of flags (defined in <dt-bindings/pwm/pwm.h>).
  18. required:
  19. - "#pwm-cells"
  20. additionalProperties: true
  21. examples:
  22. - |
  23. pwm: pwm@1c20e00 {
  24. compatible = "allwinner,sun7i-a20-pwm";
  25. reg = <0x01c20e00 0xc>;
  26. clocks = <&osc24M>;
  27. #pwm-cells = <3>;
  28. };