[FS#4193] sunxi-h5 kernel defconfigs missing CONFIG_RTC_DRV_SUN6I=y for i2c to work
openwrt-bugs at lists.openwrt.org
Sat Dec 18 21:01:42 PST 2021
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Rajko Stojadinovic (rajkosto)
Attached to Project - OpenWrt/LEDE Project
Summary - sunxi-h5 kernel defconfigs missing CONFIG_RTC_DRV_SUN6I=y for i2c to work
Task Type - Bug Report
Category - Kernel
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - The dtb that ships with openwrt contains for orangepi-pc2 contains the rtc device, i2c devices like the sy8106a voltage regulator, but they cannot be used in the kernel because this CONFIG_RTC_DRV_SUN6I=n so the i2c clock cannot be initialized.
I assume this is an oversight because it was not known that the RTC driver is required for i2c to work ? If i2c was not supposed to work, then drivers for sy8106a and also CPU_FREQ should also be =n to not waste space as they cannot be used.
Setting CONFIG_RTC_DRV_SUN6I=y in kernel_menuconfig allows i2c to be used, so cat /sys/kernel/debug/regulator/regulator_summary shows all the voltage regulators in the dtb, and with a small dtb patch (just adding the operational settings include to all h5 device dtbs that use sy8016a, like here https://github.com/armbian/build/blob/master/patch/kernel/archive/sunxi-5.10/sun50i-h5-add-cpu-opp-refs.patch), full DVFS can be enabled via cpufreq governors (which are already baked in) and it works perfectly.
More information can be found at the following URL:
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the openwrt-bugs