Back to home page

OSCL-LXR

 
 

    


0001 BCM2835 PWM controller (Raspberry Pi controller)
0002 
0003 Required properties:
0004 - compatible: should be "brcm,bcm2835-pwm"
0005 - reg: physical base address and length of the controller's registers
0006 - clocks: This clock defines the base clock frequency of the PWM hardware
0007   system, the period and the duty_cycle of the PWM signal is a multiple of
0008   the base period.
0009 - #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of
0010   the cells format.
0011 
0012 Examples:
0013 
0014 pwm@2020c000 {
0015         compatible = "brcm,bcm2835-pwm";
0016         reg = <0x2020c000 0x28>;
0017         clocks = <&clk_pwm>;
0018         #pwm-cells = <3>;
0019 };
0020 
0021 clocks {
0022         ....
0023                 clk_pwm: pwm {
0024                         compatible = "fixed-clock";
0025                         reg = <3>;
0026                         #clock-cells = <0>;
0027                         clock-frequency = <9200000>;
0028                 };
0029         ....
0030 };