[PATCH RFC 1/2] clk: sunxi: Add sun8i display support
Jean-Francois Moine
moinejf at free.fr
Thu Jan 28 06:55:14 PST 2016
On Wed, 27 Jan 2016 22:50:51 +0100
Maxime Ripard <maxime.ripard at free-electrons.com> wrote:
> Hi,
>
> On Tue, Jan 19, 2016 at 09:09:01AM +0100, Jean-Francois Moine wrote:
> > On Mon, 18 Jan 2016 20:09:04 +0100
> > Maxime Ripard <maxime.ripard at free-electrons.com> wrote:
[snip]
> > > We have the clk-factors stuff to handle this easily, could you use
> > > that instead ?
> >
> > No, the sun6i/8i pll3 offers direct 297MHz and 270MHz.
>
> That's true, but so far it's something that never has been really
> needed. This PLL is not the same one using the fractional mode, so I
> guess we could extend the clk-factors to be able to deal with
> that. The video pll in the A10 (pll3) is also in this case, so does
> the A31 PLL3 and PLL4.
>
> Also note that all these clocks can reach those frequencies through
> what allwinner calls the integer mode, so apart from the hardware
> readout, we don't really need it anyway.
Maybe it is too simple! 297MHz is the PLL3 frequency which can be used
for most video modes. And, so, as it is the default value, in my tests,
I never saw the PLL3 set_rate function being called.
[snip]
> > Otherwise, about this old RFC, Chen-Yu Tsai replied:
> >
> > > > Add the clock types which are used by the sun8i family for video.
> > >
> > > These clocks first appeared in the A31.
>
> The video PLL is, the display engine and tcon clocks are a bit
> different (mostly because of their weird parent configuration that
> need a muxing table). Note that I'm talking about the A23 / A33. I
> haven't checked for the H3.
The TCONs of the A23/A33 and H3 SoCs are quite the same.
The display engines 2 of the H3/A64/A83T are the same and they ask for
a fixed clock (432MHz).
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
More information about the linux-arm-kernel
mailing list