summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun5i-q8-common.dtsi
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-10-11 12:55:08 +0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-10-12 16:51:54 +0300
commit6fb2ffd737a1d5c06d878ff47a715d20cce78265 (patch)
tree82d793f724625003e3aff53be195443b854d3c66 /arch/arm/boot/dts/sun5i-q8-common.dtsi
parent6bf28cb995a525f090e2fb6370fb8717dbf57598 (diff)
downloadlinux-6fb2ffd737a1d5c06d878ff47a715d20cce78265.tar.xz
ARM: dts: sun5i: Add backlight node to sun5i-q8-common.dtsi
All A13 based q8 formfactor tablets use the same backlight setup, add a backlight devicetree node for controlling the backlight on these devices. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun5i-q8-common.dtsi')
-rw-r--r--arch/arm/boot/dts/sun5i-q8-common.dtsi10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun5i-q8-common.dtsi b/arch/arm/boot/dts/sun5i-q8-common.dtsi
index 0641d68a6d82..a78e189f6653 100644
--- a/arch/arm/boot/dts/sun5i-q8-common.dtsi
+++ b/arch/arm/boot/dts/sun5i-q8-common.dtsi
@@ -41,11 +41,21 @@
*/
#include "sunxi-q8-common.dtsi"
+#include <dt-bindings/pwm/pwm.h>
+
/ {
aliases {
serial0 = &uart1;
};
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
+ brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
+ default-brightness-level = <8>;
+ /* TODO: backlight uses axp gpio1 as enable pin */
+ };
+
chosen {
stdout-path = "serial0:115200n8";
};