-
Notifications
You must be signed in to change notification settings - Fork 3
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
deprecated? #2
Comments
Not maintained (because I don't use the only A20/AXP209 board anymore) but should still work, though may require adjusting for newer kernels.
This is a kernel patch, but yes, it lives in this repository.
This patch applies to the MFD driver in drivers/mfd/axp20x.c in the mainline kernel tree. Other (newer) drivers are in drivers/power/supply/axp20x_battery.c, drivers/power/supply/axp20x_ac_power.c, drivers/power/supply/axp20x_usb_power.c, drivers/input/misc/axp20x-pek.c and I think there are some other bits somewhere. |
Thanks for the reply! So this patch should add the sysfs interface right? The one in /sys/power/axp_pmu ? This patch does not cover battery max voltage right? (reg33) My problem is that I can't find other sysfs files than the ones generated by this patch. I'm not sure but I think there should be others sysfs folder no? Quentin Schulz who worked on some of these axp drivers suggested to use /sys/class/power_supply/voltage_max_design to change battery max voltage. But this does not exist. Do you know how to use those drivers axp20x.c axp20x_battery.c ..? Btw I opened a thread on armbian forum to discuss the matter : https://forum.armbian.com/topic/10834-axp209-proper-driver/ |
Yes.
Yes, those functions are not implemented.
First, those drivers need to be enabled in the kernel at the compilation time (i.e. Those drivers should add nodes to
I didn't test shutdown from u-boot at the time (as why would you ever want to interact with u-boot shutdown outside of debugging?), the main problem with battery detection was(is) in the kernel here - it should use regmap_update_bits() instead of regmap_write() |
Thanks for the tips about adding to dts. I had not added them, that's why I did not got the sysfs! And yes indeed you are right, the same issue is in kernel driver, I just found it few minutes ago. I found the uboot driver first, so I thought the issue was coming from there. |
Hi,
On armbian forum you say there :
Are you talking about this script? If so can you please elt me know where is the source code of the AXP209 driver?
Thanks!
The text was updated successfully, but these errors were encountered: