public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: Kuan-Wei Chiu <visitorckw@gmail.com>,
	alison.wang@nxp.com, angelo@kernel-space.org, me@ziyao.cc,
	daniel@0x0f.com, heinrich.schuchardt@canonical.com,
	jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com,
	u-boot@lists.denx.de
Subject: Re: [PATCH v5 3/7] rtc: goldfish: Support platform data for non-DT probing
Date: Tue, 6 Jan 2026 10:58:04 -0600	[thread overview]
Message-ID: <20260106165804.GG3416603@bill-the-cat> (raw)
In-Reply-To: <CAFLszTjW=wwSh-+MowTCaNLJQ_O6HninAJXrd_MQuuUEKd5Zyg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2637 bytes --]

On Tue, Jan 06, 2026 at 09:22:01AM -0700, Simon Glass wrote:
> Hi Tom,
> 
> On Mon, 5 Jan 2026 at 16:47, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Mon, Jan 05, 2026 at 04:30:26PM -0700, Simon Glass wrote:
> > > Hi Kuan-Wei,
> > >
> > > On Mon, 5 Jan 2026 at 11:20, Kuan-Wei Chiu <visitorckw@gmail.com> wrote:
> > > >
> > > > Currently, the Goldfish RTC driver exclusively relies on device tree
> > > > to retrieve the base address, failing immediately if dev_read_addr()
> > > > returns FDT_ADDR_T_NONE. This restriction prevents the driver from
> > > > being used on platforms that instantiate devices via U_BOOT_DRVINFO()
> > > > instead of device tree, such as the QEMU m68k virt machine.
> > > >
> > > > Add support for platform data to address this limitation. Update the
> > > > probe function to fall back to retrieving the base address from
> > > > struct goldfish_rtc_plat if the device tree address is unavailable.
> > > > Introduce a new header file include/goldfish_rtc.h to define the
> > > > platform data structure.
> > > >
> > > > Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
> > > > Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > > ---
> > > > Changes in v5:
> > > > - Rebase on u-boot/next branch.
> > > >
> > > >  drivers/rtc/goldfish_rtc.c | 13 ++++++++++---
> > > >  include/goldfish_rtc.h     | 15 +++++++++++++++
> > > >  2 files changed, 25 insertions(+), 3 deletions(-)
> > > >  create mode 100644 include/goldfish_rtc.h
> > > >
> > >
> > > You can package your own devicetree in the U-Boot source, to handle
> > > what you need.
> >
> > That's not helpful feedback here, the correct path is to use the machine
> > as QEMU provides it and not start yet another pointless argument with
> > QEMU. And this probably applies to some of your other feedback as well,
> > thanks.
> 
> From what I understand, QEMU does not use DT for m68k. If it did, then
> we would not be using platdata. Am I missing something here?

Yes, we don't want to add something here in U-Boot that won't be
generally useful. Since it sounds like Daniel has a plan to move
forward, that's the direction to head.

> Regards,
> Simon
> 
> PS: The QEMU thing was certainly not pointless, even if the 'argument'
> resolved nothing. We still have this work-around in the docs, 4 years
> and counting:
> 
> https://docs.u-boot.org/en/latest/develop/devicetree/dt_qemu.html#merging-in-u-boot-nodes-properties

I've not un-documented your specific workaround for your use-case, that
is true. I also don't know of anyone else using that.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-01-06 16:58 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-05 16:52 [PATCH v5 0/7] m68k: Add support for QEMU virt machine Kuan-Wei Chiu
2026-01-05 16:52 ` [PATCH v5 1/7] serial: Add Goldfish TTY driver Kuan-Wei Chiu
2026-01-05 23:30   ` Simon Glass
2026-01-06 19:25     ` Kuan-Wei Chiu
2026-01-07 10:59   ` Angelo Dureghello
2026-01-05 16:52 ` [PATCH v5 2/7] timer: Add Goldfish timer driver Kuan-Wei Chiu
2026-01-05 23:30   ` Simon Glass
2026-01-07 11:07   ` Angelo Dureghello
2026-01-05 16:52 ` [PATCH v5 3/7] rtc: goldfish: Support platform data for non-DT probing Kuan-Wei Chiu
2026-01-05 23:30   ` Simon Glass
2026-01-05 23:47     ` Tom Rini
2026-01-06  0:58       ` Daniel Palmer
2026-01-06  1:49         ` Tom Rini
2026-01-06 16:22       ` Simon Glass
2026-01-06 16:58         ` Tom Rini [this message]
2026-01-05 16:52 ` [PATCH v5 4/7] m68k: Add support for M68040 CPU Kuan-Wei Chiu
2026-01-05 23:30   ` Simon Glass
2026-01-06 19:38     ` Kuan-Wei Chiu
2026-01-05 16:52 ` [PATCH v5 5/7] board: Add QEMU m68k virt board support Kuan-Wei Chiu
2026-01-05 23:30   ` Simon Glass
2026-01-06 19:22     ` Kuan-Wei Chiu
2026-01-05 16:52 ` [PATCH v5 6/7] CI: Add test jobs for QEMU m68k virt machine Kuan-Wei Chiu
2026-01-05 23:30   ` Simon Glass
2026-01-05 16:52 ` [PATCH v5 7/7] MAINTAINERS: Update m68k entry Kuan-Wei Chiu
2026-01-07 14:37   ` Angelo Dureghello
2026-01-08 18:52   ` Maciej W. Rozycki

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=20260106165804.GG3416603@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=alison.wang@nxp.com \
    --cc=angelo@kernel-space.org \
    --cc=daniel@0x0f.com \
    --cc=eleanor15x@gmail.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=jserv@ccns.ncku.edu.tw \
    --cc=me@ziyao.cc \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    --cc=visitorckw@gmail.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