<
barni2000[m]>
s/ops/props/
<
Danct12[m]>
shouldn't be needed, but definitely for usb-otg
<
barni2000[m]>
and what about extcon in my understanding extcon property is responsible for change the direction
<
barni2000[m]>
it seems ifconfig find usb0 interface, so i don't understand why it is not working
<
barni2000[m]>
if i do some modification related to extcon or vbus-supply than usb0 interface not exists
<
barni2000[m]>
but usbnet works on redmi 4x but not works on note 5a
<
barni2000[m]>
s/but//
<
barni2000[m]>
as i see Redmi 4A is very similar for these devices the only difference is the charger and th fg it uses smb347 and cw2015
<
barni2000[m]>
Redmi 5A, Note 5A and Note 5A Prime uses bq25601 and bq27426
<
Danct12[m]>
<barni2000[m]> "and what about extcon in my..." <- extcon is required for peripheral mode too
<
barni2000[m]>
Danct12[m]: than i need to find out what should i set there
<
Danct12[m]>
barni2000[m]: interrupts or whatever gpio is pulled when power is plugged in
<
barni2000[m]>
there is an usbid pinctrl
<
barni2000[m]>
i have tried to utilez extcon-usb-gpio
<
Danct12[m]>
usbid looks like it's for OTG
<
barni2000[m]>
s/utilez/utilize/
<
Danct12[m]>
you know the 4th pin on microusb connector
<
barni2000[m]>
than maybe this interupt stuff what i sent above should be used for extcon somehow
<
Danct12[m]>
hmm, the redmi device you port doesnt use pmi8950 i guess?
<
barni2000[m]>
<48 168>, /* usb_phy_id_irq*/
<
barni2000[m]>
Danct12[m]: it is note
<
barni2000[m]>
> <@danct12:kde.org> hmm, the redmi device you port doesnt use pmi8950 i guess?
<
barni2000[m]>
* it is not
<
barni2000[m]>
only santoni using it
<
Danct12[m]>
what is it using then?
<
barni2000[m]>
pm8937 and pmi8937
<
Danct12[m]>
barni2000[m]: for the pmi8937, i looked at arch/arm64/boot/dts/qcom/pmi8937.dtsi
<
Danct12[m]>
in qcom,usb-chgpth@1300 property, there's an interrupt called "usbin-src-det"
<
Danct12[m]>
this should be the interrupt that you need
<
Danct12[m]>
it's actually same as the pmi8950 btw
<
Danct12[m]>
if it's not hooked up through some usb muic then usb peripheral should work right away
<
barni2000[m]>
<Danct12[m]> "in qcom,usb-chgpth@1300..." <- but this is pmi8950_usb_vbus
<
barni2000[m]>
what is pmi8950_usb_id? thats for otg right?
<
Danct12[m]>
usb_id is for otg, usb_vbus is for power in
<
barni2000[m]>
Danct12[m]: unfortunately it is not work usb0 interface is disappeard
<
barni2000[m]>
if i set extcon i have got deferred probe pending
<
barni2000[m]>
maybe i need to disable something [ 0.379996] pmic-spmi: probe of 0-02 failed with error -5
<
Danct12[m]>
hmm barni2000 if you look at downstream
<
Danct12[m]>
particular in drivers/platform/msm/qpnp-revid.c from msm-4.9
<
Danct12[m]>
something interesting happens there
<
barni2000[m]>
as i seen in dumped downstream dt there is no pmic@2
<
barni2000[m]>
only 0 and 1 what is come from pm8937
<
barni2000[m]>
may be this is related
<
barni2000[m]>
s/``/```/
<
barni2000[m]>
vbus_usb_in comes from the charger