aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-12-13 01:41:50 -0500
committerThierry Reding <thierry.reding@gmail.com>2013-12-17 05:26:43 -0500
commit3f958fe7d3e37d26d321fe4761a6787bf22446b3 (patch)
treeb6644e625fc409ee4f08a548734ceaf6e89d8ee2 /Documentation
parent32b16d46e4154d6f9d9c1d5dd35f64cdf08b7aea (diff)
of: Add Atmel PWM controller device tree binding
The Atmel PWM controller uses the standard device tree bindings for PWM controllers. Signed-off-by: Bo Shen <voice.shen@atmel.com> Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Kumar Gala <galak@codeaurora.org> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/pwm/atmel-pwm.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt
new file mode 100644
index 000000000000..02331b904d4e
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/atmel-pwm.txt
@@ -0,0 +1,33 @@
1Atmel PWM controller
2
3Required properties:
4 - compatible: should be one of:
5 - "atmel,at91sam9rl-pwm"
6 - "atmel,sama5d3-pwm"
7 - reg: physical base address and length of the controller's registers
8 - #pwm-cells: Should be 3. See pwm.txt in this directory for a
9 description of the cells format.
10
11Example:
12
13 pwm0: pwm@f8034000 {
14 compatible = "atmel,at91sam9rl-pwm";
15 reg = <0xf8034000 0x400>;
16 #pwm-cells = <3>;
17 };
18
19 pwmleds {
20 compatible = "pwm-leds";
21
22 d1 {
23 label = "d1";
24 pwms = <&pwm0 3 5000 0>
25 max-brightness = <255>;
26 };
27
28 d2 {
29 label = "d2";
30 pwms = <&pwm0 1 5000 1>
31 max-brightness = <255>;
32 };
33 };