Page MenuHomeFreeBSD

riscv: enable allwinner RTC
ClosedPublic

Authored by mhorne on May 15 2025, 6:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 23, 11:46 AM
Unknown Object (File)
Fri, Oct 17, 7:05 AM
Unknown Object (File)
Mon, Oct 13, 12:20 PM
Unknown Object (File)
Mon, Oct 13, 12:20 PM
Unknown Object (File)
Mon, Oct 13, 12:20 PM
Unknown Object (File)
Sun, Oct 12, 11:43 PM
Unknown Object (File)
Sun, Oct 12, 12:58 PM
Unknown Object (File)
Thu, Oct 9, 11:51 AM
Subscribers

Details

Summary

(Second attempt.)

For the Allwinner D1 (Nehza) SBC.

This RTC driver is also a clock provider, which registers two fixed
clocks. In all the devices we currently support, the names of the clocks
are present in the "clock-output-names" property of the device tree.
This is not the case for the D1 DTS, as this property does not appear in
upstream. Therefore the clock definitions are statically assigned a
name, which is overridden when specified.

The driver also supports the older A10/A20 models, which don't export
any clocks. Ensure this case is handled properly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/arm/allwinner/aw_rtc.c
257–275

According to the specs (Bindings/rtc/allwinner,sun4i-a10-rtc.yaml, Bindings/rtc/allwinner,sun6i-a31-rtc.yaml) this check should be sufficient to ensure we avoid regressions on A10/A20, like reported previously.

I am back after some time away. I plan to commit this soon, so, last chance to look :)

This revision is now accepted and ready to land.Jul 3 2025, 7:07 AM
This revision was automatically updated to reflect the committed changes.