-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'pwm/for-3.14-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/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
- Loading branch information
Showing
13 changed files
with
537 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Atmel PWM controller | ||
|
||
Required properties: | ||
- compatible: should be one of: | ||
- "atmel,at91sam9rl-pwm" | ||
- "atmel,sama5d3-pwm" | ||
- reg: physical base address and length of the controller's registers | ||
- #pwm-cells: Should be 3. See pwm.txt in this directory for a | ||
description of the cells format. | ||
|
||
Example: | ||
|
||
pwm0: pwm@f8034000 { | ||
compatible = "atmel,at91sam9rl-pwm"; | ||
reg = <0xf8034000 0x400>; | ||
#pwm-cells = <3>; | ||
}; | ||
|
||
pwmleds { | ||
compatible = "pwm-leds"; | ||
|
||
d1 { | ||
label = "d1"; | ||
pwms = <&pwm0 3 5000 0> | ||
max-brightness = <255>; | ||
}; | ||
|
||
d2 { | ||
label = "d2"; | ||
pwms = <&pwm0 1 5000 1> | ||
max-brightness = <255>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Marvell PWM controller | ||
|
||
Required properties: | ||
- compatible: should be one or more of: | ||
- "marvell,pxa250-pwm" | ||
- "marvell,pxa270-pwm" | ||
- "marvell,pxa168-pwm" | ||
- "marvell,pxa910-pwm" | ||
- reg: Physical base address and length of the registers used by the PWM channel | ||
Note that one device instance must be created for each PWM that is used, so the | ||
length covers only the register window for one PWM output, not that of the | ||
entire PWM controller. Currently length is 0x10 for all supported devices. | ||
- #pwm-cells: Should be 1. This cell is used to specify the period in | ||
nanoseconds. | ||
|
||
Example PWM device node: | ||
|
||
pwm0: pwm@40b00000 { | ||
compatible = "marvell,pxa250-pwm"; | ||
reg = <0x40b00000 0x10>; | ||
#pwm-cells = <1>; | ||
}; | ||
|
||
Example PWM client node: | ||
|
||
backlight { | ||
compatible = "pwm-backlight"; | ||
pwms = <&pwm0 5000000>; | ||
... | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.