FORUMS

Fun with resistors (home/car dock mode + more)

355 posts
Thanks Meter: 217
 
By TheBeano, Senior Member on 26th October 2010, 09:39 PM
Post Reply Email Thread
7th October 2012, 09:07 PM |#171  
OP Senior Member
Thanks Meter: 217
 
More
The source code for the GT-N7100 isn't out yet, there might be a clue in there. Or it could just be a bug.
8th October 2012, 10:00 AM |#172  
Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by TheBeano

The source code for the GT-N7100 isn't out yet, there might be a clue in there. Or it could just be a bug.

The source code is out now!
http://opensource.samsung.com/index....E961550010F957
9th October 2012, 12:04 AM |#173  
OP Senior Member
Thanks Meter: 217
 
More
Thanks, I had a quick look and they no longer use the FSA9480 chip for the USB interface, instead it looks like they use the MAX77693 chip, same as the Galaxy SIII. There is a resistor table for cable detection in the code that has the same values for the car dock etc.:
Code:
	ADC_DOCK_VOL_DN		= 0x0a, /* 0x01010 14.46K ohm */
	ADC_DOCK_VOL_UP		= 0x0b, /* 0x01011 17.26K ohm */
	ADC_DOCK_PLAY_PAUSE_KEY = 0x0d,
	ADC_SMARTDOCK		= 0x10, /* 0x10000 40.2K ohm */
	ADC_AUDIODOCK		= 0x12, /* 0x10010 64.9K ohm */
	ADC_CEA936ATYPE1_CHG	= 0x17,	/* 0x10111 200K ohm */
	ADC_JIG_USB_OFF		= 0x18, /* 0x11000 255K ohm */
	ADC_JIG_USB_ON		= 0x19, /* 0x11001 301K ohm */
	ADC_DESKDOCK		= 0x1a, /* 0x11010 365K ohm */
	ADC_CEA936ATYPE2_CHG	= 0x1b, /* 0x11011 442K ohm */
	ADC_JIG_UART_OFF	= 0x1c, /* 0x11100 523K ohm */
	ADC_JIG_UART_ON		= 0x1d, /* 0x11101 619K ohm */
	ADC_CARDOCK		= 0x1d, /* 0x11101 619K ohm */
#if defined(CONFIG_MUIC_DET_JACK)
	ADC_EARJACK		= 0x1e, /* 0x11110 1000 or 1002 ohm */
But there are a lot of conditional compile settings e.g.
#if !defined(CONFIG_MUIC_MAX77693_SUPPORT_CAR_DOCK)

So they may have compiled it without this activated for the Note 2. Possibly the SGS III forums have more info?
9th October 2012, 12:25 AM |#174  
Member
Thanks Meter: 8
 
More
Quote:
Originally Posted by TheBeano

Possibly the SGS III forums have more info?

The S3 works in car dock mode with 619k resistor.
12th October 2012, 02:31 AM |#175  
AndreiLux's Avatar
Senior Member
Thanks Meter: 14,750
 
Donate to Me
More
Quote:
Originally Posted by TheBeano

Thanks, I had a quick look and they no longer use the FSA9480 chip for the USB interface, instead it looks like they use the MAX77693 chip, same as the Galaxy SIII. There is a resistor table for cable detection in the code that has the same values for the car dock etc.:

