pwm-tiecap.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/pwm/pwm-tiecap.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: TI SOC ECAP based APWM controller
  7. maintainers:
  8. - Vignesh R <vigneshr@ti.com>
  9. allOf:
  10. - $ref: pwm.yaml#
  11. properties:
  12. compatible:
  13. oneOf:
  14. - const: ti,am3352-ecap
  15. - items:
  16. - enum:
  17. - ti,da850-ecap
  18. - ti,am4372-ecap
  19. - ti,dra746-ecap
  20. - ti,k2g-ecap
  21. - ti,am654-ecap
  22. - ti,am64-ecap
  23. - const: ti,am3352-ecap
  24. reg:
  25. maxItems: 1
  26. "#pwm-cells":
  27. const: 3
  28. description: |
  29. See pwm.yaml in this directory for a description of the cells format.
  30. The only third cell flag supported by this binding is PWM_POLARITY_INVERTED.
  31. clock-names:
  32. const: fck
  33. clocks:
  34. maxItems: 1
  35. power-domains:
  36. maxItems: 1
  37. required:
  38. - compatible
  39. - reg
  40. - clocks
  41. - clock-names
  42. additionalProperties: false
  43. examples:
  44. - |
  45. ecap0: pwm@48300100 { /* ECAP on am33xx */
  46. compatible = "ti,am3352-ecap";
  47. #pwm-cells = <3>;
  48. reg = <0x48300100 0x80>;
  49. clocks = <&l4ls_gclk>;
  50. clock-names = "fck";
  51. };