[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-18 Thread Andrey Lebedev
On Mon, Feb 17, 2020 at 06:51:35PM +0100, Maxime Ripard wrote: > > diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h > > b/drivers/gpu/drm/sun4i/sun4i_tcon.h > > index cfbf4e6c1679..bc87d28ee341 100644 > > --- a/drivers/gpu/drm/sun4i/sun4i_tcon.h > > +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h > > @@

Re: [linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-18 Thread Andrey Lebedev
@lex, to get timings for panel you need to follow instructions on https://linux-sunxi.org/LCD (see "FEX conversion rules"). I understand that's pretty boring, but that's the only reliable way I know. I would recommend to start by making your panel to work under u-boot. U-boot has to be

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-17 Thread @lex
Hi Andrey, I have found my fex file for an 18.4" Panel. I have a hard time to figure out how to enable the dual channel in the dts, can you have a look at it and help how to enable it? Here are the timings: [lcd0_para] lcd_used = 1 lcd_x = 1920 lcd_y = 1080 lcd_dclk_freq = 69 lcd_pwm_not_used

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-17 Thread @lex
Hi Andrey, Thank you for sharing your work. I can remember 2 channel was needed for the 1920x1080 res. in fact the panel is 17" I need to find the fex files, must be somewhere here... :) I will try with your kernel and see what i get. Busy weekend ahead... I will post the results. BR @lex

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-16 Thread Andrey Lebedev
On Saturday, February 15, 2020 at 4:20:33 PM UTC+2, @lex wrote: > > Hi Andrey, > > I have a couple of 15" LCDs (different makers) with Cubieboard A20 (kernel > 3.4) i would like to test your implementation if possible. > Can you share a kernel tree with your code and where should i change the >

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-15 Thread @lex
Hi Andrey, I have a couple of 15" LCDs (different makers) with Cubieboard A20 (kernel 3.4) i would like to test your implementation if possible. Can you share a kernel tree with your code and where should i change the timings for each Panel? BR @lex On Wednesday, February 12, 2020 at 7:25:41

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-14 Thread Andrey Lebedev
On Fri, Feb 14, 2020 at 09:53:51AM +0100, Maxime Ripard wrote: > On Fri, Feb 14, 2020 at 10:43:58AM +0200, Andrey Lebedev wrote: > > On Fri, Feb 14, 2020 at 08:52:18AM +0100, Maxime Ripard wrote: > > > > > This will create a spurious warning message for TCON1, since we > > > > > adjusted the

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-14 Thread Andrey Lebedev
On Fri, Feb 14, 2020 at 08:52:18AM +0100, Maxime Ripard wrote: > > > This will create a spurious warning message for TCON1, since we > > > adjusted the driver to tell it supports LVDS, but there's no LVDS > > > reset line, so we need to make it finer grained. > > > > Yes, I can attribute two of

[linux-sunxi] Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20

2020-02-13 Thread Andrey Lebedev
On Thu, Feb 13, 2020 at 10:43:04AM +0100, Maxime Ripard wrote: > On Thu, Feb 13, 2020 at 12:23:57AM +0200, andrey.lebe...@gmail.com wrote: > > From: Andrey Lebedev > > > > Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and > > provide sample LVDS panel, connected to tcon0.