ti-eqep.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # SPDX-License-Identifier: GPL-2.0
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/counter/ti-eqep.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Texas Instruments Enhanced Quadrature Encoder Pulse (eQEP) Module
  7. maintainers:
  8. - David Lechner <david@lechnology.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - ti,am3352-eqep
  13. - ti,am62-eqep
  14. reg:
  15. maxItems: 1
  16. interrupts:
  17. description: The eQEP event interrupt
  18. maxItems: 1
  19. clocks:
  20. description: The functional and interface clock that determines the clock
  21. rate for the eQEP peripheral.
  22. maxItems: 1
  23. clock-names:
  24. const: sysclkout
  25. power-domains:
  26. maxItems: 1
  27. allOf:
  28. - if:
  29. properties:
  30. compatible:
  31. contains:
  32. enum:
  33. - ti,am62-eqep
  34. then:
  35. properties:
  36. clock-names: false
  37. required:
  38. - power-domains
  39. required:
  40. - compatible
  41. - reg
  42. - interrupts
  43. - clocks
  44. additionalProperties: false
  45. examples:
  46. - |
  47. eqep0: counter@180 {
  48. compatible = "ti,am3352-eqep";
  49. reg = <0x180 0x80>;
  50. clocks = <&l4ls_gclk>;
  51. interrupts = <79>;
  52. };
  53. ...