aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-08-30 06:32:18 -0400
committerThierry Reding <thierry.reding@gmail.com>2013-10-16 03:20:09 -0400
commit8265b2e4e62632b01f998095d1bbda4d281629fe (patch)
tree31f3f3d6714f58553feff2b670adf1bd5d393455 /Documentation
parent611c86c6de7a58c59b231804ffa19d1b70f6fd90 (diff)
pwm-backlight: Use new enable_gpio field
Make use of the new enable_gpio field and allow it to be set from DT as well. Now that all legacy users of platform data have been converted to initialize this field to an invalid value, it is safe to use the field from the driver. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
index 1e4fc727f3b1..72810cc2dbc1 100644
--- a/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
+++ b/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
@@ -14,8 +14,11 @@ Required properties:
14Optional properties: 14Optional properties:
15 - pwm-names: a list of names for the PWM devices specified in the 15 - pwm-names: a list of names for the PWM devices specified in the
16 "pwms" property (see PWM binding[0]) 16 "pwms" property (see PWM binding[0])
17 - enable-gpios: contains a single GPIO specifier for the GPIO which enables
18 and disables the backlight (see GPIO binding[1])
17 19
18[0]: Documentation/devicetree/bindings/pwm/pwm.txt 20[0]: Documentation/devicetree/bindings/pwm/pwm.txt
21[1]: Documentation/devicetree/bindings/gpio/gpio.txt
19 22
20Example: 23Example:
21 24
@@ -25,4 +28,6 @@ Example:
25 28
26 brightness-levels = <0 4 8 16 32 64 128 255>; 29 brightness-levels = <0 4 8 16 32 64 128 255>;
27 default-brightness-level = <6>; 30 default-brightness-level = <6>;
31
32 enable-gpios = <&gpio 58 0>;
28 }; 33 };