[Samsung Galaxy Tab Plus] garyd9:
maxim 8997. -- I could see myself trying to do it just for the "thrill" ;)

hrm... is that what's used for charging as well as a VR? hmmm... (don't mind me while I type to myself.)

...

CONFIG_MAX8997_CHARGER=y

CONFIG_SMB136_CHARGER=y

wtf:

#define AUTOSTOP_SHIFT 5

call_a_func(0 << AUTOSTOP_SHIFT) ;

huh? Why?

not much difference between adapter charging and usb charging:

650ma vs 450ma.

What is the spec for USB? 500ma, I think...

okay, this is whacked. Plug in a USB (to computer) and it calls max8997_disable_charging(), but it's obviously trickle charging (vcell keeps going up, and chg flag is set.) (well, the chg flag is only "charging enabled". The recgh flag (which is 0) is is_recharging. Yet, the voltage does keep going up. <sarcasm>perhaps it's picking up power via induction</sarcasm>

I remember back in the good old days when things made sense. Then I had kids... and now even the linux kernel is going nuts.

(ever wonder what it sounds like when an engineer talks to himself? Plus this into a TTS engine...)

hrm.. smb136 charger driver... and IT is saying that 500ma is being pulled from the USB.. and 1500ma is pulled from the proper adapter.

I'm not fluent with these charging chips, but I'm starting to wonder if smb136 is controlling the pull from the usb and max8997 is controlling the amount of current being sent to the battery... That would actually start to make sense. But... where's the glue that holds it all together?

Neat. :) So the usb goes to the smb136 and from there to ?? Where does the max8997 fit into this?

sec_battery - the samsung battery driver.

smb136_charger - the smb136 chip

max8997_charger - this is the charger function of the max8997 chip... but I'm missing something.

...

hrm.. max8997_charger doesn't seem to do a damn thing when I plug in to a charger, usb, or anything else. WTF. Is this only some kind of VR between the battery and exynos? I guess that would make sense..

...

okay, so I can do this power thing... However, I'd really like to find some kind of spec sheet that details the register values before I do it. I don't like throwing random numbers into registers without knowing what they actually do!

...

Well, THIS is interesting... If I enable HC mode with the usb cable, it actually will cut off the USB from the SOC. In other words, high current from USB will disable adb, MTP, Kies, or any other mechanism for your computer to talk to your tablet. hrmmmm

...

tinkering with registers (no public sheet documenting all of them), it appears I can set it to 650mA off the USB. Problem is that it's still only pulling 500mA. Actually, I don't know that for sure. Checking just the battery current... idle with screen off while plugged into USB set at 500mA, I get a battery current of 400mA. Same thing, but set to 650mA, I still get an idle current of 400mA. Plugging into a powered USB hub doesn't seem to make any difference. Plugged into an iphone charger, still getting 400mA.... plugged into samsung charger, getting over 1200mA...

It's possible that the smb136 won't accept more than 500mA if it's in USB IN mode. Without USB IN, data transfer with a PC is disabled...

BUT... I do see something interesting with that iphone charger... (heh)

...

Okay, how about if the iphone chargers work to give a bit of extra juice? Would that make people happy? I can detect the iphone charger in a manner similar to how the samsung charger is detected. I'm currently going with 750mA on iPhone chargers (but it seems to be pulling a bit more than that.. closer to 1000mA.)

....

I just had a scary thought: I'm going to go to bed (eventually), wake up in a few hours to find a link to this post on the frontpage of xda - with the title of "ravings of a mad man."

Good thing there doesn't seem to be a limit on the number of times I can edit this post. I think I've done it about 2 dozen times already.

....

enough for tonight.. There's some kind of storm outside and I just lost power. I think that might be the universes way of telling me to go to bed.