Page MenuHomeFreeBSD

riscv: enable allwinner RTC
ClosedPublic

Authored by mhorne on May 15 2025, 6:17 PM.
Tags
None
Referenced Files
F139507801: D50369.diff
Fri, Dec 12, 9:16 PM
F139496719: D50369.diff
Fri, Dec 12, 6:34 PM
Unknown Object (File)
Thu, Dec 11, 6:00 PM
Unknown Object (File)
Mon, Dec 1, 10:17 PM
Unknown Object (File)
Fri, Nov 28, 12:45 PM
Unknown Object (File)
Thu, Nov 27, 3:34 PM
Unknown Object (File)
Thu, Nov 27, 2:59 PM
Unknown Object (File)
Wed, Nov 26, 3:43 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 64208
Build 61092: arc lint + arc unit

Event Timeline

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

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.