Skip to content

Commit 0bde729

Browse files
committed
Merge tag 'pwm/for-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm
Pull pwm changes from Thierry Reding: "Mostly bug fixes and clean up. There is a new driver, which is actually moving a custom PWM driver from drivers/misc. The majority of the patches are enhancements to the device tree support in the pwm-backlight driver. Backlights can now additionally be powered using a regulator and enabled using a GPIO in addition to just the PWM input" * tag 'pwm/for-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (30 commits) Documentation/pwm: Update supported SoC name for pwm-samsung pwm: samsung: Fix kernel warning while unexporting a channel MAINTAINERS: Move PWM subsystem tree to kernel.org Documentation/pwm: Fix trivial typos pwm-backlight: Remove unused variable pwm_backlight: avoid short blank screen while doing hibernation pwm-backlight: Fix brightness adjustment pwm: add ep93xx PWM support pwm-backlight: Allow for non-increasing brightness levels pwm-backlight: Add power supply support pwm-backlight: Use new enable_gpio field unicore32: Initialize PWM backlight enable_gpio field ARM: shmobile: Initialize PWM backlight enable_gpio field ARM: SAMSUNG: Initialize PWM backlight enable_gpio field ARM: pxa: Initialize PWM backlight enable_gpio field ARM: OMAP: Initialize PWM backlight enable_gpio field pwm-backlight: Add optional enable GPIO pwm-backlight: Track enable state pwm-backlight: Refactor backlight power on/off pwm-backlight: Improve readability ...
2 parents 449bf8d + 1b3f25c commit 0bde729

51 files changed

Lines changed: 433 additions & 392 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/pwm/pwm-samsung.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Required properties:
1515
samsung,s5pc100-pwm - for 32-bit timers present on S5PC100, S5PV210,
1616
Exynos4210 rev0 SoCs
1717
samsung,exynos4210-pwm - for 32-bit timers present on Exynos4210,
18-
Exynos4x12 and Exynos5250 SoCs
18+
Exynos4x12, Exynos5250 and Exynos5420 SoCs
1919
- reg: base address and size of register area
2020
- interrupts: list of timer interrupts (one interrupt per timer, starting at
2121
timer 0)

‎Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ Required properties:
1010
last value in the array represents a 100% duty cycle (brightest).
1111
- default-brightness-level: the default brightness level (index into the
1212
array defined by the "brightness-levels" property)
13+
- power-supply: regulator for supply voltage
1314

1415
Optional properties:
1516
- pwm-names: a list of names for the PWM devices specified in the
1617
"pwms" property (see PWM binding[0])
18+
- enable-gpios: contains a single GPIO specifier for the GPIO which enables
19+
and disables the backlight (see GPIO binding[1])
1720

1821
[0]: Documentation/devicetree/bindings/pwm/pwm.txt
22+
[1]: Documentation/devicetree/bindings/gpio/gpio.txt
1923

2024
Example:
2125

@@ -25,4 +29,7 @@ Example:
2529

2630
brightness-levels = <0 4 8 16 32 64 128 255>;
2731
default-brightness-level = <6>;
32+
33+
power-supply = <&vdd_bl_reg>;
34+
enable-gpios = <&gpio 58 0>;
2835
};

‎Documentation/pwm.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ New users should use the pwm_get() function and pass to it the consumer
3939
device or a consumer name. pwm_put() is used to free the PWM device. Managed
4040
variants of these functions, devm_pwm_get() and devm_pwm_put(), also exist.
4141

42-
After being requested a PWM has to be configured using:
42+
After being requested, a PWM has to be configured using:
4343

4444
int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns);
4545

@@ -94,7 +94,7 @@ for new drivers to use the generic PWM framework.
9494
A new PWM controller/chip can be added using pwmchip_add() and removed
9595
again with pwmchip_remove(). pwmchip_add() takes a filled in struct
9696
pwm_chip as argument which provides a description of the PWM chip, the
97-
number of PWM devices provider by the chip and the chip-specific
97+
number of PWM devices provided by the chip and the chip-specific
9898
implementation of the supported PWM operations to the framework.
9999

100100
Locking

‎MAINTAINERS‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6785,8 +6785,7 @@ PWM SUBSYSTEM
67856785
M: Thierry Reding <thierry.reding@gmail.com>
67866786
L: linux-pwm@vger.kernel.org
67876787
S: Maintained
6788-
W: http://gitorious.org/linux-pwm
6789-
T: git git://gitorious.org/linux-pwm/linux-pwm.git
6788+
T: git git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git
67906789
F: Documentation/pwm.txt
67916790
F: Documentation/devicetree/bindings/pwm/
67926791
F: include/linux/pwm.h

‎arch/arm/mach-pxa/cm-x300.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ static struct platform_pwm_backlight_data cm_x300_backlight_data = {
310310
.max_brightness = 100,
311311
.dft_brightness = 100,
312312
.pwm_period_ns = 10000,
313+
.enable_gpio = -1,
313314
};
314315

315316
static struct platform_device cm_x300_backlight_device = {

‎arch/arm/mach-pxa/colibri-pxa270-income.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ static struct platform_pwm_backlight_data income_backlight_data = {
189189
.max_brightness = 0x3ff,
190190
.dft_brightness = 0x1ff,
191191
.pwm_period_ns = 1000000,
192+
.enable_gpio = -1,
192193
};
193194

194195
static struct platform_device income_backlight = {

‎arch/arm/mach-pxa/ezx.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static struct platform_pwm_backlight_data ezx_backlight_data = {
5454
.max_brightness = 1023,
5555
.dft_brightness = 1023,
5656
.pwm_period_ns = 78770,
57+
.enable_gpio = -1,
5758
};
5859

5960
static struct platform_device ezx_backlight_device = {

‎arch/arm/mach-pxa/hx4700.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ static struct platform_pwm_backlight_data backlight_data = {
561561
.max_brightness = 200,
562562
.dft_brightness = 100,
563563
.pwm_period_ns = 30923,
564+
.enable_gpio = -1,
564565
};
565566

566567
static struct platform_device backlight = {

‎arch/arm/mach-pxa/lpd270.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ static struct platform_pwm_backlight_data lpd270_backlight_data = {
269269
.max_brightness = 1,
270270
.dft_brightness = 1,
271271
.pwm_period_ns = 78770,
272+
.enable_gpio = -1,
272273
};
273274

274275
static struct platform_device lpd270_backlight_device = {

‎arch/arm/mach-pxa/magician.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ static struct platform_pwm_backlight_data backlight_data = {
378378
.max_brightness = 272,
379379
.dft_brightness = 100,
380380
.pwm_period_ns = 30923,
381+
.enable_gpio = -1,
381382
.init = magician_backlight_init,
382383
.notify = magician_backlight_notify,
383384
.exit = magician_backlight_exit,

0 commit comments

Comments
 (0)