Back to home page

OSCL-LXR

 
 

    


0001 Marvell PWM controller
0002 
0003 Required properties:
0004 - compatible: should be one or more of:
0005   - "marvell,pxa250-pwm"
0006   - "marvell,pxa270-pwm"
0007   - "marvell,pxa168-pwm"
0008   - "marvell,pxa910-pwm"
0009 - reg: Physical base address and length of the registers used by the PWM channel
0010   Note that one device instance must be created for each PWM that is used, so the
0011   length covers only the register window for one PWM output, not that of the
0012   entire PWM controller.  Currently length is 0x10 for all supported devices.
0013 - #pwm-cells: Should be 1.  This cell is used to specify the period in
0014   nanoseconds.
0015 
0016 Example PWM device node:
0017 
0018 pwm0: pwm@40b00000 {
0019         compatible = "marvell,pxa250-pwm";
0020         reg = <0x40b00000 0x10>;
0021         #pwm-cells = <1>;
0022 };
0023 
0024 Example PWM client node:
0025 
0026 backlight {
0027         compatible = "pwm-backlight";
0028         pwms = <&pwm0 5000000>;
0029         ...
0030 }