Skip to content

Commit

Permalink
ARM: dts: sun7i: Add backlight node to Wexler TAB7200 tablet
Browse files Browse the repository at this point in the history
Add a backlight for controlling the lcd panel backlight on Wexler TAB7200 tablet

Signed-off-by: Aleksei Mamlin <mamlinav@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Aleksei Mamlin authored and Maxime Ripard committed Dec 21, 2015
1 parent e7bb896 commit 028997b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pwm/pwm.h>

/ {
model = "Wexler TAB7200";
Expand All @@ -57,6 +58,16 @@
serial0 = &uart0;
};

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>;
pinctrl-names = "default";
pinctrl-0 = <&bl_enable_pin>;
enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
};

chosen {
stdout-path = "serial0:115200n8";
};
Expand Down Expand Up @@ -158,6 +169,13 @@
};

&pio {
bl_enable_pin: bl_enable_pin@0 {
allwinner,pins = "PH7";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};

ts_reset_pin: ts_reset_pin@0 {
allwinner,pins = "PB13";
allwinner,function = "gpio_out";
Expand Down

0 comments on commit 028997b

Please sign in to comment.