pwm-tipwmss.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. TI SOC based PWM Subsystem
  2. Required properties:
  3. - compatible: Must be "ti,<soc>-pwmss".
  4. for am33xx - compatible = "ti,am33xx-pwmss";
  5. for am4372 - compatible = "ti,am4372-pwmss","ti,am33xx-pwmss";
  6. for dra746 - compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss"
  7. - reg: physical base address and size of the registers map.
  8. - address-cells: Specify the number of u32 entries needed in child nodes.
  9. Should set to 1.
  10. - size-cells: specify number of u32 entries needed to specify child nodes size
  11. in reg property. Should set to 1.
  12. - ranges: describes the address mapping of a memory-mapped bus. Should set to
  13. physical address map of child's base address, physical address within
  14. parent's address space and length of the address map. For am33xx,
  15. 3 set of child register maps present, ECAP register space, EQEP
  16. register space, EHRPWM register space.
  17. Also child nodes should also populated under PWMSS DT node.
  18. Example:
  19. epwmss0: epwmss@48300000 { /* PWMSS for am33xx */
  20. compatible = "ti,am33xx-pwmss";
  21. reg = <0x48300000 0x10>;
  22. ti,hwmods = "epwmss0";
  23. #address-cells = <1>;
  24. #size-cells = <1>;
  25. status = "disabled";
  26. ranges = <0x48300100 0x48300100 0x80 /* ECAP */
  27. 0x48300180 0x48300180 0x80 /* EQEP */
  28. 0x48300200 0x48300200 0x80>; /* EHRPWM */
  29. /* child nodes go here */
  30. };
  31. epwmss0: epwmss@48300000 { /* PWMSS for am4372 */
  32. compatible = "ti,am4372-pwmss","ti,am33xx-pwmss"
  33. reg = <0x48300000 0x10>;
  34. ti,hwmods = "epwmss0";
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. status = "disabled";
  38. ranges = <0x48300100 0x48300100 0x80 /* ECAP */
  39. 0x48300180 0x48300180 0x80 /* EQEP */
  40. 0x48300200 0x48300200 0x80>; /* EHRPWM */
  41. /* child nodes go here */
  42. };
  43. epwmss0: epwmss@4843e000 { /* PWMSS for DRA7xx */
  44. compatible = "ti,dra746-pwmss", "ti,am33xx-pwmss";
  45. reg = <0x4843e000 0x30>;
  46. ti,hwmods = "epwmss0";
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. ranges;
  50. /* child nodes go here */
  51. };