From: Nam Cao <namcao@linutronix.de>
To: opensbi@lists.infradead.org
Subject: [PATCH 1/2] platform: starfive: correct system clock device tree node
Date: Wed, 17 Jan 2024 13:03:25 +0100 [thread overview]
Message-ID: <20240117130325.65e71fdd@namcao> (raw)
In-Reply-To: <CAEn-LTq9iXg--zvTdn=g1G=2EH9vPFHphXj0pRVon8XCdRsh-A@mail.gmail.com>
On Wed, 17 Jan 2024 13:47:13 +0200 David Abdurachmanov <david.abdurachmanov@gmail.com> wrote:
> On Wed, Jan 17, 2024 at 1:33?PM Xiang W <wxjstz@126.com> wrote:
> >
> > ? 2024-01-17???? 12:16 +0100?Nam Cao???
> > > Starfive names the system clock device tree node "starfive,jh7110-clkgen"
> > > in all their git repositories. However, a different name is used in
> > > upstream U-Boot (and also Linux): "starfive,jh7110-syscrg". Since
> > > OpenSBI gets the device tree from U-Boot, this inconsistency leads the
> > > problem that OpenSBI doesn't know the system clock device exists.
> > >
> > > Correct this name to keep the consistency.
> > This sounds like a problem of u-boot. Directly replacing compatible strings is
> > not a good way. It is best to try another compatible string after the search
> > fails.
>
> At a quick glance there are no approved bindings for
> starfive,jh7110-clkgen. There are bindings for starfive,jh7110-syscrg
> in the Linux tree. IIUC v1 patch to add bindings referenced
> starfive,jh7110-clkgen compatible, but that's no what landed. U-Boot
> is supposed to regularly sync their DTS from the kernel tree.
>
> Most likely OpenSBI stuff was merged before bindings got officially
> approved in the Linux tree.
This is also what I think: this stuff is merged to OpenSBI too early.
However, this patch breaks OpenSBI's compatibility with Starfive's U-Boot.
So the question is whether we should keep the compatibility with both
upstream U-Boot and Starfive's U-Boot, or just the upstream one. I would
say being compatible with upstream U-Boot is sufficient.
That said, if anyone insists on keeping the compatibility with Starfive's
U-Boot too, I can send a v2.
Best regards,
Nam
prev parent reply other threads:[~2024-01-17 12:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 11:16 [PATCH 1/2] platform: starfive: correct system clock device tree node Nam Cao
2024-01-17 11:16 ` [PATCH 2/2] platform: starfive: get I2C offset address from clocks property Nam Cao
2024-01-18 4:57 ` Xiang W
2024-01-17 11:32 ` [PATCH 1/2] platform: starfive: correct system clock device tree node Xiang W
2024-01-17 11:47 ` David Abdurachmanov
2024-01-17 12:03 ` Nam Cao [this message]
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=20240117130325.65e71fdd@namcao \
--to=namcao@linutronix.de \
--cc=opensbi@lists.infradead.org \
/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