void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.59k stars 2.15k forks source link

rtc_rk808 driver is currently missing in Linux6.5 #46194

Open ghost opened 1 year ago

ghost commented 1 year ago

Is this a new report?

Yes

System Info

Void 6.5.4_1 aarch64 Unknown uptodate hold rDFF

Package(s) Affected

linux6.5

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

The system clock shows the correct time. The system is also able to establish an internet connection.

Actual behaviour

The system time is set to the 1st of January 1970. The system cannot establish an internet connection.

Steps to reproduce

Install linux6.5:

sudo xbps-install linux6.5

boot linux6.5 when rebooting.

The issue here is that Linux6.5 does not have CONFIG_RTC_DRV_RK808=m but Linux6.4 does, which is why the listed issues do not happen there.

The driver behind this is called rtc_rk808 and is used and needed on the Pine64 RockPro64 for example. Please enable this option in the kernel. Thank you very much!

ghost commented 1 year ago

the RockPro64 uses more drivers: rk808_regulator clk_rk808 rtc_rk808 rk808

rk808.c got deleted: https://github.com/torvalds/linux/tree/master/drivers/mfd/rk808.c

But support for rk817 is coming in: https://github.com/torvalds/linux/blob/master/drivers/mfd/rk8xx-core.c