[PATCH v2 2/4] rtc: Add StarFive JH7110 RTC driver
Owen O'Hehir
oo.hehir at gmail.com
Mon Nov 9 07:44:25 PST 2026
Hi E,
Thanks for the review.
> Is this copyrighted work from previous year 2021 being imported without
> modification?
>
> If there is modification then I would assume it needs appended your
> authorship and the current year 2026.
It is modified, so v3 adds my copyright line below StarFive's.
> Align 8-char tab stops per Linux coding style, and then tidy up the
> extra junk clearspace on some of the defines
The values line up in the file; in the patch the leading '+' pushes a
few of them (TIME, DATE, CFG_HOUR_24H, SW_CAL_VALUE, EVENT_UPDATE) one
tab out. The extra space before some names marks them as bit fields of
the register above; as it reads as noise, v3 drops it.
> I note that JH7100 does not mention RTC in its datasheet. Does JH7110
> RTC have any commonality with JHB100 and if so then would rtc-starfive
> be a more suitable name for the code filename and module?
The JHB100 clock and reset bindings do name an RTC clock and reset,
under its Peripheral-2 clock and reset generator alongside CAN and
GMAC, whose inputs include no 32 kHz clock; the JH7110 RTC is in the
always-on domain. I searched for JHB100 documentation but found nothing
on its RTC beyond those names, so I cannot say whether the block is the
same. I would keep the jh7110 name, after the first SoC supported; if
the JHB100 turns out to use the same block, it can reuse the driver with
its own compatible. That is what the pending JHB100 TRNG series does
with jh7110-trng.c. I would appreciate advice from Hal or anyone who
knows whether the JHB100 RTC is the same IP.
> Review use of authorship macros as appropriate. This may be okay as-is.
The driver is derived from the StarFive one, so I kept its authors and
will leave these as they are.
Owen
More information about the linux-riscv
mailing list