public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Michael Walle" <mwalle@kernel.org>
To: "Vladimir Oltean" <olteanv@gmail.com>
Cc: "Tom Rini" <trini@konsulko.com>,
	"Ashish Kumar" <Ashish.kumar@nxp.com>,
	"Priyanka Jain" <priyanka.jain@nxp.com>,
	"Kuldeep Singh" <kuldeep.singh@nxp.com>, <u-boot@lists.denx.de>
Subject: Re: [PATCH 3/3] armv7: ls102xa: fix SPI flash clock
Date: Thu, 19 Mar 2026 15:24:54 +0100	[thread overview]
Message-ID: <DH6TT2ZV6049.33QOAOWOYSDWL@kernel.org> (raw)
In-Reply-To: <20260319141112.3mcbxhhuh5ougbjb@skbuf>

Hi,

On Thu Mar 19, 2026 at 3:11 PM CET, Vladimir Oltean wrote:
> Reviewed-by: Vladimir Oltean <olteanv@gmail.com>

Thanks!

> I think we have a problem in the RCW as well.
> https://github.com/nxp-qoriq/rcw/blob/devel/ls1021atsn/SSR_PNS_30/rcw_1200_qspiboot.rcw#L8
> Those values should be interpreted as bit reversed (so 0x00000803 is
> 0xC0100000, i.e. the same value as U-Boot used to write prior to commit
> bb6f3c0f7634 ("armv7: ls102xa: Update SCFG_QSPI_CLKSEL value")).
>
> They are reversed because we write to SCFG_QSPI_CFG prior to writing to
> SCFG_SCFGREVCR. In fact the documentation says about the SCFG bit
> reverse register "This register must be written 0xFFFF_FFFF as a part of
> initialization sequence before writing to any other SCFG register."
>
> So it seems the QSPI clock frequency might be already out of range
> before U-Boot brings it in range with your patch still.

Yes, I've noticed that too. But we have our own repo of the RCWs for
our boards. But yeah, we've basically copied NXPs values. So the
60MHz speed is still lurking there. But instead of the 75MHz, 60MHz
seems to at least work (and nobody noticed).

> I can take additional RCW patches if you're willing to send them.

As said above, we have our own repo that isn't a fork of NXPs.

> Plus, I see since commit ba89878d7029 ("armv7: ls102xa: make QSPI clock
> selection optional during SoC init") that SYS_FSL_QSPI_SKIP_CLKSEL is an
> option too, maybe that's of interest.

I've seen that, but haven't looked further why there is that option.
Probably, to keep any custom clksel value ;)

-michael

  reply	other threads:[~2026-03-19 14:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-18 14:29 [PATCH 0/3] arm: Give the LS1021ATSN board some love Michael Walle
2026-03-18 14:29 ` [PATCH 1/3] arm: dts: ls1021a-tsn: add default serial output Michael Walle
2026-03-18 14:29 ` [PATCH 2/3] configs: ls1021atsn: enable serial driver Michael Walle
2026-03-19 14:19   ` Vladimir Oltean
2026-03-19 14:25     ` Tom Rini
2026-03-19 14:54       ` Tom Rini
2026-03-18 14:29 ` [PATCH 3/3] armv7: ls102xa: fix SPI flash clock Michael Walle
2026-03-19 14:11   ` Vladimir Oltean
2026-03-19 14:24     ` Michael Walle [this message]
2026-03-30 13:13       ` Michael Walle
2026-03-23  6:29 ` [PATCH 0/3] arm: Give the LS1021ATSN board some love Peng Fan

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=DH6TT2ZV6049.33QOAOWOYSDWL@kernel.org \
    --to=mwalle@kernel.org \
    --cc=Ashish.kumar@nxp.com \
    --cc=kuldeep.singh@nxp.com \
    --cc=olteanv@gmail.com \
    --cc=priyanka.jain@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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