-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FP2 - Support for USB expansion port #21
Comments
I have also tried to enable only the second usb_phy, without success :
|
I've also looked into this at some point, but unfortunately I didn't have any hardware to test (or rather, the soldered-on USB-A port didn't even work with downstream kernel). As far as I know, it should just be configuring the second USB port in dts, similar to what you've done and then it should work. But I don't think you can copy paste the properties from the primary USB node since they're connected differently and e.g. smbb shouldn't do much with the 2nd USB port. Downstream commit: FairphoneMirrors/android_kernel_fairphone_msm8974@dfa0245 Maybe also relevant, the one pin for charging goes to smbb "DC" input, unlike the main USB connector which goes to the "USB" input of smbb. But otherwise, the pogo pins directly connect to the SoC for the USB HS2 interface, main USB connector goes to HS1. From SoC side the ID pin for HS2 is pulled to ground, so the USB OTG stuff can't work there, you probably need to force it to host mode. |
Actually I managed to have the 2nd port ONLY by updating I can't find a way to enable both at the same time. Should I define a second USB controller to have one for each phy as in here ? In that case, how can I find the address of that second controller ? Can it be the same one ? I tried that without success. Or is there a way to enable both phys with only one controller ? If yes, do you know how ? |
Looking at upstream dts I don't see any board currently using two phys in one controller, only qcom-apq8074-dragonboard.dts but that's only using the 2nd. But from some commit message I'm pretty certain there's only one USB controller but with two PHYs. I'd actually be curious now how downstream does this. I'll try asking around. |
Some copy paste from IRC:
|
The Fairphone 2 has an USB expansion port behind the back cover, near the battery (found very few info, pinout here ).
It is not supported yet in the kernel (nothing is detected when I plug a peripheral).
What I tried
I have tried to modify the device tree, recompile the kernel and flash it but I cannot get it to work.
My fork is available here. I went from the branch
qcom-msm8974-6.11.y
and created a branchqcom-msm8974-6.11-wip
where I added two tags (v6.11.5-msm8974
andv6.11.6-msm8974
) to test my changes.I then updated the
APKBUILD
oflinux-postmarketos-qcom-msm8974
to retrieve the tar from my fork with my tag, then usedpmbootstrap build --force linux-postmarketos-qcom-msm8974
, then install & flash.My modifications are correctly applied to the kernel, but the USB still doesn't work, so I suppose my modifications are wrong :
In
/arch/arm/boot/dts/qcom/qcom-msm8974pro-fairphone-fp2.dts
Have you already tried to modify this, or do you have any insight about what I am doing wrong ?
The text was updated successfully, but these errors were encountered: