[Letux-kernel] DSI & DPI panels with omapdrm on 4.20-rc

H. Nikolaus Schaller hns at goldelico.com
Thu Nov 15 07:00:42 CET 2018


Hi Tomi,

> Am 14.11.2018 um 15:10 schrieb Tomi Valkeinen <tomi.valkeinen at ti.com>:
> 
> On 14/11/18 12:42, H. Nikolaus Schaller wrote:
>> Hi Tomi,
>> I now also have a problem with a DPI panel on an OMAP3.
>> 
>> Here is the DT definition which works up to 4.19.1:
>> 
>> 	aliases {
>> 		display0 = &lcd_b2;
>> 		display1 = &tv0;
>> 	};
>> 
>> 	lcd_b2: lcd {
>> 		compatible =	"ortustech,com37h3m05dtc",
>> 				"ortustech,com37h3m099dtc",
>> 				"panel-dpi";
>> 		label = "lcd";
>> 		enable-gpios = <&gpio1 20 0>;
>> 
>> 		panel-timing {
>> 			clock-frequency = <22153000>;
>> 
>> 			hback-porch = <10>;
>> 			hactive = <480>;
>> 			hfront-porch = <8>;
>> 			hsync-len = <10>;
>> 
>> 			vback-porch = <4>;
>> 			vactive = <640>;
>> 			vfront-porch = <4>;
>> 			vsync-len = <3>;
>> 
>> 			hsync-active = <0>;
>> 			vsync-active = <0>;
>> 			de-active = <1>;
>> 			pixelclk-active = <1>;
>> 
>> 		};
>> 
>> 		port {
>> 			lcd_b2_in: endpoint {
>> 				remote-endpoint = <&dpi_out>;
>> 			};
>> 		};
>> 	};
>> 
>> &dss {
>> 	pinctrl-names = "default";
>> 	pinctrl-0 = < &dss_dpi_pins >;
>> 
>> 	status = "okay";
>> 
>> 	port {
>> 		dpi_out: endpoint {
>> 			remote-endpoint = <&lcd_b2_in>;
>> 			data-lines = <24>;
>> 		};
>> 	};
>> };
>> 
>> 
>> The Panel basically works but the picture repeats the first column in all
>> columns of the left half of the screen.
> 
> Can you get a dispc regdump for working and non-working cases?

Attachted they are:

a) 4.18.18 with display ok
b) 4.20-rc2 with strange output

Main diff seems to be that clock divisors are different.
But also DISPC_POL_FREQ.

iMac:Desktop hns$ diff dpi-4.18.18-c.txt dpi-4.20-rc2-c.txt 
5c5
< fck		66461539        
---
> fck             66461539        
8,9c8,9
< lck		22153846        lck div	3
< pck		22153846        pck div	1
---
> lck             66461539        lck div     1
> pck             22153846        pck div     3
13c13
< DISPC_IRQSTATUS                                    000000a2
---
> DISPC_IRQSTATUS                                    000120a2
18c18
< DISPC_LINE_STATUS                                  0000023f
---
> DISPC_LINE_STATUS                                  0000012b
20c20
< DISPC_GLOBAL_ALPHA                                 000000ff
---
> DISPC_GLOBAL_ALPHA                                 00ff00ff
26,27c26,27
< DISPC_POL_FREQ(LCD)                                00033000
< DISPC_DIVISORo(LCD)                                00030001
---
> DISPC_POL_FREQ(LCD)                                0002f000
> DISPC_DIVISORo(LCD)                                00010003

Hope this is a hint.

BR,
Nikolaus

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dpi-4.18.18-c.txt
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20181115/b16b7c49/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dpi-4.20-rc2-c.txt
URL: <http://lists.goldelico.com/pipermail/letux-kernel/attachments/20181115/b16b7c49/attachment-0003.txt>
-------------- next part --------------







More information about the Letux-kernel mailing list