![]() |
Re: N900 will not allow USB OTG!
Fr 7. Mai 2010] [21:28:13] <javispedro> btw in case you're interesting when looking through the kernel, the n8x0 host stuff is in the n900 kernel. instead of omap2430.c they use http://mxr.maemo.org/fremantle/sourc...usb/tusb6010.c
[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 |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
found on ulpi erata
Depending on the application, the link should enable or disable the appropriate Vbus interrupts. Example settings for typical applications are given in Table Application VbusValid(*) SessValid SessEnd Standard Host Yes No No Standard Peripheral No Yes No OTG A-Device Yes Yes No OTG B-Device No Yes Yes Table – Vbus indicators in the RXCMD required for typical applications * The VbusValid indicator in the RXCMD comes from either the internal VbusValid comparator, or the external Vbus indicator and for shure 1707 pin layout seem to be a standard another chip found ( without charger detection ) http://www.st.com/stonline/products/.../stulpi01a.pdf tusb6010.c 957 if (!(musb_readl(tbase, TUSB_DEV_OTG_STAT) 958 & TUSB_DEV_OTG_STAT_ID_STATUS)) 959 musb_writel(tbase, TUSB_INT_SRC_SET, 960 TUSB_INT_SRC_ID_STATUS_CHNG); funny but not for n900 |
Re: N900 will not allow USB OTG!
Quote:
connecting charger causes VBUS signal, some application (BME?) reads /sys/devices/platform/musb_hdrc/charger --> calls musb_charger_detect() and if a charger is a high-performance charger (not PC) then VDAT signal enforces a call to musb_verify_charger(). The last function clears DP/DM PULLDOWN and sets only DM_PULLDOWN. But this happens only for high performance charger. |
Re: N900 will not allow USB OTG!
Quote:
Then when a high power charger is detected, any D+/- meddling is highly senseless, as you'll notice unplugging of the charger anyway, by VBUS drop (if you simply switch off the charger, no side effects will arise from that either, as next return of VBUS - when you plug the wallwart to the wall again - will trigger another D+/- short detection cycle). My 2 cent /j [edit] Nokia-N900-02-8:~# cat /sys/devices/platform/musb_hdrc/charger /sys/class/i2c-adapter/i2c-1/1-0048/twl4030_usb/vbus 1) nothing attached 0 0 2) blank cable, D+/- short 0 0 3) VBUS (from hub downstream) 0 1 4) VBUS plus D+/- short 1 1 5) like 3) but after 4) 1 1 we see 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 ) bme_RX-51 open files: Code:
Nokia-N900-02-8:~# lsof -p 712 |
Re: N900 will not allow USB OTG!
OK, last result about VBUS -
I repeated the test (boost VBUS with DRVVBUS of OTG_CTRL register of TWL4030 chip) with naked cable and multimeter: N900 --- cable --- USB memory stick and measured voltages. Between black and red cable - 3.5V Between red and another cable - 2.5V Another combinations gave me around 0 or 1.5V EDIT: this time a can't get a repeated session setup. Only "cable problem" or so message. However, it was in HOST mode - it tries to enumerate usb1-0. |
Re: N900 will not allow USB OTG!
well, TWL4030 boost mode does not work, I told you before. Maybe now you believe me. Also take care, we do not know what happens to TWL4030 when enabling the boostmode and no capacitor is on the chargepump. It might break.
|
Re: N900 will not allow USB OTG!
Quote:
Quote:
Quote:
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
We need five Volt, not 3.5. Of course a chargepump without charge-pumping capacitor can forward the battery voltage (well maybe), this only shows clearly the capacitor on TWL4030 actually is missing |
All times are GMT. The time now is 23:10. |
vBulletin® Version 3.8.8