On Wed, Oct 07, 2026 at 11:33:04AM +0800, Zhuxu Ran wrote: > The CV1800B RTC subsystem contains a seconds counter and system reset > controls in a shared register range. U-Boot currently binds the system > reset driver from Milk-V Duo board code and accesses fixed MMIO addresses. > The upstream devicetrees describe this subsystem with an RTC node, but > U-Boot has no driver matching that node. > > Add an RTC driver for the seconds counter, bind the existing system reset > driver as its child, and obtain the reset register range from the shared > devicetree node. Keep the existing reset requests unchanged, including > the warm-reset sequence currently used for SYSRESET_COLD. > > This series depends on the CV18xx upstream-devicetree conversion sent > as v5. > > Tested on Milk-V Duo, Milk-V Duo 256M and LicheeRV Nano. > > Signed-off-by: Zhuxu Ran <[email protected]>
Thanks for the patches. For the series: Reviewed-by: Hiago De Franco <[email protected]> > --- > Changes in v3: > - Rename the RTC driver file to cv1800b.c to match the RTC directory > convention. > - Align the CV1800B sysreset register and request-bit definitions. > - Use uppercase hexadecimal digits in the sysreset driver. > - Link to v2: > https://patch.msgid.link/[email protected] > > Changes in v2: > - Use CV1800B consistently in the RTC driver filename and identifiers. > - Link to v1: > https://patch.msgid.link/[email protected] > > --- > Zhuxu Ran (3): > rtc: cv1800b: Add seconds counter support > riscv: sophgo: Enable RTC-backed system reset > sysreset: cv1800b: Use the RTC device node for register access > > board/sophgo/milkv_duo/board.c | 5 -- > configs/milkv_duo_256m_defconfig | 2 + > configs/milkv_duo_defconfig | 2 + > configs/sipeed_licheerv_nano_defconfig | 2 + > drivers/rtc/Kconfig | 9 +++ > drivers/rtc/Makefile | 1 + > drivers/rtc/cv1800b.c | 123 > +++++++++++++++++++++++++++++++++ > drivers/sysreset/Kconfig | 6 +- > drivers/sysreset/sysreset_cv1800b.c | 90 +++++++++++++++--------- > 9 files changed, 199 insertions(+), 41 deletions(-) > --- > base-commit: a06e89ab05eaa2b8344d521319399333cd760ae5 > change-id: 20260929-cv18xx-rtc-sysreset-b816e6306348 > prerequisite-message-id: > <[email protected]> > prerequisite-patch-id: b8e6815314b7881a02de0066232864d522c4a26c > prerequisite-patch-id: 0df1fa5db1b2bff402b429809796bad99a517483 > prerequisite-patch-id: 49e1e8263cf0a5ba8d63c8b598b6382cde5284b2 > prerequisite-patch-id: 86dd30e784f022f0a7bb6fbf125c9699467176d4 > prerequisite-patch-id: 49070c05ecf58331ec519a57d1b82f8b2b835a89 > prerequisite-patch-id: 6b6881e45cc6de6544aaa4509db21611158f4fa1 > prerequisite-patch-id: 7198127d4602eeb14212087ce9bb694d84e71a4c > prerequisite-patch-id: 3a58bd8a061707ff27b8538d4897def3b595dc36 > prerequisite-patch-id: 9055ea941b73e35d1e825787d7eca14ffceb8e8b > prerequisite-patch-id: 554c1487e8d596e0099677ca88eee0021b1ffbae > > Best regards, > -- > Zhuxu Ran <[email protected]> > Best regards, -- Hiago
