![]() |
slightly off topic - make N900 charge without bme
first draft for putting bq24150 into fastcharge mode at a reasonable charge end voltage, and keep it in charge mode until battery is full:
Code:
i2cset -y -m 0x77 2 0x6b 0x04 0xc9; Code:
Nokia-N900-02-8:~# ~user/i2c/i2cdump -y -r 0-4 2 0x6b Usual disclaimer: this is addressed to developers only, who exactly understand the above code. ENDUSERS STAY AWAY cheers jOERG |
Re: slightly off topic - make N900 charge without bme
According to the wiki, the reason given for BME being closed source is:
Quote:
Failing that, maybe they would be so kind as to let a few people (egoshin / joerg / etc) have access to the code under an NDA... |
Re: N900 will not allow USB OTG!
sorry for the edits in post 2 above (charging), but while testing I found the registers need another sequence to be set correctly.
anyway now it is at least tested and working for what can be told by watching your shell /j |
Re: N900 will not allow USB OTG!
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
EDIT: I do not enable charge pump, it is impossible (read joerg). But to work as HOST some VBUS voltage is needed (read blue_led) and TWL4030 is an obvious candidate. I don't know - is it possible to use VBUS from 1707 chip (a real USB PHY) because checking it requires too much change in code - driver actively works with 1707 registers and intermixing both is difficult to predict. And of course - the procedure... it is not suitable for normal use because it requires PC initially. I am working on that stuff right now, and first - try to use FORCE_HOST. However, it is not simple as a success experiment, it doesn't see anything at all, so I am looking into code and acquiring logic. BTW, if joerg is successfull in setting VBUS charge voltage and workaround BME intervention it could be a solution for non-selfpowered hubs/HDs. I did an experiment with his command (first version) and it seems it works, at least until DSME shutdowns N900. I stopped do it for now because fast shutdown does too much confusion in results and I can't go far enough until mounting USB stick. |
Re: slightly off topic - make N900 charge without bme
Quote:
|
Re: N900 will not allow USB OTG!
Quote:
And of course without the (even if it's broken) pump and without a host connection it's surely not asserted. Pumping even a measly 3,0 V might mean that the useless-for-charger-detection vbus sense in gaia gets asserted, and the PHY turns on. (Of course the less changes to the driver the better) Quote:
Quote:
|
Re: N900 will not allow USB OTG!
An updated version of the kernel with egoshin's patches and
CONFIG_USB_GPIO_VBUS=m CONFIG_USB_GADGET_DEBUG=y is now available. Quote:
|
Re: N900 will not allow USB OTG!
hi guys!
I've been following you on this thread for quite some time, and recently also in the chatroom. I'm really impressed by your work so far! Keep it going :) I would like to join you in testing, I have a rather good knowledge of linux and also some hardware-level-experience of USB. But I'd still like some advice:
I think that's it for now… Would be great if you could give me some hints :) Btw, it's not important if charging doesn't work, I have a desktop charger. |
Re: N900 will not allow USB OTG!
1) modprobe bq27x00_battery and check /sys/class/power_supply/bq27200-0
3) both are compiled in ls /sys/kernel/debug/usbmon/ 0s 0u 1s 1t 1u 5) always backup and be prepared to reflash :) Quote:
|
All times are GMT. The time now is 23:23. |
vBulletin® Version 3.8.8