[Letux-kernel] Pyra charging

David Shah dave at ds0.me
Mon Dec 21 21:22:50 CET 2020


Do you have this path instead, which should be the same thing?

/sys/class/power_supply/bq24297/device/registers

(my Pyra is on a 5.10 kernel atm so it might not be identical, but iirc this
path existed on 5.6 too)

On Mon, 2020-12-21 at 21:03 +0100, Michael Mrozek wrote:
> On Mo, 2020-12-21 at 09:33 +0100, H. Nikolaus Schaller wrote:
> 
> That directory doesn't exist on my system:
> 
> root at evild-pyra:/sys/kernel/debug/regmap# ls -l
> total 0
> drwxr-xr-x 2 root root 0 Jan  1  1970 0-0008
> drwxr-xr-x 2 root root 0 Jan  1  1970 0-0048
> drwxr-xr-x 2 root root 0 Jan  1  1970 0-0049
> drwxr-xr-x 2 root root 0 Jan  1  1970 0-004a
> drwxr-xr-x 2 root root 0 Jan  1  1970 0-004b
> drwxr-xr-x 2 root root 0 Dec 21 20:59 1-004f
> drwxr-xr-x 2 root root 0 Jan  1  1970 2-0029
> drwxr-xr-x 2 root root 0 Jan  1  1970 2-0076
> drwxr-xr-x 2 root root 0 Jan  1  1970 3-0064
> drwxr-xr-x 2 root root 0 Jan  1  1970 4-0022
> drwxr-xr-x 2 root root 0 Jan  1  1970 4-0064
> drwxr-xr-x 2 root root 0 Jan  1  1970 dummy-omap5_padconf_global at 5a0
> drwxr-xr-x 2 root root 0 Jan  1  1970 dummy-scm_conf at 0
> 
> Could it be that it has a different name / ID
> 
> > > Am 20.12.2020 um 21:54 schrieb Michael Mrozek
> > > <EvilDragon at 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 at letux:~# fgrep 5: /sys/kernel/debug/regmap/1-006b/registers
> > 5: 8a
> > root at letux:~# 
> > 
> > If you see 9x, ax, bx the watchdog timer is enabled for 40, 80, 120
> > seconds.
> > 
> > BR,
> > Nikolaus
> > 
> 




More information about the Letux-kernel mailing list