Re: [PATCH v2] clk: at91: utmi: set the mainck rate

2017-09-04 Thread Ludovic Desroches
On Mon, Sep 04, 2017 at 07:53:57PM +0200, Ingo van Lil wrote: > On 09/04/2017 11:52 AM, Ludovic Desroches wrote: > > > + /* SFR node missing is not necessarily an issue. */ > > + regmap_sfr = syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr"); > > + if (IS_ERR(regmap_sfr)) > > +

Re: [PATCH v2] clk: at91: utmi: set the mainck rate

2017-09-04 Thread Ingo van Lil
On 09/04/2017 11:52 AM, Ludovic Desroches wrote: > + /* SFR node missing is not necessarily an issue. */ > + regmap_sfr = syscon_regmap_lookup_by_compatible("atmel,sama5d2-sfr"); > + if (IS_ERR(regmap_sfr)) > + regmap_sfr = NULL; What about SAMA5D3? That chip has an UTMICK

[PATCH v2] clk: at91: utmi: set the mainck rate

2017-09-04 Thread Ludovic Desroches
By default, it is assumed that the UTMI clock is generated from a 12 MHz reference clock (MAINCK). If it's not the case, the FREQ field of the SFR_UTMICKTRIM has to be updated to generate the UTMI clock in the proper way. The UTMI clock has a fixed rate of 480 MHz. In fact, there is no multiplier