The Following 19 Users Say Thank You to egoshin For This Useful Post: | ||
|
2010-05-07
, 08:31
|
|
Posts: 70 |
Thanked: 410 times |
Joined on Sep 2009
@ Fife, Scotland.
|
#762
|
OK, good news:
1. I was able to set hardware in HOST mode with VBUS on. I don't remember for a moment - was it via TWL4030 VBUS boost or via "i2cset" usage (it is night in CA). However, looking into log I think - VBUS setup was a result of boost in TWL4030.
ARM CPU USB started work as HOST, recognized the new device attachment (I used USB memory stick) and tried to communicate.
The Following 3 Users Say Thank You to SpeedEvil For This Useful Post: | ||
|
2010-05-07
, 10:22
|
Posts: 82 |
Thanked: 214 times |
Joined on Jan 2010
@ Cape town
|
#763
|
It was my understanding that the twl4030 capacitor for boost mode was not there (in the schematic at least).
We are missing some capacitor to put TWL4030 GAIA boostmode to work, but N1140 bq24150 USB Bat Charger chip is perfectly suited for that. The i2cset cmd you're asking about does exactly that: enable boost mode (aka supply VBUS) in bq24150
|
2010-05-07
, 16:01
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#764
|
It was my understanding that the twl4030 capacitor for boost mode was not there (in the schematic at least).
If this is the case, then VBUS is going to be very low - under 3V?
This might cause some semblance of activity on the port - but will not actually work.
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
|
2010-05-07
, 16:13
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#765
|
The cable/hw patchwork is not enough, some additonal activity in driver is needed. I am working on it.
configuration of 1707 DM/DP pulldown registers is done in reverse with document. What is it - document error or software bug which does still not produce a problem? I don't know but try to find, it actually changes the resitor values only.
Is VBUS voltage needed for 1707 to support ARM CPU USB in HOST mode? I am not familiar with USB protocol details yet to answer it fast.
|
2010-05-07
, 16:50
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#766
|
Where are you seeing that? All I can see is that after Power on Reset http://mxr.maemo.org/fremantle/sourc...omap2430.c#420 id pin sampling and both dp & dp pulldowns are enabled (seemingly to enter OTG mode?).
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).
Note that configuring twl3040 via i2c as the twl3040-usb driver does is for all practical purposes as I understand a NOP (save for reading/writing registers related to pins it has connected, like vbus or id).
No; for example self powered hubs should work without VBUS on host. Since there are quite a few cons to having the vbus pump enabled (bme will have to be lied at, possibly high battery consumption, ...) I suggest we center on enabling host mode _without_ vbus. It should be possible.
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
|
2010-05-07
, 16:52
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#767
|
Or it may be a physical error - morning analysis shows that N900 can't read anything from USB stick. It transmits but read stops due to timeout. (BTW, do we need to swap D-/D+ if N900 is a host?)
The Following 3 Users Say Thank You to blue_led For This Useful Post: | ||
|
2010-05-07
, 17:03
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#768
|
The Following User Says Thank You to daperl For This Useful Post: | ||
|
2010-05-07
, 17:04
|
Posts: 992 |
Thanked: 995 times |
Joined on Dec 2009
@ California
|
#769
|
from datasheet of 1704
"8.7.2.1 VBUS valid comparator
This comparator is used by hosts and A-devices to determine whether the voltage on
VBUS is at a valid level for operation. The ISP1704A minimum threshold for the VBUS valid
comparator is 4.4 V. Any voltage on VBUS below this threshold is considered invalid.
During power-up, it is expected that the comparator output will be ignored.'"
if otg controller expect a valid vbus on isp1704 vbus probe pin maybe this is the reason for timeouts
do a voltage check with a voltmeter . if vbus is below 3.3V this voltage come from isp1707 internals.
The Following 2 Users Say Thank You to egoshin For This Useful Post: | ||
|
2010-05-07
, 17:52
|
Posts: 306 |
Thanked: 566 times |
Joined on Jan 2010
@ Romania
|
#770
|
The Following User Says Thank You to blue_led 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 |
|
1. I was able to set hardware in HOST mode with VBUS on. I don't remember for a moment - was it via TWL4030 VBUS boost or via "i2cset" usage (it is night in CA). However, looking into log I think - VBUS setup was a result of boost in TWL4030.
ARM CPU USB started work as HOST, recognized the new device attachment (I used USB memory stick) and tried to communicate.
2. musb driver was able to work in HOST mode which was triggered by CONNECT interrupt and tried to assign HUB, enumerate device and so on.
Not very good news (yet )
3. session init with USB stick failed and I don't know yet - is it because of I/O error, USB stick underpowered or some protocol violation.
EDIT: - protocol error, msg type doesn't correspond to expected.
Note: I didn't switch ARM CPU USB to FORCE_HOST mode - just played with VBUS supply and tried use 'host' and 'H' commands.
Note2: don't believe file /sys/devices/platform/musb_hdrc/vbus - it says 'Vbus=off" permanently (programming error).
Note3: VBUS on discharge battery - 45min and 1/4 battery gone. But screen was constantly ON and intensive work in X-Term too.
Last edited by egoshin; 2010-05-07 at 07:22.