Re: [linux-sunxi] Re: [RFC PATCH] ARM: dts: sun8i: add simplefb node for H3

From: Maxime Ripard
Date: Thu Dec 01 2016 - 03:50:58 EST


On Thu, Dec 01, 2016 at 10:02:59AM +0800, Icenowy Zheng wrote:
>
>
> 01.12.2016, 04:52, "Maxime Ripard" <maxime.ripard@xxxxxxxxxxxxxxxxxx>:
> > On Wed, Nov 30, 2016 at 09:41:26PM +0100, Jernej Åkrabec wrote:
> >> Â> > > > The only
> >> Â> > > > code left from you is for DE2. HDMI stuff is basically copied from
> >> Â> > > > Rockhip
> >> Â> > > > driver (including EDID reading), TCON code is now reverted to the same
> >> Â> > > > as
> >> Â> > > > it is in sunxi_display.c. I think it is worth to take a look at EDID
> >> Â> > > > code
> >> Â> > > > and compare it.
> >> Â> > >
> >> Â> > > So is the TCON of DE 2.0 identical to the original TCON?
> >> Â> > >
> >> Â> > > If so, we should reuse sun4i-tcon ...
> >> Â> >
> >> Â> > Well, TCON is splitted in two parts (two base addresses), one for HDMI and
> >> Â> > one for TV. However, register offsets are same as before, so I guess
> >> Â> > driver reusage make sense. I think that there are few additional
> >> Â> > registers, but they can be ignored for simplefb.
> >> Â>
> >> Â> The TCON1 of the H3 is not usable (no ckock). Analog TV has its own
> >> Â> clock and I/O area.
> >> Â>
> >>
> >> ÂTrue, H3 user manual can be misleading sometimes. But this doesn't change the
> >> Âfact that TCON0 has same register offsets with same meaning.
> >
> > Then yes, we should definitely share the drivers too. So, in the end,
> > the only thing that is actually new is the display-engine?
>
> And HDMI PHY on H3 ;-)

Yes, and that one :)

> In my opinion, we should just put sun8i-de2-drm related code into
> drivers/gpu/drm/sun4i/ . (Or rename the directory to sunxi)

We should definitely reuse the drivers that are already in there for
the TCON and HDMI parts.

I'd have to look at the exact amount of code that would be needed to
support the new display engine, but I guess if it's big, then a
separate folder makes sense, if it isn't, then putting it in sun4i
makes sense (but I'm reluctant to renaming it to sunxi).

Maxime

--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Attachment: signature.asc
Description: PGP signature