diff options
Diffstat (limited to 'Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt new file mode 100644 index 000000000000..fb6fb31bc4c4 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt | |||
@@ -0,0 +1,30 @@ | |||
1 | BCM2835 PWM controller (Raspberry Pi controller) | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be "brcm,bcm2835-pwm" | ||
5 | - reg: physical base address and length of the controller's registers | ||
6 | - clock: This clock defines the base clock frequency of the PWM hardware | ||
7 | system, the period and the duty_cycle of the PWM signal is a multiple of | ||
8 | the base period. | ||
9 | - #pwm-cells: Should be 2. See pwm.txt in this directory for a description of | ||
10 | the cells format. | ||
11 | |||
12 | Examples: | ||
13 | |||
14 | pwm@2020c000 { | ||
15 | compatible = "brcm,bcm2835-pwm"; | ||
16 | reg = <0x2020c000 0x28>; | ||
17 | clocks = <&clk_pwm>; | ||
18 | #pwm-cells = <2>; | ||
19 | }; | ||
20 | |||
21 | clocks { | ||
22 | .... | ||
23 | clk_pwm: pwm { | ||
24 | compatible = "fixed-clock"; | ||
25 | reg = <3>; | ||
26 | #clock-cells = <0>; | ||
27 | clock-frequency = <9200000>; | ||
28 | }; | ||
29 | .... | ||
30 | }; | ||