Skip to content

[RK3399][C31][DRIVER][DT] Add support for USB Type-C port in OTG mode and DisplayPort Alternate mode

Natalia Kovalenko requested to merge seco_5.10.110_c31_typec_dp into seco_5.10.110

This MR adds USB Type-C port support in OTG mode and DisplayPort alternate mode for RK3399 SoC, as an initial implementation that is already working but needs further testing and debugging.

Test modes:

  • in OTG mode host: SBC-C31 was tested with USB flash drive.
  • in OTG mode device: SBC-C31 was tested as Mass Storage Gadget.
  • in Alternate Mode DisplayPort: SBC-C31 was tested with self-powered display.

Limitations:

  • After unplug of DP Alt Mode display no less than ~5 seconds must pass before switching to OTG mode host by inserting an USB flash drive, otherwise the ports locks up until next power-cycle.
  • Some dmesg EPROBE_DEFER errors, from rk3399 cdn-dp, occur on USB events not of type DP Alt Mode.
Edited by Gianfranco Mariotti

Merge request reports

Loading