Hi Tom, On Mon, 5 Jan 2026 at 16:47, Tom Rini <[email protected]> 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 <[email protected]> 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 <[email protected]> > > > Reviewed-by: Heinrich Schuchardt <[email protected]> > > > --- > > > 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? 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

