1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-03 17:52:07 +02:00

sunxi: dts: Add nodes for LCD panel and backlight

Device tree is slightly different from Linux kernel one, because of
different ABI for display timings between u-boot and Linux.

Signed-off-by: Ondrej Jirman <megous@megous.com>
This commit is contained in:
Ondrej Jirman
2018-07-09 16:47:51 +02:00
parent 89ed7db13a
commit 70a9a6bf0a

View File

@@ -65,12 +65,15 @@
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
default-brightness-level = <9>;
brightness-levels = <0 8 9 10 11 13 15 17 19 21 23 25 28
31 34 37 40 44 48 52 56 61 67 72 78
84 91 98 106 115 124 133 143 154
166 179 192 207 223 239 255>;
default-brightness-level = <20>;
};
panel {
compatible = "tbs,a711-panel", "panel-lvds";
compatible = "tbs,a711-panel", "panel-lvds", "simple-panel";
backlight = <&backlight>;
power-supply = <&reg_sw>;
@@ -78,17 +81,20 @@
height-mm = <90>;
data-mapping = "vesa-24";
panel-timing {
/* 1024x600 @60Hz */
clock-frequency = <52000000>;
hactive = <1024>;
vactive = <600>;
hsync-len = <20>;
hfront-porch = <180>;
hback-porch = <160>;
vfront-porch = <12>;
vback-porch = <23>;
vsync-len = <5>;
display-timings {
timing {
/* 1024x600 @60Hz */
clock-frequency = <52000000>;
hactive = <1024>;
vactive = <600>;
hsync-len = <20>;
hfront-porch = <180>;
hback-porch = <160>;
vfront-porch = <12>;
vback-porch = <23>;
vsync-len = <5>;
bits-per-pixel = <24>;
};
};
port {