ARM: dts: am437x-sk-evm.dts: fix LCD timings
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 5 Dec 2014 07:39:31 +0000 (09:39 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 10 Dec 2014 17:33:50 +0000 (09:33 -0800)
The lcd0 node for am437x-sk-evm.dts contains bad LCD timings, and while
they seem to work with a quick test, doing for example blank/unblank
will give you a black display.

This patch updates the timings to the 'typical' values from the LCD spec
sheet.

Also, the compatible string is completely bogus, as
"osddisplays,osd057T0559-34ts" is _not_ a 480x272 panel. The panel on
the board is a newhaven one. Update the compatible string to reflect
this. Note that this hasn't caused any issues, as the "panel-dpi"
matches the driver.

Cc: <stable@vger.kernel.org> # v3.17+
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am437x-sk-evm.dts

index 0efd3ec..53bbfc9 100644 (file)
        };
 
        lcd0: display {
-               compatible = "osddisplays,osd057T0559-34ts", "panel-dpi";
+               compatible = "newhaven,nhd-4.3-480272ef-atxl", "panel-dpi";
                label = "lcd";
 
                pinctrl-names = "default";
                        clock-frequency = <9000000>;
                        hactive = <480>;
                        vactive = <272>;
-                       hfront-porch = <8>;
-                       hback-porch = <43>;
-                       hsync-len = <4>;
-                       vback-porch = <12>;
-                       vfront-porch = <4>;
+                       hfront-porch = <2>;
+                       hback-porch = <2>;
+                       hsync-len = <41>;
+                       vfront-porch = <2>;
+                       vback-porch = <2>;
                        vsync-len = <10>;
                        hsync-active = <0>;
                        vsync-active = <0>;