[Letux-kernel] Charging on GTA04

H. Nikolaus Schaller hns at goldelico.com
Sun Jun 26 15:01:50 CEST 2016


> Am 24.06.2016 um 10:03 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> Hi,
> it appears as if USB detection is now completely broken on -rc4...
> 
> I have two boards where I neither get some "USB plugged in" nor
> does /sys/class/power/usb start charging.
> 
> Something has gone wild.
> 
> Does it work for anyone of you?

Here some observations to this problem (using letux-4.7-rc4):

root at letux:/sys/class/power_supply/twl4030_usb# cat uevent 
POWER_SUPPLY_NAME=twl4030_usb
POWER_SUPPLY_STATUS=Not charging
POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_INPUT_CURRENT_LIMIT=841
root at letux:/sys/class/power_supply/twl4030_usb# echo continuous >mode
root at letux:/sys/class/power_supply/twl4030_usb# cat mode
off auto [continuous]
root at letux:/sys/class/power_supply/twl4030_usb# cat uevent 
POWER_SUPPLY_NAME=twl4030_usb
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_VOLTAGE_NOW=0
POWER_SUPPLY_CURRENT_NOW=12474
POWER_SUPPLY_INPUT_CURRENT_LIMIT=841
root at letux:/sys/class/power_supply/twl4030_usb# echo auto >mode
[  189.735412] twl4030_bci 48070000.i2c:twl at 48:bci: battery temperature out of range
[  189.766967] twl4030_bci 48070000.i2c:twl at 48:bci: battery temperature out of range
root at letux:/sys/class/power_supply/twl4030_usb# cat uevent 
POWER_SUPPLY_NAME=twl4030_usb
POWER_SUPPLY_STATUS=Not charging
POWER_SUPPLY_ONLINE=0
POWER_SUPPLY_INPUT_CURRENT_LIMIT=841
root at letux:/sys/class/power_supply/twl4030_usb# 

This means:
1.  "auto" mode is broken
2. continuous mode seems to charge
3. switching back to auto mode gives strange "battery temperature out of range" warning

And I have no ethernet-gadget.

I think I should compare with letux-4.6.0 or other -rc. And I should enable debugging
of the driver.

BR,
Nikolaus




More information about the Letux-kernel mailing list