stikonas has quit [Quit: Konversation terminated!]
franoosh has joined #linux-rockchip
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-rockchip
ungeskriptet has quit [Remote host closed the connection]
ungeskriptet has joined #linux-rockchip
naoki has quit [Quit: naoki]
Guest16 has joined #linux-rockchip
<Guest16>
Hey!
<Guest16>
Does anyone know what all kernel config options have to be set for USB Host mode on RK3566?
<Guest16>
Right now, device mode works for me and host mode should technically work? I see two xHCI host controllers in lsusb but I cant get it to recognize any slave device.
<CounterPillow>
(Pretty sure the motorcomm note is wrong for example)
warpme has joined #linux-rockchip
<CounterPillow>
but also if this is a USB Type-C port then there are some problems, try orienting the cable the other way.
<CounterPillow>
We currently don't handle the orientation switch properly, as it's not entirely figured out yet whether the PHY or the controller should do it
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<CounterPillow>
and it doesn't change this to some other value in your device specific DT?
<Guest16>
it shouldnt. its the radxa zero 3w. sorry for not mentioning this earlier
<CounterPillow>
The radxa zero 3* dts doesn't seem to enable usb_host0_ohci/ehci or usb_host1_ohci/ehci which seems suspicious.
<Guest16>
oh. every device i tried is usb2.0. so would i need to enable at least eHCI?
warpme has joined #linux-rockchip
Guest67 has joined #linux-rockchip
<Guest67>
CounterPillow: oops, i seem to have lost my Guest16 nick
<CounterPillow>
I think you'll need to enable both even if it's an xhci device for USB enumeration reasons, though I may be wrong here
Guest16 has quit [Ping timeout: 252 seconds]
<Guest67>
just change the status to enabled right?
<Guest67>
*okay
<CounterPillow>
yes, to okay
<Guest67>
no change. hmm
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
franoosh has quit [Remote host closed the connection]
dsimic has quit [Ping timeout: 248 seconds]
dsimic has joined #linux-rockchip
Guest67 has quit [Quit: Client closed]
Guest16 has joined #linux-rockchip
<Guest16>
CounterPillow I wonder if linux is doing something funky. usually, I cant power up the board from the xhci host port. but if linux boots and i remove the cable from the 2.0 otg port while leaving my phone connected to the xhci host port, it remains on!
<Guest16>
Could there be some issue with dwc3 because I am using the otg port? can i use the 3.0 host while using the 2.0otg in device mode?
<CounterPillow>
May be a missing regulator dependency in the DT
<Guest16>
uh i should have RK817 and the FAN53555 drivers running
<CounterPillow>
Check the schematic for what power rail goes to the USB port's VBUS, then follow it to see if it's gated by some GPIO-enabled regulator that's either missing from the DT entirely or just missing a reference to it in the corresponding usb phy node
<Guest16>
CounterPillow: it seems to be gated by a SY6280AAC but the enable pin seems to be locked high with a 10k pullup
<Guest16>
Although, GPIO0_C5_d seems to drive a USB3.0_EN_H which controlls the CH482D analog differential switch.
vagrantc has joined #linux-rockchip
<Guest16>
hm i drove it high with `gpioset -c 0 21=1` and usb still doesnt work. maybe i am doing something wrong with gpioset or maybe im going the wrong way?
psydroid2 has joined #linux-rockchip
stikonas has joined #linux-rockchip
<Guest16>
ah well i must have something wrong in my kernel config since this all works fine with default aarch64 config
raster has quit [Quit: Gettin' stinky!]
<Guest16>
USB is up! i just had disabled some typec port controllers!
franoosh has joined #linux-rockchip
<Guest16>
hmm okay well while usb works rn it doesnt work if the usb2.0 port is plugged in. if i power the board through the +5V pin i can use the 3.0 port but if i use the otg to power it, i cant use the 3.0. i do have scripts running which immediately setup an accessory on init though
<Guest16>
no wait - i mixed things up
<Guest16>
USB DOES work for all non-drd devices(i use a twelvesouth staygo)
<Guest16>
USB DOES NOT work for drd devices(i am using my phone). while it says that usb is connected and is controlled by the other device, it says my phone is charging it and i cant see it in lsusb
<Guest16>
these are with the usb 2.0 otg plugged in
<Guest16>
if i disconnect the otg andf try to power with pins, even the hub doesnt work(the eth lights keep flickering)
psydroid2 has quit [Ping timeout: 252 seconds]
psydroid2 has joined #linux-rockchip
cbeznea has quit [Ping timeout: 260 seconds]
<CounterPillow>
Yeah, expect there to be a lot of issues with Type-C stuff at the moment.
Guest16 has quit [Ping timeout: 252 seconds]
valpackett has joined #linux-rockchip
valpackett has quit [Ping timeout: 260 seconds]
franoosh has quit [Remote host closed the connection]