backlight: gpio-backlight: Add DT support

Signed-off-by: Denis Carikli <[email protected]>
Acked-by: Jingoo Han <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
Denis Carikli 2014-02-27 15:28:33 +01:00 • committed by Lee Jones
commit 9a6adb339e
2 changed files with 67 additions and 7 deletions

View file

@ -0,0 +1,16 @@
gpio-backlight bindings
Required properties:
- compatible: "gpio-backlight"
- gpios: describes the gpio that is used for enabling/disabling the backlight.
refer to bindings/gpio/gpio.txt for more details.
Optional properties:
- default-on: enable the backlight at boot.
Example:
backlight {
compatible = "gpio-backlight";
gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
default-on;
};