From: Hans de Goede Date: Fri, 20 Nov 2015 13:59:08 +0000 (+0100) Subject: ARM: dts: sun5i: Add backlight node to UTOO P66 tablet X-Git-Tag: v4.14-rc1~3962^2~16^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45f0cf84ac7096e76a6fffa17c43d25b50d86d05;p=platform%2Fkernel%2Flinux-rpi.git ARM: dts: sun5i: Add backlight node to UTOO P66 tablet Add a node describing the lcd panel backlight on the UTOO P66 tablet. Signed-off-by: Hans de Goede Acked-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard --- diff --git a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts index eb793d5..5236c1e 100644 --- a/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts +++ b/arch/arm/boot/dts/sun5i-a13-utoo-p66.dts @@ -47,11 +47,21 @@ #include #include #include +#include / { model = "Utoo P66"; compatible = "utoo,p66", "allwinner,sun5i-a13"; + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>; + /* Note levels of 10 / 20% result in backlight off */ + brightness-levels = <0 30 40 50 60 70 80 90 100>; + default-brightness-level = <6>; + /* TODO: backlight uses axp gpio1 as enable pin */ + }; + i2c_lcd: i2c@0 { /* The lcd panel i2c interface is hooked up via gpios */ compatible = "i2c-gpio"; @@ -201,6 +211,12 @@ }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_pins>; + status = "okay"; +}; + ®_dcdc2 { regulator-always-on; regulator-min-microvolt = <1000000>;