This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Fuel gauge device BQ27200 with AM335x - system hangs

Other Parts Discussed in Thread: BQ27200

Hi,

One of my customer using BQ27200 with AM335x and facing some issues.

We are testing BQ27200 fuel gauge with AM335x in our custom board. When we interface fuel gauge with the board, system gets hanged immediately after booting. I have logged the values that driver reads from the fuel gauge before it hangs. I have attached the system boot log for your reference. Last few lines in the log shows the values read from the fuel gauge and system halted messages. This happens only when we interface bq27200.

Attached log file, please help me on this.

U-Boot 2011.09-00040-gec68725-dirty (Mar 02 2013 - 16:35:04)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  HW ECC Hamming Code selected
No NAND device found!!!
0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
*** Warning - readenv() failed, using default environment

EVM-Configuration : XXX-AM3354-xxxxx

Net:   cpsw
Hit any key to stop autoboot:  3  2  1  0 
SD/MMC found on device 0
reading uEnv.txt

214 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
Running uenvcmd ...
reading uImage

3791008 bytes read
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-3.2.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3790944 Bytes = 3.6 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (wexxx@rndubuntu) (gcc version 4.4.3 (GCC) ) #134 Tue Jul 16 04:34:06 IST 2013
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES1.0 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait init=/init ip=off
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 251064k/251064k available, 11080k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06ca000   (6920 kB)
[    0.000000]       .init : 0xc06ca000 - 0xc0707000   ( 244 kB)
[    0.000000]       .data : 0xc0708000 - 0xc0762680   ( 362 kB)
[    0.000000]        .bss : 0xc07626a4 - 0xc0895870   (1229 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 19200000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000152] Calibrating delay loop... 574.66 BogoMIPS (lpj=2873344)
[    0.095001] pid_max: default: 32768 minimum: 301
[    0.095123] Security Framework initialized
[    0.095184] Mount-cache hash table entries: 512
[    0.095550] CPU: Testing write buffer coherency: ok
[    0.113403] omap_hwmod: pruss: failed to hardreset
[    0.114166] print_constraints: dummy: 
[    0.114379] NET: Registered protocol family 16
[    0.115447] OMAP GPIO hardware version 0.1
[    0.116516] omap_mux_init: Add partition: #1: core, flags: 0
[    0.117675]  omap_i2c.1: alias fck already exists
[    0.117828]  omap_i2c.3: alias fck already exists
[    0.118164] The board is a AM335x xxx custom board
[    0.118499]  da8xx_lcdc.0: alias fck already exists
[    0.118591] Setup LCD display
[    0.118682]  omap_hsmmc.0: alias fck already exists
[    0.118835]  davinci-mcasp.0: alias fck already exists
[    0.119537]  omap2_mcspi.1: alias fck already exists
[    0.119628]  omap2_mcspi.2: alias fck already exists
[    0.119781]  edma.0: alias fck already exists
[    0.119812]  edma.0: alias fck already exists
[    0.119842]  edma.0: alias fck already exists
[    0.129455] bio: create slab <bio-0> at 0
[    0.130462] SCSI subsystem initialized
[    0.131286] usbcore: registered new interface driver usbfs
[    0.131408] usbcore: registered new interface driver hub
[    0.131530] usbcore: registered new device driver usb
[    0.131683] musb-ti81xx musb-ti81xx: musb0, board_mode=0x31, plat_mode=0x1
[    0.131835] musb-ti81xx musb-ti81xx: musb1, board_mode=0x31, plat_mode=0x3
[    0.143035] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
[    0.144012] tps65910 1-002d: JTAGREVNUM 0x0
[    0.146087] print_constraints: VRTC: 
[    0.147369] print_constraints: VIO: at 1800 mV 
[    0.149475] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal 
[    0.151611] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
[    0.152435] print_constraints: VDD3: 5000 mV 
[    0.153717] print_constraints: VDIG1: at 1800 mV 
[    0.154968] print_constraints: VDIG2: at 1800 mV 
[    0.156219] print_constraints: VPLL: at 1800 mV 
[    0.157470] print_constraints: VDAC: at 1800 mV 
[    0.158721] print_constraints: VAUX1: at 1800 mV 
[    0.160003] print_constraints: VAUX2: at 3300 mV 
[    0.161254] print_constraints: VAUX33: at 3300 mV 
[    0.162506] print_constraints: VMMC: at 3300 mV 
[    0.162811] tps65910 1-002d: No interrupt support, no core IRQ
[    0.175018] omap_i2c omap_i2c.3: bus 3 rev2.4.0 at 100 kHz
[    0.175720] Advanced Linux Sound Architecture Driver Version 1.0.24.
[    0.176300] Bluetooth: Core ver 2.16
[    0.176361] NET: Registered protocol family 31
[    0.176391] Bluetooth: HCI device and connection manager initialized
[    0.176391] Bluetooth: HCI socket layer initialized
[    0.176391] Bluetooth: L2CAP socket layer initialized
[    0.176452] Bluetooth: SCO socket layer initialized
[    0.176666] Switching to clocksource gp timer
[    0.184234] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[    0.184417] musb-hdrc musb-hdrc.0: dma type: pio
[    0.184600] MUSB0 controller's USBSS revision = 4ea20800
[    0.184753] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[    0.184844] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[    0.184967] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.184967] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.184997] usb usb1: Product: MUSB HDRC host driver
[    0.184997] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
[    0.184997] usb usb1: SerialNumber: musb-hdrc.0
[    0.185516] hub 1-0:1.0: USB hub found
[    0.185546] hub 1-0:1.0: 1 port detected
[    0.185943] musb-hdrc musb-hdrc.0: USB Host mode controller at d083c000 using PIO, IRQ 18
[    0.186218] musb-hdrc musb-hdrc.1: dma type: pio
[    0.186401] MUSB1 controller's USBSS revision = 4ea20800
[    0.186859] musb-hdrc musb-hdrc.1: USB OTG mode controller at d083e800 using PIO, IRQ 19
[    0.187164] NET: Registered protocol family 2
[    0.187377] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.187744] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.187927] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.188018] TCP: Hash tables configured (established 8192 bind 8192)
[    0.188018] TCP reno registered
[    0.188018] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.188049] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.188262] NET: Registered protocol family 1
[    0.188537] RPC: Registered named UNIX socket transport module.
[    0.188568] RPC: Registered udp transport module.
[    0.188568] RPC: Registered tcp transport module.
[    0.188568] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.188812] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.189025] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.189056] Registering NAND on CS0
[    0.321380] ashmem: initialized
[    0.321624] VFS: Disk quotas dquot_6.5.2
[    0.321685] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.322570] msgmni has been set to 490
[    0.323608] io scheduler noop registered
[    0.323608] io scheduler deadline registered
[    0.323699] io scheduler cfq registered (default)
[    0.324371] da8xx_lcdc da8xx_lcdc.0: GLCD: Found WxxxLCD10 panel
[    0.335266] Console: switching to colour frame buffer device 100x37
[    0.342773] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.043548] console [ttyO0] enabled
[    1.047607] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.055267] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.062927] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.070587] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.078216] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    1.092010] brd: module loaded
[    1.098266] loop: module loaded
[    1.102661] mtdoops: mtd device (mtddev=name/number) must be supplied
[    1.109680] omap2-nand driver initializing
[    1.114257] No NAND device found
[    1.117858] No NAND device found
[    1.121276] OneNAND driver initializing
[    1.125793] CAN device driver interface
[    1.129974] PPP generic driver version 2.4.2
[    1.134582] PPP BSD Compression module registered
[    1.139495] PPP Deflate Compression module registered
[    1.144866] usbcore: registered new interface driver cdc_ether
[    1.151031] usbcore: registered new interface driver cdc_eem
[    1.156982] usbcore: registered new interface driver dm9601
[    1.162841] usbcore: registered new interface driver cdc_subset
[    1.169067] cdc_ncm: 04-Aug-2011
[    1.172485] usbcore: registered new interface driver cdc_ncm
[    1.178497] usbcore: registered new interface driver cdc_acm
[    1.184387] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.192718] Initializing USB Mass Storage driver...
[    1.197906] usbcore: registered new interface driver usb-storage
[    1.204162] USB Mass Storage support registered.
[    1.209136] usbcore: registered new interface driver usbserial
[    1.215240] USB Serial support registered for generic
[    1.220581] usbcore: registered new interface driver usbserial_generic
[    1.227386] usbserial: USB Serial Driver core
[    1.231964] USB Serial support registered for GSM modem (1-port)
[    1.238372] usbcore: registered new interface driver option
[    1.244171] option: v0.7.2:USB Driver for GSM modems
[    1.251464]  gadget: Mass Storage Function, version: 2009/09/11
[    1.257690]  gadget: Number of LUNs=1
[    1.261474]  lun0: LUN: removable file: (no medium)
[    1.266784]  gadget: android_usb ready
[    1.270751] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.276336] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[    1.284179] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.291259] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.298797] usb usb2: Product: MUSB HDRC host driver
[    1.303955] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
[    1.309509] usb usb2: SerialNumber: musb-hdrc.1
[    1.314666] hub 2-0:1.0: USB hub found
[    1.318634] hub 2-0:1.0: 1 port detected
[    1.323333] mousedev: PS/2 mouse device common for all mice
[    1.330200] using rtc device, omap_rtc, for alarms
[    1.335235] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
[    1.341979] i2c /dev entries driver
[    1.345916] Linux video capture interface: v2.00
[    1.350891] usbcore: registered new interface driver uvcvideo
[    1.356872] USB Video Class driver (1.1.1)
[    1.361419] Property read successful `present' is `Discharging'
[    1.368225] Property read successful `voltage_now' is `1'
[    1.373870] Property read successful `current_now' is `0'
[    1.379486] Property read successful `capacity' is `0'
[    1.384857] Property read successful `temp' is `0'
[    1.389831] Property read successful `time_to_empty_now' is `-2731'
[    1.396362] Property read successful `time_to_empty_avg' is `0'
[    1.402526] Property read successful `time_to_full_now' is `0'
[    1.408630] Property read successful `charge_full' is `Li-ion'
[    1.415252] Property read successful `charge_now' is `0'
[    1.420776] Property read successful `charge_full_design' is `0'
[    1.427032] Property read successful `cycle_count' is `0'
[    1.433197] Property read successful `energy_now' is `0'
[    1.438812] bq27x00-battery 3-0055: support ver. 1.2.0 enabled
[    1.445007] Property read successful `present' is `Discharging'
[    1.452239] Property read successful `voltage_now' is `1'
[    1.457855] Property read successful `current_now' is `0'
[    1.463470] Property read successful `capacity' is `0'
[    1.468841] Property read successful `temp' is `0'
[    1.473815] Property read successful `time_to_empty_now' is `-2731'
[    1.480346] Property read successful `time_to_empty_avg' is `0'
[    1.486511] Property read successful `time_to_full_now' is `0'
[    1.492614] Property read successful `charge_full' is `Li-ion'
[    1.499786] Property read successful `charge_now' is `0'
[    1.505310] Property read successful `charge_full_design' is `0'
[    1.511566] Property read successful `cycle_count' is `0'
[    1.518280] Property read successful `energy_now' is `0'
[    1.527923] Property read successful `present' is `Discharging'
[    1.534790] Property read successful `voltage_now' is `1'
[    1.540466] Property read successful `current_now' is `0'
[    1.546081] Property read successful `capacity' is `87286'
[    1.551818] Property read successful `temp' is `0'
[    1.556793] Property read successful `time_to_empty_now' is `281'
[    1.563140] Property read successful `charge_full' is `Li-ion'
[    1.569793] Property read successful `charge_now' is `2056320'
[    1.575897] Property read successful `charge_full_design' is `0'
[    1.582153] Property read successful `cycle_count' is `2056320'
[    1.588897] Property read successful `energy_now' is `0'
[    1.596466] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.602996] device-mapper: uevent: version 1.0.3
[    1.608001] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    1.616821] Bluetooth: HCI UART driver ver 2.2
[    1.621459] Bluetooth: HCI H4 protocol initialized
[    1.626434] Bluetooth: HCILL protocol initialized
[    1.631347] Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0
[    1.642181] cpuidle: using governor ladder
[    1.646606] cpuidle: using governor menu
[    1.652496] usbcore: registered new interface driver usbhid
[    1.658355] usbhid: USB HID core driver
[    1.662811] logger: created 256K log 'log_main'
[    1.667663] logger: created 256K log 'log_events'
[    1.672668] logger: created 256K log 'log_radio'
[    1.677612] logger: created 256K log 'log_system'
[    1.683044] usbcore: registered new interface driver snd-usb-audio
[    1.690551] _regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
[    1.698364] _regulator_get: 1-0018 supply DVDD not found, using dummy regulator
[    1.706054] _regulator_get: 1-0018 supply AVDD not found, using dummy regulator
[    1.713775] _regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
[    1.724426] asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
[    1.731658] ALSA device list:
[    1.734771]   #0: AM335X EVM
[    1.737823] oprofile: hardware counters not available
[    1.743103] oprofile: using timer interrupt.
[    1.747741] Netfilter messages via NETLINK v0.30.
[    1.752777] nf_conntrack version 0.5.0 (3922 buckets, 15688 max)
[    1.759399] ctnetlink v0.93: registering with nfnetlink.
[    1.765014] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[    1.772308] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[    1.778747] xt_time: kernel timezone is -0000
[    1.783508] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.789306] arp_tables: (C) 2002 David S. Miller
[    1.794219] TCP cubic registered
[    1.797790] NET: Registered protocol family 10
[    1.803161] Mobile IPv6
[    1.805786] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    1.811645] IPv6 over IPv4 tunneling driver
[    1.816680] NET: Registered protocol family 17
[    1.821380] NET: Registered protocol family 15
[    1.826019] can: controller area network core (rev 20090105 abi 8)
[    1.832611] NET: Registered protocol family 29
[    1.837249] can: raw protocol (rev 20090105)
[    1.841766] can: broadcast manager protocol (rev 20090105 t)
[    1.848114] Bluetooth: RFCOMM TTY layer initialized
[    1.853210] Bluetooth: RFCOMM socket layer initialized
[    1.858612] Bluetooth: RFCOMM ver 1.11
[    1.862518] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    1.868103] Bluetooth: BNEP filters: protocol multicast
[    1.873565] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    1.880065] Registering the dns_resolver key type
[    1.885040] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    1.893096] ThumbEE CPU extension supported.
[    1.897613] mux: Failed to setup hwmod io irq -22
[    1.903198] Power Management for AM33XX family
[    1.908081] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    1.914733] Copied the M3 firmware to UMEM
[    1.922821] clock: disabling unused clocks to save power
[    1.930023] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[    1.939300] Waiting for root device /dev/mmcblk0p2...
[    1.997955] mmc0: host does not support reading read-only switch. assuming write-enable.
[    2.006530] mmc0: new SD card at address ddff
[    2.011749] mmcblk0: mmc0:ddff SU02G 1.84 GiB 
[    2.018676]  mmcblk0: p1 p2 p3
[    2.077758] EXT4-fs (mmcblk0p2): recovery complete
[    2.082794] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.091308] sys_mount ret = 0, name = /dev/root, fs= ext4
[    2.096801] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.103729] Freeing init memory: 244K
[    2.144622] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[    2.202545] Property read successful `present' is `Discharging'
[    2.209503] Property read successful `voltage_now' is `1'
[    2.215179] Property read successful `current_now' is `0'
[    2.220855] Property read successful `capacity' is `87286'
[    2.226593] Property read successful `temp' is `0'
[    2.231597] Property read successful `time_to_empty_now' is `281'
[    2.238006] Property read successful `charge_full' is `Li-ion'
[    2.244781] Property read successful `charge_now' is `2056320'
[    2.250885] Property read successful `charge_full_design' is `0'
[    2.257202] Property read successful `cycle_count' is `2056320'
[    2.263946] Property read successful `energy_now' is `0'
[    2.326477] init: cannot open '/initlogo.rle'
[    2.362670] Disabling lock debugging due to kernel taint
[    4.139099] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
[    4.149597] android_usb: already disabled
[    4.154846] adb_bind_config
[    5.193969] adb_open
root@android:/ # [    5.970001] init: untracked pid 64 exited
[   16.498443] warning: `zygote' uses 32-bit capabilities (legacy support in use)
[   21.433288] Property read successful `present' is `'
[   21.438659] Property read successful `present' is `Discharging'
[   21.445159] Property read successful `capacity' is `'
[   21.450927] Property read successful `voltage_now' is `1'
[   21.456604] Property read successful `current_now' is `0'
[   21.462249] Property read successful `capacity' is `87286'
[   21.467987] Property read successful `temp' is `0'
[   21.473022] Property read successful `time_to_empty_now' is `281'
[   21.479400] Property read successful `charge_full' is `Li-ion'
[   21.488952] Property read successful `voltage_now' is `'
[   21.494964] Property read successful `temp' is `'
[   21.499969] Property read successful `charge_now' is `2056320'
[   21.506103] Property read successful `charge_full_design' is `0'
[   21.512390] Property read successful `cycle_count' is `2056320'
[   21.528259] Property read successful `energy_now' is `0'
[   21.556518] Property read successful `present' is `'
[   21.573913] Property read successful `capacity' is `'
[   21.588195] Property read successful `voltage_now' is `'
[   21.593994] Property read successful `temp' is `'
[   21.629119] request_suspend_state: wakeup (3->0) at 21670998165 (2000-01-01 00:00:20.192328137 UTC)
[   22.594726] acc_open
[   22.597076] acc_release
[   35.842193] SysRq : Emergency Remount R/O
[   36.156524] musb-hdrc musb-hdrc.0: remove, state 1
[   36.161621] usb usb1: USB disconnect, device number 1
[   36.167480] musb-hdrc musb-hdrc.0: USB bus 1 deregistered
[   36.173370] System halted.