]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.18.3/arm-dts-am437x-sk-evm.dts-fix-lcd-timings.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 3.18.3 / arm-dts-am437x-sk-evm.dts-fix-lcd-timings.patch
1 From d73f825e6efa723e81d9ffcc4949fe9f03f1df29 Mon Sep 17 00:00:00 2001
2 From: Tomi Valkeinen <tomi.valkeinen@ti.com>
3 Date: Fri, 5 Dec 2014 09:39:31 +0200
4 Subject: ARM: dts: am437x-sk-evm.dts: fix LCD timings
5
6 From: Tomi Valkeinen <tomi.valkeinen@ti.com>
7
8 commit d73f825e6efa723e81d9ffcc4949fe9f03f1df29 upstream.
9
10 The lcd0 node for am437x-sk-evm.dts contains bad LCD timings, and while
11 they seem to work with a quick test, doing for example blank/unblank
12 will give you a black display.
13
14 This patch updates the timings to the 'typical' values from the LCD spec
15 sheet.
16
17 Also, the compatible string is completely bogus, as
18 "osddisplays,osd057T0559-34ts" is _not_ a 480x272 panel. The panel on
19 the board is a newhaven one. Update the compatible string to reflect
20 this. Note that this hasn't caused any issues, as the "panel-dpi"
21 matches the driver.
22
23 Tested-by: Felipe Balbi <balbi@ti.com>
24 Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
25 Signed-off-by: Tony Lindgren <tony@atomide.com>
26 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
27
28 ---
29 arch/arm/boot/dts/am437x-sk-evm.dts | 12 ++++++------
30 1 file changed, 6 insertions(+), 6 deletions(-)
31
32 --- a/arch/arm/boot/dts/am437x-sk-evm.dts
33 +++ b/arch/arm/boot/dts/am437x-sk-evm.dts
34 @@ -100,7 +100,7 @@
35 };
36
37 lcd0: display {
38 - compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
39 + compatible = "newhaven,nhd-4.3-480272ef-atxl", "panel-dpi";
40 label = "lcd";
41
42 pinctrl-names = "default";
43 @@ -112,11 +112,11 @@
44 clock-frequency = <9000000>;
45 hactive = <480>;
46 vactive = <272>;
47 - hfront-porch = <8>;
48 - hback-porch = <43>;
49 - hsync-len = <4>;
50 - vback-porch = <12>;
51 - vfront-porch = <4>;
52 + hfront-porch = <2>;
53 + hback-porch = <2>;
54 + hsync-len = <41>;
55 + vfront-porch = <2>;
56 + vback-porch = <2>;
57 vsync-len = <10>;
58 hsync-active = <0>;
59 vsync-active = <0>;