pwm-bcm2835.txt 727 B

12345678910111213141516171819202122232425262728293031
  1. BCM2835 PWM controller (Raspberry Pi controller)
  2. Required properties:
  3. - compatible: should be "brcm,bcm2835-pwm"
  4. - reg: physical base address and length of the controller's registers
  5. - clock: This clock defines the base clock frequency of the PWM hardware
  6. system, the period and the duty_cycle of the PWM signal is a multiple of
  7. the base period.
  8. - #pwm-cells: Should be 2. See pwm.txt in this directory for a description of
  9. the cells format.
  10. Examples:
  11. pwm@2020c000 {
  12. compatible = "brcm,bcm2835-pwm";
  13. reg = <0x2020c000 0x28>;
  14. clocks = <&clk_pwm>;
  15. #pwm-cells = <2>;
  16. };
  17. clocks {
  18. ....
  19. clk_pwm: pwm {
  20. compatible = "fixed-clock";
  21. reg = <3>;
  22. #clock-cells = <0>;
  23. clock-frequency = <9200000>;
  24. };
  25. ....
  26. };