Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#4190 - sunxi-h5 kernel defconfigs missing CONFIG_RTC_DRV_SUN6I=y for i2c to work #9170

Open
openwrt-bot opened this issue Dec 19, 2021 · 1 comment
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

Comments

@openwrt-bot
Copy link

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.

@aparcar aparcar added the kernel pull request/issue with Linux kernel related changes label Feb 22, 2022
@ynezz ynezz added target/sunxi pull request/issue for sunxi target release/21.02 pull request/issue targeted (also) for OpenWrt 21.02 release labels Mar 7, 2022
@ynezz
Copy link
Member

ynezz commented Mar 7, 2022

Should be fixed in snapshot via d6c5bb6 so it should be backported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants