mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 09:42:22 +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:
@@ -65,12 +65,15 @@
|
|||||||
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
|
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
|
||||||
enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
|
enable-gpios = <&pio 3 29 GPIO_ACTIVE_HIGH>;
|
||||||
|
|
||||||
brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
|
brightness-levels = <0 8 9 10 11 13 15 17 19 21 23 25 28
|
||||||
default-brightness-level = <9>;
|
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 {
|
panel {
|
||||||
compatible = "tbs,a711-panel", "panel-lvds";
|
compatible = "tbs,a711-panel", "panel-lvds", "simple-panel";
|
||||||
backlight = <&backlight>;
|
backlight = <&backlight>;
|
||||||
power-supply = <®_sw>;
|
power-supply = <®_sw>;
|
||||||
|
|
||||||
@@ -78,17 +81,20 @@
|
|||||||
height-mm = <90>;
|
height-mm = <90>;
|
||||||
data-mapping = "vesa-24";
|
data-mapping = "vesa-24";
|
||||||
|
|
||||||
panel-timing {
|
display-timings {
|
||||||
/* 1024x600 @60Hz */
|
timing {
|
||||||
clock-frequency = <52000000>;
|
/* 1024x600 @60Hz */
|
||||||
hactive = <1024>;
|
clock-frequency = <52000000>;
|
||||||
vactive = <600>;
|
hactive = <1024>;
|
||||||
hsync-len = <20>;
|
vactive = <600>;
|
||||||
hfront-porch = <180>;
|
hsync-len = <20>;
|
||||||
hback-porch = <160>;
|
hfront-porch = <180>;
|
||||||
vfront-porch = <12>;
|
hback-porch = <160>;
|
||||||
vback-porch = <23>;
|
vfront-porch = <12>;
|
||||||
vsync-len = <5>;
|
vback-porch = <23>;
|
||||||
|
vsync-len = <5>;
|
||||||
|
bits-per-pixel = <24>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
port {
|
port {
|
||||||
|
Reference in New Issue
Block a user