diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-27 11:15:51 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-27 11:15:51 -0500 |
commit | 398b60a8de46adfbd43aa4c01753acf0161ec764 (patch) | |
tree | 7d3a1673f4c764782cec34523967b386bf085fc6 /Documentation | |
parent | 028e219eff45ce8ba962c59e3dbc622499e88d50 (diff) | |
parent | 6691a19966f04dd81e60505f9630c1a7cf148507 (diff) |
Merge tag 'pwm/for-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
Pull pwm changes from Thierry Reding:
"The patches for this release cycle include various enhancements
(device tree support, better compile coverage, ...) for existing
drivers. There is a new driver for Atmel SoCs.
Various drivers as well as the sysfs support received minor fixes and
cleanups"
* tag 'pwm/for-3.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
pwm: tiecap: Remove duplicate put_sync call
pwm: tiehrpwm: use dev_err() instead of pr_err()
pwm: pxa: remove unnecessary space before tabs
pwm: ep93xx: split module author names
pwm: use seq_puts() instead of seq_printf()
pwm: atmel-pwm: Do not unprepare clock after successful registration
of: Add Atmel PWM controller device tree binding
pwm: atmel-pwm: Add Atmel PWM controller driver
backlight: pwm_bl: Remove error message upon devm_kzalloc() failure
pwm: pca9685: depends on I2C rather than REGMAP_I2C
pwm: renesas-tpu: Enable driver compilation with COMPILE_TEST
pwm: jz4740: Use devm_clk_get()
pwm: jz4740: Pass device to clk_get()
pwm: sysfs: Convert to use ATTRIBUTE_GROUPS macro
pwm: pxa: Add device tree support
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/atmel-pwm.txt | 33 | ||||
-rw-r--r-- | Documentation/devicetree/bindings/pwm/pxa-pwm.txt | 30 |
2 files changed, 63 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 @@ | |||
1 | Atmel PWM controller | ||
2 | |||
3 | Required 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 | |||
11 | Example: | ||
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 | }; | ||
diff --git a/Documentation/devicetree/bindings/pwm/pxa-pwm.txt b/Documentation/devicetree/bindings/pwm/pxa-pwm.txt new file mode 100644 index 000000000000..5ae9f1e3c338 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pxa-pwm.txt | |||
@@ -0,0 +1,30 @@ | |||
1 | Marvell PWM controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: should be one or more of: | ||
5 | - "marvell,pxa250-pwm" | ||
6 | - "marvell,pxa270-pwm" | ||
7 | - "marvell,pxa168-pwm" | ||
8 | - "marvell,pxa910-pwm" | ||
9 | - reg: Physical base address and length of the registers used by the PWM channel | ||
10 | Note that one device instance must be created for each PWM that is used, so the | ||
11 | length covers only the register window for one PWM output, not that of the | ||
12 | entire PWM controller. Currently length is 0x10 for all supported devices. | ||
13 | - #pwm-cells: Should be 1. This cell is used to specify the period in | ||
14 | nanoseconds. | ||
15 | |||
16 | Example PWM device node: | ||
17 | |||
18 | pwm0: pwm@40b00000 { | ||
19 | compatible = "marvell,pxa250-pwm"; | ||
20 | reg = <0x40b00000 0x10>; | ||
21 | #pwm-cells = <1>; | ||
22 | }; | ||
23 | |||
24 | Example PWM client node: | ||
25 | |||
26 | backlight { | ||
27 | compatible = "pwm-backlight"; | ||
28 | pwms = <&pwm0 5000000>; | ||
29 | ... | ||
30 | } | ||