Jump to content

Recommended Posts

Posted

I managed to get some USB-C functionality back by adding a device tree overlay.

 

cat odroid-usbc-fix.dts 
/dts-v1/;
/plugin/;

/* 1. Force the USB controller into Host mode */
&{/usb@fc000000} {
    dr_mode = "host";
    status = "okay";
    /delete-property/ usb-role-switch;
    /delete-node/ port;
};

/* 2. Target the specific USB3 Type-C regulator by its absolute path */
&{/regulator-5v0-vcc-usb3-typec} {
    regulator-always-on;
    regulator-boot-on;
    status = "okay";
};

/* 3. Target the USB3 Host regulator by its absolute path */
&{/regulator-5v0-vcc-usb3-host} {
    regulator-always-on;
    regulator-boot-on;
    status = "okay";
};

 

However this disables OTG and devices with strict udev switching timing requirements fail to switch. So my QHY CCD camera is correctly detected as a westbridge device and udev / fxload commences loading the firmware but the power to the device is toggled and the firmware load fails as a result.

If I plug the QHY CCD in to the USB-C port via a powered USB-C hub then everything works fine. This works because the HUB is providing constant power.

So there appears to be a lot of difference between the Radxa USB-C and Odroid USB-C implementation that will need someone better at kernel stuff than me.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines