Am 20.12.2020 um 21:54 schrieb Michael Mrozek EvilDragon@openpandora.org:
So if I want to limit the 3A input to 1A, it works - but 30 - 60 seconds later, there's a KERNEL UDEV event reported - and it's back to 3A.
It's the same for the USB FTDI port as well. I can increase the limit - but it's being reset.
So we need to find out what causes that reset. Is it the driver? What else could it be?
It could be the watchdog inside the bq24297. If that one expires it resets the chip and starts redetection of the power supply.
But I think we disable it in u-boot and the kernel driver.
Please check with
root@letux:~# fgrep 5: /sys/kernel/debug/regmap/1-006b/registers 5: 8a root@letux:~#
If you see 9x, ax, bx the watchdog timer is enabled for 40, 80, 120 seconds.
BR, Nikolaus