Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Hans de Goede and committed by
Maxime Ripard
6fb2ffd7 6bf28cb9

+10
+10
arch/arm/boot/dts/sun5i-q8-common.dtsi
··· 41 41 */ 42 42 #include "sunxi-q8-common.dtsi" 43 43 44 + #include <dt-bindings/pwm/pwm.h> 45 + 44 46 / { 45 47 aliases { 46 48 serial0 = &uart1; 49 + }; 50 + 51 + backlight: backlight { 52 + compatible = "pwm-backlight"; 53 + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; 54 + brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>; 55 + default-brightness-level = <8>; 56 + /* TODO: backlight uses axp gpio1 as enable pin */ 47 57 }; 48 58 49 59 chosen {