Code:
	ADC_DOCK_VOL_DN		= 0x0a, /* 0x01010 14.46K ohm */
	ADC_DOCK_VOL_UP		= 0x0b, /* 0x01011 17.26K ohm */
	ADC_DOCK_PLAY_PAUSE_KEY = 0x0d,
	ADC_SMARTDOCK		= 0x10, /* 0x10000 40.2K ohm */
	ADC_AUDIODOCK		= 0x12, /* 0x10010 64.9K ohm */
	ADC_CEA936ATYPE1_CHG	= 0x17,	/* 0x10111 200K ohm */
	ADC_JIG_USB_OFF		= 0x18, /* 0x11000 255K ohm */
	ADC_JIG_USB_ON		= 0x19, /* 0x11001 301K ohm */
	ADC_DESKDOCK		= 0x1a, /* 0x11010 365K ohm */
	ADC_CEA936ATYPE2_CHG	= 0x1b, /* 0x11011 442K ohm */
	ADC_JIG_UART_OFF	= 0x1c, /* 0x11100 523K ohm */
	ADC_JIG_UART_ON		= 0x1d, /* 0x11101 619K ohm */
	ADC_CARDOCK		= 0x1d, /* 0x11101 619K ohm */
#if defined(CONFIG_MUIC_DET_JACK)
	ADC_EARJACK		= 0x1e, /* 0x11110 1000 or 1002 ohm */
But there are a lot of conditional compile settings e.g.
#if !defined(CONFIG_MUIC_MAX77693_SUPPORT_CAR_DOCK)

So they may have compiled it without this activated for the Note 2. Possibly the SGS III forums have more info?

I got PM'ed by a user for a feature request on the Note 2, currently by default it is compiled with:

CONFIG_MUIC_MAX77693_SUPPORT_OTG_AUDIO_DOCK=y
CONFIG_MUIC_MAX77693_SUPPORT_SMART_DOCK=y

Car dock entry is missing in the default defconfig. The S3 has none of these options checked:

# CONFIG_MUIC_MAX77693_SUPPORT_OTG_AUDIO_DOCK is not set
# CONFIG_MUIC_MAX77693_SUPPORT_SMART_DOCK is not set
# CONFIG_MUIC_MAX77693_SUPPORT_CAR_DOCK is not set

Also, keep in mind we're talking international S3, US version has different PMICs.

So here's a kernel for both devices with all the three options enabled: S3 build upon this kernel, and the N2 on this one (Almost the same).

Again, both these have:

CONFIG_MUIC_MAX77693_SUPPORT_OTG_AUDIO_DOCK=y
CONFIG_MUIC_MAX77693_SUPPORT_SMART_DOCK=y
CONFIG_MUIC_MAX77693_SUPPORT_CAR_DOCK=y

I currently have no device/dock to test this functionality other than simple OTG, so I post it here for because of the specificity of the request. If it works I will keep it for both in the stable kernels.

Edit: I have moved this functionality onto the my main kernels and you should visit the threads linked above for downloads of new versions.
The Following 3 Users Say Thank You to AndreiLux For This Useful Post: [ View ] Gift AndreiLux Ad-Free
12th October 2012, 08:01 AM |#176  
Member
Thanks Meter: 37
 
More
Could somebody please trst this with s iii ? I'm hoping of getting my note today so I can test this
14th October 2012, 07:21 PM |#177  
Olli0077's Avatar
Member
Thanks Meter: 17
 
More
Can i Flash These Kernel with cwm.?

Gesendet von meinem Nexus 7 mit Tapatalk 2
15th October 2012, 08:58 PM |#178  
Senior Member
Flag Ludwigsburg
Thanks Meter: 99
 
More
YES YES YES

Car Mode & Charging working on XXDLIB on i9300 with Infuse 4G Car-Dock!

Thx.
15th October 2012, 09:38 PM |#179  
Junior Member
Thanks Meter: 0
 
More
Car Mode & Charging working on XXDL15 on i9300 with Infuse 4G Car-Dock!
15th October 2012, 09:42 PM |#180  
Junior Member
Thanks Meter: 0
 
More
Awesome, got my SGS3 with LIB working again with my dock, thank you.
16th October 2012, 10:03 PM |#181  
Olli0077's Avatar
Member
Thanks Meter: 17
 
More
Great job it works on my samsung galaxy S3 with chrckrom 5.5.

Thank you

Gesendet von meinem Nexus 7 mit Tapatalk 2
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes