diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-18 12:00:53 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-18 12:00:53 -0500 |
commit | 9a8b2aa534f23a61a57385309667e42e96941116 (patch) | |
tree | 52e2fb287bb47c890eae63744d27f8bd3b187eac /Documentation/devicetree | |
parent | ce1d3fde87d1a21f1ec1147dde32b2825dd3a276 (diff) | |
parent | b65af27ad89de60ca55721f9368b18d49ba1f269 (diff) |
Merge tag 'pwm/for-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
Pull pwm updates from Thierry Reding:
"This contains two new drivers, one for Allwinner SoCs and the other
for Imagination Technologies' Pistachio SoC.
Complementing this are a couple of fixes to the Atmel HLCDC PWM and
STi PWM drivers as well as minor cleanups to the core and the Tegra
driver"
* tag 'pwm/for-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
pwm: tegra: Use NSEC_PER_SEC
pwm: Remove unnecessary check before of_node_put()
pwm: Add device tree binding document for IMG PWM DAC
pwm: Imagination Technologies PWM DAC driver
pwm: sti: Maintain a bitmap of configured devices
pwm: sunxi: document OF bindings
pwm: Add Allwinner SoC support
pwm: atmel-hlcdc: Prevent division by zero
pwm: atmel-hlcdc: Depend on HAVE_CLK
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/img-pwm.txt | 24 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pwm-sun4i.txt | 20 |
2 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/img-pwm.txt b/Documentation/devicetree/bindings/pwm/img-pwm.txt new file mode 100644 index 000000000000..fade5f26fcac --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/img-pwm.txt | |||
@@ -0,0 +1,24 @@ | |||
1 | *Imagination Technologies PWM DAC driver | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Should be "img,pistachio-pwm" | ||
5 | - reg: Should contain physical base address and length of pwm registers. | ||
6 | - clocks: Must contain an entry for each entry in clock-names. | ||
7 | See ../clock/clock-bindings.txt for details. | ||
8 | - clock-names: Must include the following entries. | ||
9 | - pwm: PWM operating clock. | ||
10 | - sys: PWM system interface clock. | ||
11 | - #pwm-cells: Should be 2. See pwm.txt in this directory for the | ||
12 | description of the cells format. | ||
13 | - img,cr-periph: Must contain a phandle to the peripheral control | ||
14 | syscon node which contains PWM control registers. | ||
15 | |||
16 | Example: | ||
17 | pwm: pwm@18101300 { | ||
18 | compatible = "img,pistachio-pwm"; | ||
19 | reg = <0x18101300 0x100>; | ||
20 | clocks = <&pwm_clk>, <&system_clk>; | ||
21 | clock-names = "pwm", "sys"; | ||
22 | #pwm-cells = <2>; | ||
23 | img,cr-periph = <&cr_periph>; | ||
24 | }; | ||
diff --git a/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt b/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt new file mode 100644 index 000000000000..ae0273e19506 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-sun4i.txt | |||
@@ -0,0 +1,20 @@ | |||
1 | Allwinner sun4i and sun7i SoC PWM controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be one of: | ||
5 | - "allwinner,sun4i-a10-pwm" | ||
6 | - "allwinner,sun7i-a20-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 description of | ||
9 | the cells format. | ||
10 | - clocks: From common clock binding, handle to the parent clock. | ||
11 | |||
12 | Example: | ||
13 | |||
14 | pwm: pwm@01c20e00 { | ||
15 | compatible = "allwinner,sun7i-a20-pwm"; | ||
16 | reg = <0x01c20e00 0xc>; | ||
17 | clocks = <&osc24M>; | ||
18 | #pwm-cells = <3>; | ||
19 | status = "disabled"; | ||
20 | }; | ||