Page MenuHomeFreeBSD

riscv: enable allwinner RTC
Needs ReviewPublic

Authored by mhorne on Thu, May 15, 6:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 18, 8:00 PM
Unknown Object (File)
Sat, May 17, 4:03 PM
Subscribers

Details

Reviewers
mmel
manu
andrew
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.