Commit f7eda3d5 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard

ARM: dts: sun8i: Add backlight / pwm nodes to sun8i-a23-gt90h-v4

Add nodes for the backlight / pwm found on a23-gt90h-v4 tablets.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent a1162a91
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/sun4i-a10.h> #include <dt-bindings/pinctrl/sun4i-a10.h>
#include <dt-bindings/pwm/pwm.h>
/ { / {
model = "Allwinner GT90H Quad Core Tablet (v4)"; model = "Allwinner GT90H Quad Core Tablet (v4)";
...@@ -56,6 +57,16 @@ aliases { ...@@ -56,6 +57,16 @@ aliases {
serial0 = &r_uart; serial0 = &r_uart;
}; };
backlight: backlight {
compatible = "pwm-backlight";
pinctrl-names = "default";
pinctrl-0 = <&bl_en_pin_gt90h>;
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <8>;
enable-gpios = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
};
chosen { chosen {
stdout-path = "serial0:115200n8"; stdout-path = "serial0:115200n8";
}; };
...@@ -115,6 +126,13 @@ &mmc0 { ...@@ -115,6 +126,13 @@ &mmc0 {
}; };
&pio { &pio {
bl_en_pin_gt90h: bl_en_pin@0 {
allwinner,pins = "PH6";
allwinner,function = "gpio_in";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
mmc0_cd_pin_gt90h: mmc0_cd_pin@0 { mmc0_cd_pin_gt90h: mmc0_cd_pin@0 {
allwinner,pins = "PB4"; allwinner,pins = "PB4";
allwinner,function = "gpio_in"; allwinner,function = "gpio_in";
...@@ -123,6 +141,12 @@ mmc0_cd_pin_gt90h: mmc0_cd_pin@0 { ...@@ -123,6 +141,12 @@ mmc0_cd_pin_gt90h: mmc0_cd_pin@0 {
}; };
}; };
&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm0_pins>;
status = "okay";
};
&r_rsb { &r_rsb {
status = "okay"; status = "okay";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment