View Single Post
joerg_rw's Avatar
Posts: 2,222 | Thanked: 12,651 times | Joined on Mar 2010 @ SOL 3
#683
5V VBUS supply WORKS!


./i2cset -y -m 0x07 2 0x6b 0x01 0x05

lights up all the fancy LEDs on a connected USB hub.

BEWARE: this is an intermediate result and not yet tested to be safe for anything. Also bme intercepts the boost mode setting of bq24150 and stops 5V after ~0.5..1sec

So this is just meant to let you know the chances getting better for USB hostmode every day. We need someone to fix the obviously broken musb_hdrc driver (http://mxr.maemo.org/fremantle/sourc...sb_core.c#2010)

/jOERG
[edit]
refer: Selecting_USB_host_modes (on Openmoko GTA02 - well it's Linux too )

The bme assumption seems correct:
Code:
killall -SIGSTOP bme_RX-51; \
./i2cset -y -m 0x07 2 0x6b 0x01 0x05; sleep 10; \
 killall -SIGCONT bme_RX-51
which gives 10 seconds of VBUS power.

alas we need bme to tickle the system watchdog, otherwise reboot after a short time


Also bq24150 itself has a watchdog timer that'll stop boostmode if not reset properly on a regular schedule. To check this, you may replace sleep 10 by sleep 40 in above cmdline, and watch VBUS 5V drop after 32s on bq24150 watchdog timeout, even though bme still stopped

Last edited by joerg_rw; 2010-04-30 at 23:43.
 

The Following 36 Users Say Thank You to joerg_rw For This Useful Post: