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.:
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 */
ADC_EARJACK = 0x1e, /* 0x11110 1000 or 1002 ohm */
But there are a lot of conditional compile settings e.g.
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:
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:
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.