π
<-
Chat plein-écran
[^]

USB controller port power

C, C++, ASM...

USB controller port power

Message non lude nspiredev500 » 31 Aoû 2020, 11:02

I want to make a host controller driver for the TI-Nspire CX, but I have encountered a roadblock:
After resetting the controller, I want to enable the power on the USB port.
I tried the normal EHCI way of setting the port power bit in the PORTSC register, but it just hangs. It doesn't just hang normally, not even IRQs are working.
I looked at the linux driver for the chipidea USB controller, and they enable the port power through a regulator, not in the PORTSC register.
I also tried setting the output of GPIO2 to 0, like on hackspire, but it also didn't help.

But there has to be a way, since I dumped the PORTSC register after I attached a USB device, and the controller was in host mode and port power enabled.
The strange thing is that when the controller was in host mode with port power enabled and is then reset, the port power stays on, so it doesn't seem like the USB controller is actually controlling it.
Also setting the power to on works when the calculator was connected to TI-Connect before running.

Does anyone have another idea?
Avatar de l’utilisateur
nspiredev500
Niveau 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Prochain niv.: 16%
 
Messages: 17
Inscription: 03 Juil 2020, 12:22
Genre: Non spécifié
Calculatrice(s):
MyCalcs profile
GitHub: nspiredev500

Re: USB controller port power

Message non lude Vogtinator » 01 Sep 2020, 18:02

AFAIK it's controlled over GPIOs: https://hackspire.org/index.php?title=GPIO_Pins

The Linux device tree confirme that: https://github.com/torvalds/linux/blob/ ... cx.dts#L73

How did you mesure that it's indeed outputting 5V? Did GPIO20 indicate that something is plugged in?
Avatar de l’utilisateur
VogtinatorPremium
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 1.6%
 
Messages: 217
Inscription: 29 Mar 2014, 15:55
Genre: Homme
Calculatrice(s):
MyCalcs profile


Retourner vers Native: Ndless, Linux, ...

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 9 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
1279 utilisateurs:
>1254 invités
>20 membres
>5 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)