USB OTG without external power supply

Search This thread

b0g

Senior Member
Oct 21, 2012
196
44
right now i'm on stock firmware, but when was on cm11 i dont see USB STORAGE
 

b0g

Senior Member
Oct 21, 2012
196
44
i think to talk with F4k, maybe he know,

try, install his kernel, and then repeate modifications ...
 
Last edited:

marcin1147

Senior Member
Dec 29, 2011
378
2,100
Rebooting would overwrite values, this won't help.
Also USB Storage has nothing to do with OTG power, it's just disabled in CM.

BTW. On Moto G I don't even have such a directories.
 

lipalok

Senior Member
Jul 17, 2013
88
13
Nitra
Rebooting would overwrite values, this won't help.
Also USB Storage has nothing to do with OTG power, it's just disabled in CM.

BTW. On Moto G I don't even have such a directories.

Oh, I understand. Is there any way how to enable it? Community along S4 Mini probably doesn't care about this.:cool:
Also, thank you for your time today.
 
Last edited:

marcin1147

Senior Member
Dec 29, 2011
378
2,100
Ask some experienced dev to port USB and battery (conflicting with OTG) driver from a different phone.
ofc I mean someone who has S4 Mini ;)
 
Last edited:

lipalok

Senior Member
Jul 17, 2013
88
13
Nitra
About USB port

Right now, I've found an info about USB port that our phone uses.
It uses TSU6721 USB port, which is made by Texas Instruments® and which officially SUPPORTS OTG.
Here are some words from their website:
TSU6721 is a high performance USB port multimedia switch featuring automatic switching and accessory detection. The device connects a common USB port to pass audio, USB data, charging, On The Go (OTG) and factory mode signals. The audio path has negative signal capability includes left (mono/stereo), right (stereo) as well as microphone signals. Furthermore, TSU6721 is compatible with the MCPC specification.
Anything else you want to know is on their website. Simply google for TSU6721.
So, we only need a right kernel hack which will enable USB-OTG. Developer @marcin1147 has said that it's possible if some developer will force the kernel to send a voltage from battery to USB port:silly:
 
Last edited:

junkyde

Senior Member
May 26, 2011
581
327
good news. would be interesting to find out if another phone is using the same port and has otg, so a dev could take a look into kernel source of that device.
 

lipalok

Senior Member
Jul 17, 2013
88
13
Nitra
NEW INFO

This is very interesting. If I connect USB peripheral, device DETECTS its connection, but it doesn't send power. I'm using common USB OTG cable, not the Y one. Here's a sample from dmesg:
<6>[ 6537.737127] tsu6721_irq_thread is called
<6>[ 6537.739721] tsu6721 15-0025: tsu6721_irq_thread: intr : 0x1 intr2 : 0x0
<3>[ 6537.762611] tsu6721 15-0025: dev1: 0x80, dev2: 0x0, dev3: 0x0, ADC: 0x0 Jig:eek:FF
<6>[ 6537.769295] tsu6721_attach_dev Save state
<6>[ 6537.769326] [MUIC] OTG Connected
<6>[ 6537.771004] tsu6721_callback OTG is attached
<6>[ 6537.771004] sec_otg_set_id_state 391: msm_otg_set_id_state is called
<6>[ 6537.771035] msm_otg msm_otg: MUIC: ID clear

My dmesg is attached down. I'm using CarbonRom with the latest f4ktionKernel 1.3.6 now.


UPDATE: And here we go! Developers! Come on!
https://github.com/omega-roms/omega_kernel_N9005/blob/master/include/linux/i2c/tsu6721.h
https://github.com/omega-roms/omega_kernel_N9005/blob/master/drivers/misc/tsu6721.c
 

Attachments

  • dmesg.txt
    128 KB · Views: 21
Last edited:

lipalok

Senior Member
Jul 17, 2013
88
13
Nitra
This is very interesting. If I connect USB peripheral, device DETECTS its connection, but it doesn't send power. I'm using common USB OTG cable, not the Y one. Here's a sample from dmesg:
<6>[ 6537.737127] tsu6721_irq_thread is called
<6>[ 6537.739721] tsu6721 15-0025: tsu6721_irq_thread: intr : 0x1 intr2 : 0x0
<3>[ 6537.762611] tsu6721 15-0025: dev1: 0x80, dev2: 0x0, dev3: 0x0, ADC: 0x0 Jig:eek:FF
<6>[ 6537.769295] tsu6721_attach_dev Save state
<6>[ 6537.769326] [MUIC] OTG Connected
<6>[ 6537.771004] tsu6721_callback OTG is attached
<6>[ 6537.771004] sec_otg_set_id_state 391: msm_otg_set_id_state is called
<6>[ 6537.771035] msm_otg msm_otg: MUIC: ID clear

My dmesg is attached down. I'm using CarbonRom with the latest f4ktionKernel 1.3.6 now.


UPDATE: And here we go! Developers! Come on!
https://github.com/omega-roms/omega_kernel_N9005/blob/master/include/linux/i2c/tsu6721.h
https://github.com/omega-roms/omega_kernel_N9005/blob/master/drivers/misc/tsu6721.c

Note 3 doesn't lack OTG, so the problem is in drivers.
 
Last edited:

junkyde

Senior Member
May 26, 2011
581
327
I did a little research, but could not find anyone who successfully patched a kernel of a device to provide power through usb port for otg support.

I only found examples where people managed to integrate usb-otg with external power source.

So I don't know if it's even possible, because if it was, a skilled developer would have done so...
 
  • Like
Reactions: TNCS

lipalok

Senior Member
Jul 17, 2013
88
13
Nitra
I did a little research, but could not find anyone who successfully patched a kernel of a device to provide power through usb port for otg support.

I only found examples where people managed to integrate usb-otg with external power source.


So I don't know if it's even possible, because if it was, a skilled developer would have done so...

@F4k already knows about it, I've written him a message, hope he will be able to do something.
@junkyde, please have a look here:
http://xdaforums.com/showthread.php?t=2691624

It's from S3 Mini thread, which I've personally owned.
 
Last edited:
  • Like
Reactions: junkyde

Harshiv989

Senior Member
Dec 17, 2015
70
9
Ahmedabad
@lipalok ,
How exactly did you figured that the USB port in controlled by that particular chip ?
I have an SM-E700H which, I would like to find out about USB controller and whether it supports OTG/USB Host or not.

Sent from my SM-E700H using XDA Labs
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    About USB port

    Right now, I've found an info about USB port that our phone uses.
    It uses TSU6721 USB port, which is made by Texas Instruments® and which officially SUPPORTS OTG.
    Here are some words from their website:
    TSU6721 is a high performance USB port multimedia switch featuring automatic switching and accessory detection. The device connects a common USB port to pass audio, USB data, charging, On The Go (OTG) and factory mode signals. The audio path has negative signal capability includes left (mono/stereo), right (stereo) as well as microphone signals. Furthermore, TSU6721 is compatible with the MCPC specification.
    Anything else you want to know is on their website. Simply google for TSU6721.
    So, we only need a right kernel hack which will enable USB-OTG. Developer @marcin1147 has said that it's possible if some developer will force the kernel to send a voltage from battery to USB port:silly:
    1
    Hello! Most devices like Nexus 4 or our S4 Mini have problems with USB OTG functionality - they can't provide power to connected device. When I was browsing through some system folders, I've found a directory /d/regulator/8921_usb_otg/8921_usb_otg. In this directory, I can see voltage values, but I'm not able to edit them. Can someone help me how to edit max_uV and min_uV files? Folder called "enable" can be changed to 1, but other folders no.
    1
    I did a little research, but could not find anyone who successfully patched a kernel of a device to provide power through usb port for otg support.

    I only found examples where people managed to integrate usb-otg with external power source.

    So I don't know if it's even possible, because if it was, a skilled developer would have done so...
    1
    I did a little research, but could not find anyone who successfully patched a kernel of a device to provide power through usb port for otg support.

    I only found examples where people managed to integrate usb-otg with external power source.


    So I don't know if it's even possible, because if it was, a skilled developer would have done so...

    @F4k already knows about it, I've written him a message, hope he will be able to do something.
    @junkyde, please have a look here:
    http://xdaforums.com/showthread.php?t=2691624

    It's from S3 Mini thread, which I've personally owned.