[Letux-kernel] Charging on GTA04

H. Nikolaus Schaller hns at goldelico.com
Sun Jun 26 17:12:25 CEST 2016


> Am 26.06.2016 um 15:01 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> 
>> 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.

Well, 4.6.0 isn't charging as well (and no ethernet gadget). And older versions are not properly booting.

One strange observation:

root at letux:~# cat /sys/class/power_supply/twl4030_usb/voltage_now
0
root at letux:~# cat /sys/class/power_supply/twl4030_usb/uevent
POWER_SUPPLY_NAME=twl4030_usb
POWER_SUPPLY_STATUS=Charging
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_VOLTAGE_NOW=0
POWER_SUPPLY_CURRENT_NOW=808476
POWER_SUPPLY_INPUT_CURRENT_LIMIT=798505
root at letux:~# 

This means that voltage_now and POWER_SUPPLY_VOLTAGE_NOW is 0 although charging!

This is definitively different to 4.6.0 where USB voltage is displayed.

Is perhaps the madc broken?

BR,
Nikolaus


 


More information about the Letux-kernel mailing list