Openmoko Bug #2317: [gta01] no fast charge when booting with usb cable plugged in

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Openmoko Bug #2317: [gta01] no fast charge when booting with usb cable plugged in

Openmoko Public Trac
#2317: [gta01] no fast charge when booting with usb cable plugged in
-----------------------------+----------------------------------------------
 Reporter:  josch            |          Owner:  openmoko-kernel
     Type:  defect           |         Status:  new            
 Priority:  normal           |      Milestone:                
Component:  System Software  |        Version:  unspecified    
 Severity:  normal           |       Keywords:                
 Haspatch:  0                |      Blockedby:                
Estimated:                   |    Patchreview:                
 Blocking:                   |   Reproducible:                
-----------------------------+----------------------------------------------
 after a cold boot with usb plugged in all the time:

 ~# cat /sys/class/i2c-adapter/i2c-0/0-0008/pcf50606-mbc/charge_mode
 pre

 this is supposed to be fast_cccv

 kernel:
 2.6.31 #292 PREEMPT Tue Nov 3 17:51:11 CET 2009 armv4tl GNU/Linux

 with debian unstable rootfs on sd

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2317>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2317: [gta01] no fast charge when booting with usb cable plugged in

Openmoko Public Trac
#2317: [gta01] no fast charge when booting with usb cable plugged in
-----------------------------+----------------------------------------------
 Reporter:  josch            |          Owner:  openmoko-kernel
     Type:  defect           |         Status:  new            
 Priority:  normal           |      Milestone:                
Component:  System Software  |        Version:  unspecified    
 Severity:  normal           |       Keywords:                
 Haspatch:  0                |      Blockedby:                
Estimated:                   |    Patchreview:                
 Blocking:                   |   Reproducible:                
-----------------------------+----------------------------------------------

Comment(by josch):

 the device is gta01

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2317#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Reply | Threaded
Open this post in threaded view
|

Re: Openmoko Bug #2317: [gta01] no fast charge when booting with usb cable plugged in

Openmoko Public Trac
In reply to this post by Openmoko Public Trac
#2317: [gta01] no fast charge when booting with usb cable plugged in
--------------------------------+-------------------------------------------
    Reporter:  josch            |        Owner:  openmoko-kernel
        Type:  defect           |       Status:  closed        
    Priority:  normal           |    Milestone:                
   Component:  System Software  |      Version:  unspecified    
    Severity:  normal           |   Resolution:  invalid        
    Keywords:                   |     Haspatch:  0              
   Blockedby:                   |    Estimated:                
 Patchreview:                   |     Blocking:                
Reproducible:                   |  
--------------------------------+-------------------------------------------
Changes (by joerg):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 pre
 precharge seems to be a valid state of PMU charger state machine.
 It's a short initial state to test cell status and to ramp up to whatever
 charge mode is specified for the "real" charge process.
 I assume it is from MBCMOD in register MBCS2 (4Ch), which has
 {{{
 3:0 mbcmod R main MBC operating modes and charge phases
              0000: Play Only mode
              0001: USB Precharge phase        <<<
              0010: USB Precharge Wait phase   <<<
              0011: USB Fast Charge phase
              0100: USB Fast Charge wait phase
              0101: USB suspend mode
              0110: adapter Precharge phase
              0111: adapter Precharge Wait phase
              1000: adapter Fast Charge phase
              1001: adapter Fast Charge wait phase
              1010: Battery Full mode
              1011: Halt mode
              1100-1111:reserved

 }}}
 precharge

 I don't know if this is somewhat aggregated with MBCC5 (47h)
 {{{
 7:0 fstchgcur2 R/W fast charge current level in USB Fast Charge phase;
 }}}
 value, to form the /sys/class/i2c-
 adapter/i2c-0/0-0008/pcf50606-mbc/charge_mode state.

 Anyway usually it schould switch to normal charging after a short while,
 see
 PCF50633UM2.00.pdf:
 8.12.6.5 Functional description of charger controller
 8.12.6.7 Charging phases
 8.12.6.8 Precharge phases
 >"" Precharging with a constant current continues until the battery
 voltage reaches the
 conditioned voltage level (Vbatcond). For a Li-Ion battery, Vbatcond is
 typically 2.7 V.""

 /jOERG

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2317#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac