The Following User Says Thank You to joerg_rw For This Useful Post: | ||
![]() |
2010-05-07
, 21:40
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#782
|
and if we find what bme discuss with system watchdog a simple timer routine can tickle both bq24150 and system watchdog every 30s to leave us alone with our tests.
The Following 3 Users Say Thank You to Matan For This Useful Post: | ||
![]() |
2010-05-07
, 21:49
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#783
|
The Following 4 Users Say Thank You to blue_led For This Useful Post: | ||
![]() |
2010-05-07
, 23:08
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#784
|
When vbus is detected by twl3040 twl3040-usb fires a sysfs-node changed event (linkstat) which I believe bme is listening to, which then proceeds to read the charger sysfs node thus causing musb_verify_charger to run thus causing DP & DM pull downs to be disabled and strong pull up on DP to be enabled (thus entering gadget/peripheral mode)
The Following 3 Users Say Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-08
, 01:20
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#785
|
Nokia-N900-02-8:~# lsof -p 712 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME bme_RX-51 712 root cwd DIR 254,1 1704 1 / bme_RX-51 712 root rtd DIR 254,1 1704 1 / bme_RX-51 712 root txt REG 254,1 105500 17456 /usr/sbin/bme_RX-51 bme_RX-51 712 root mem REG 254,1 119108 88 /lib/ld-2.5.so bme_RX-51 712 root mem REG 254,1 1164232 121 /lib/libc-2.5.so bme_RX-51 712 root mem REG 254,1 45696 252 /lib/libgcc_s.so.1 bme_RX-51 712 root mem REG 254,1 90612 87 /lib/libpthread-2.5.so bme_RX-51 712 root mem REG 254,1 28428 84 /lib/librt-2.5.so bme_RX-51 712 root mem REG 254,1 868892 5664 /usr/lib/libglib-2.0.so.0.2000.3 bme_RX-51 712 root mem REG 254,1 450020 75 /lib/libm-2.5.so bme_RX-51 712 root mem REG 254,1 22112 6076 /usr/lib/libcal.so.1.0.0 bme_RX-51 712 root mem REG 254,1 7600 6481 /usr/lib/libdsme.so.0.2.0 bme_RX-51 712 root 0u CHR 5,1 995 /dev/console bme_RX-51 712 root 1u CHR 5,1 995 /dev/console bme_RX-51 712 root 2u CHR 5,1 995 /dev/console bme_RX-51 712 root 3r CHR 10,63 1636 /dev/twl4030-adc bme_RX-51 712 root 4u CHR 89,2 1496 /dev/i2c-2 bme_RX-51 712 root 5u CHR 89,2 1496 /dev/i2c-2 bme_RX-51 712 root 6u REG 0,11 80 3156 /nosmq bme_RX-51 712 root 7r REG 0,0 4096 951 /sys/class/i2c-adapter/i2c-1/1-0048/twl4030_usb/vbus bme_RX-51 712 root 8r REG 0,0 4096 989 /sys/devices/platform/musb_hdrc/mA bme_RX-51 712 root 9r REG 0,0 4096 991 /sys/devices/platform/musb_hdrc/charger bme_RX-51 712 root 10r REG 0,0 4096 994 /sys/devices/platform/musb_hdrc/suspend bme_RX-51 712 root 11u unix 0xcfc0da80 3172 socket bme_RX-51 712 root 12u unix 0xcfc0de00 3174 /tmp/.bmesrv bme_RX-51 712 root 13u unix 0xccbd7700 4651 /tmp/.bmesrv bme_RX-51 712 root 14u unix 0xcc88d540 3776 socket
The Following 2 Users Say Thank You to joerg_rw For This Useful Post: | ||
![]() |
2010-05-08
, 03:59
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#786
|
The Following 3 Users Say Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-08
, 04:11
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#787
|
The Following 2 Users Say Thank You to joerg_rw For This Useful Post: | ||
![]() |
2010-05-08
, 04:17
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#788
|
a) /sys/class/i2c-adapter/i2c-1/1-0048/twl4030_usb/vbus is 5V VBUS detection, probably from twl4030
b) /sys/devices/platform/musb_hdrc/charger is D+/- short detect, aka charger_detect, probably from 1707
c) charger_detect only works (or is triggered) when VBUS is applied
d) charger_detect is 'stricky', se 3) vs 5) above. I.E. it is reset to 0 only when vbus is removed (I have not checked to keep D+/- short while removing VBUS, but I'd expect the standard charger when unplugged from mains does exactly that, and it results in 0 0 )
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-08
, 04:19
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#789
|
The Following User Says Thank You to egoshin For This Useful Post: | ||
![]() |
2010-05-08
, 04:26
|
|
Posts: 2,222 |
Thanked: 12,651 times |
Joined on Mar 2010
@ SOL 3
|
#790
|
Sorry, Joerg, I believe multimeter. It is possible to create multiple explanations but fact is - 3.5V between red and black cable, after I set DRVVBUS in DEVCTL of TWL4030.
The Following 2 Users Say Thank You to joerg_rw For This Useful Post: | ||
![]() |
Tags |
awesomeness in the works, boulevard of broken deals, host, i am the dealbreaker, inspector gadget lies, mobidapter is a scam, nokia fanbois, otg, over 9000, usb, usbcontrol |
|
[Fr 7. Mai 2010] [21:57:05] <DocScrutinizer> 597 * REVISIT: It would be possible to add support for changing between host
[Fr 7. Mai 2010] [21:57:05] <DocScrutinizer> 598 * and peripheral modes in non-OTG configurations by reconfiguring hardware
[Fr 7. Mai 2010] [21:57:05] <DocScrutinizer> 599 * and then setting musb->board_mode. For now, only support OTG mode.
[Fr 7. Mai 2010] [21:57:29] <DocScrutinizer> from http://mxr.maemo.org/fremantle/sourc...usb/tusb6010.c