U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Eichenberger <eichest@gmail.com>
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>
Cc: trini@konsulko.com, ilias.apalodimas@linaro.org,
	peng.fan@nxp.com, jh80.chung@samsung.com,
	tanmay.kathpalia@altera.com, sbabic@nabladev.com,
	festevam@gmail.com, uboot-imx@nxp.com,
	francesco.dolcini@toradex.com, lukma@nabladev.com,
	dlechner@baylibre.com, msp@baylibre.com,
	stefan.eichenberger@toradex.com, Max.Merchel@ew.tq-group.com,
	nora.schiffer@ew.tq-group.com, primoz.fiser@norik.com,
	jbx6244@gmail.com, aford173@gmail.com,
	cniedermaier@dh-electronics.com, u-boot@lists.u-boot-project.org
Subject: Re: [PATCH v1 4/7] clk: imx: imx6ul: add the enet clock tree
Date: Wed, 25 Nov 2026 18:34:28 +0100	[thread overview]
Message-ID: <awccJPMFok5udt7D@eichest-laptop> (raw)
In-Reply-To: <20261125095652.28340-1-peng.fan@oss.nxp.com>

Hi Peng,

On Wed, Nov 25, 2026 at 05:56:51PM +0800, Peng Fan (OSS) wrote:
> >  
> > @@ -276,6 +331,17 @@ static int imx6ul_clk_probe(struct udevice *dev)
> >  
> >  	clk_set_parent(clk, clk1);
> >  
> > +	/* Take PLL6 out of bypass, the ENET reference clocks need 500 MHz */
> > +	clk_get_by_id(IMX6UL_PLL6_BYPASS, &clk);
> > +	clk_get_by_id(IMX6UL_CLK_PLL6, &clk1);
> > +
> > +	clk_set_parent(clk, clk1);
> > +
> > +	clk_get_by_id(IMX6UL_CLK_ENET_REF, &clk);
> > +	clk_set_rate(clk, 50000000);
> > +	clk_get_by_id(IMX6UL_CLK_ENET2_REF, &clk);
> > +	clk_set_rate(clk, 50000000);
> 
> Could we use assigned-clock-rates/parents for these?

Yes it would be possible to use assigned-clock-rates/parents, but I
think it is better to set the ENET reference clocks to 50 MHz in the
driver.

The Linux driver is also setting the parents and the rate in the driver,
that's why it is missing in the imx6ul.dtsi file. That would mean we
have to add a -u-boot.dtsi for every board where we want to have the
ENET reference clocks set to 50 MHz which is probably the case for all
boards.

We already set the parent for PLL_PFD2 in the same way, so it's at least
not completely inconsistent.

For me not having to add a -u-boot.dtsi for every board is be a big
advantage over using assigned-clock-rates/parents. Let me know if you
think otherwise.

Regards,
Stefan

  reply	other threads:[~2026-11-25 18:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 11:10 [PATCH v1 0/7] colibri-imx6ull: fix the Ethernet PHY detection Stefan Eichenberger
2026-11-20 11:10 ` [PATCH v1 1/7] clk: imx: imx6ul: fix the enet clock gate register Stefan Eichenberger
2026-11-20 11:10 ` [PATCH v1 2/7] clk: imx: pllv3: wait for the ENET PLL to lock Stefan Eichenberger
2026-11-20 11:10 ` [PATCH v1 3/7] clk: imx: pllv3: do not touch the ENET output gate Stefan Eichenberger
2026-11-20 11:10 ` [PATCH v1 4/7] clk: imx: imx6ul: add the enet clock tree Stefan Eichenberger
2026-11-25  9:56   ` Peng Fan (OSS)
2026-11-25 17:34     ` Stefan Eichenberger [this message]
2026-11-20 11:10 ` [PATCH v1 5/7] board: toradex: colibri-imx6ull: drop the static serial device Stefan Eichenberger
2026-11-20 11:10 ` [PATCH v1 6/7] arm: dts: imx6ull-colibri: migrate to OF_UPSTREAM Stefan Eichenberger
2026-11-20 11:10 ` [PATCH v1 7/7] board: toradex: colibri-imx6ull: enable the clock framework Stefan Eichenberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awccJPMFok5udt7D@eichest-laptop \
    --to=eichest@gmail.com \
    --cc=Max.Merchel@ew.tq-group.com \
    --cc=aford173@gmail.com \
    --cc=cniedermaier@dh-electronics.com \
    --cc=dlechner@baylibre.com \
    --cc=festevam@gmail.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jbx6244@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=lukma@nabladev.com \
    --cc=msp@baylibre.com \
    --cc=nora.schiffer@ew.tq-group.com \
    --cc=peng.fan@nxp.com \
    --cc=peng.fan@oss.nxp.com \
    --cc=primoz.fiser@norik.com \
    --cc=sbabic@nabladev.com \
    --cc=stefan.eichenberger@toradex.com \
    --cc=tanmay.kathpalia@altera.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.u-boot-project.org \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox