pinephone, pinetab, etc devel chat | https://gitlab.com/pine64-org/ Bridged to #pinedev on Freenode and #pine-dev:matrix.org on Matrix
minecrell: so I was wondering where the SNPS_PICO_PHY part is for msm8916, because it's not in phy-qcom-usb-hs.c
Читать полностью…minecrell: so this code downstream https://github.com/msm8916-mainline/android_kernel_qcom_msm8916/blob/b20608408caff817ec874f325127b07609fbaeb8/drivers/usb/phy/phy-msm-usb.c#L633-L673
Читать полностью…konradybcio: imagine people having non-standard pmic+soc combos..
Читать полностью…minecrell: But the qcom,hsusb-otg-phy-init-seq contains funny tuning init sequences, and someone had USB stability issues on 8916 when it was wrong at some point. So it may or may not be related
Читать полностью…minecrell: on downstream newer platforms using those PHYs are also using entirely different drivers, but there are some similarities
Читать полностью…minecrell: There is a funny overlap with the driver you are trying to use (phy-qcom-usb-hs-28nm.c), which is for the femto PHY but they also say support for the pico PHY could be added eventually: https://github.com/torvalds/linux/commit/67b27dbeac4dc86d8f09789861bc8eda6f3538c4
Читать полностью…minecrell: Not sure. It doesn't translate very well to mainline atm. Downstream basically has something like phy-qcom-usb-hs.c
(an ULPI PHY driver) but with some bits of the init sequence from phy-qcom-usb-hs-28nm.c
konradybcio: how do you see it? should I just add
ulpi {
phy{
qcom-init-seq=foo
}
}
?
konradybcio: uhoh I don't think I have anything to hook up the icc to on this device in the current state
Читать полностью…konradybcio: it can negotiate the address but I don't think the connection is stable
Читать полностью…konradybcio: there's only a single node that doesn't cooperate, which is... SLV_QPIC
Читать полностью…konradybcio: wait it's supposed to panic when no regulators are assigned?!
Читать полностью…konradybcio: so.. I had this.. idea.. https://del.dog/mystistuwi.txt
Читать полностью…minecrell: and this driver appears to be mainly for use with dwc3
Читать полностью…minecrell: In the downstream implementation of USB (with chipidea), there is a SNPS_PICO_PHY (e.g. msm8916) and SNPS_FEMTO_PHY (e.g. mdm9607) supported. msm8916 uses phy-qcom-usb-hs.c
Читать полностью…konradybcio: moving the femtophy node inside ulpi{} is a no-go, it's a MMIO device supposed to live in /soc
Читать полностью…minecrell: Pretty sure qcom,hsusb-otg-phy-init-seq is supposed to be written via ULPI, it doesn't really translate to hsphy_init_seq (which is written to some random memory)
Читать полностью…konradybcio: it used to work like 2y ago on sony 8956 with just changed phy init
Читать полностью…