FS#4190 - sunxi-h5 kernel defconfigs missing CONFIG_RTC_DRV_SUN6I=y for i2c to work #9170
Labels
flyspray
kernel
pull request/issue with Linux kernel related changes
release/21.02
pull request/issue targeted (also) for OpenWrt 21.02 release
target/sunxi
pull request/issue for sunxi target
rajkosto:
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.
The text was updated successfully, but these errors were encountered: