Firefly Open Source Community

Title: USB-C DisplayPort/HDMI [Print This Page]

Author: crashoverride    Time: 6/27/2017 02:00
Title: USB-C DisplayPort/HDMI
Is video output over USB-C port enabled in the Ubuntu image? Has anybody got it working?  If so, what is required?
Author: isle    Time: 6/27/2017 10:38
Yes ,It can
Author: crashoverride    Time: 6/27/2017 22:48
Using the latest kernel, I get the following errors:
  1. [ 2387.961730] fusb302 4-0022: CC connected in 0 as DFP
  2. [ 2388.451948] fusb302 4-0022: PD connected as DFP, supporting 5V
  3. [ 2388.554799] fusb302 4-0022: DP config successful, pin_assignment 0x8
  4. [ 2388.563026] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Connected, not enabled. Enabling cdn
  5. [ 2388.595903] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
  6. [ 2388.597416] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 6
  7. [ 2388.597647] xhci-hcd xhci-hcd.6.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x00030010
  8. [ 2388.597697] xhci-hcd xhci-hcd.6.auto: irq 227, io mem 0xfe800000
  9. [ 2388.597861] usb usb6: New USB device found, idVendor=1d6b, idProduct=0002
  10. [ 2388.597869] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
  11. [ 2388.597877] usb usb6: Product: xHCI Host Controller
  12. [ 2388.597884] usb usb6: Manufacturer: Linux 4.4.55 xhci-hcd
  13. [ 2388.597890] usb usb6: SerialNumber: xhci-hcd.6.auto
  14. [ 2388.598740] hub 6-0:1.0: USB hub found
  15. [ 2388.598787] hub 6-0:1.0: 1 port detected
  16. [ 2388.599176] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller
  17. [ 2388.599511] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 8
  18. [ 2388.599673] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM.
  19. [ 2388.599794] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003
  20. [ 2388.599802] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
  21. [ 2388.599809] usb usb8: Product: xHCI Host Controller
  22. [ 2388.599816] usb usb8: Manufacturer: Linux 4.4.55 xhci-hcd
  23. [ 2388.599822] usb usb8: SerialNumber: xhci-hcd.6.auto
  24. [ 2388.600850] hub 8-0:1.0: USB hub found
  25. [ 2388.600895] hub 8-0:1.0: 1 port detected
  26. [ 2388.601348] rockchip-dwc3 usb@fe800000: USB HOST connected
  27. [ 2389.065153] fusb302 4-0022: attention, dp_status 9a
  28. [ 2389.563318] fusb302 4-0022: attention, dp_status 9a
  29. [ 2390.061664] fusb302 4-0022: attention, dp_status 9a
  30. [ 2393.744001] cdn-dp fec00000.dp: [drm:cdn_dp_get_sink_capability] *ERROR* Get sink capability timed out
  31. [ 2393.744911] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] *ERROR* Enable dp failed -110
  32. [ 2393.745674] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] Connected, not enabled. Enabling cdn
  33. [ 2398.929957] cdn-dp fec00000.dp: [drm:cdn_dp_get_sink_capability] *ERROR* Get sink capability timed out
  34. [ 2398.930868] cdn-dp fec00000.dp: [drm:cdn_dp_pd_event_work] *ERROR* Enable dp failed -110
Copy the code


This indicates a failure getting the capabilities (DPCD) via the firmware:
https://gitlab.com/TeeFirefly/li ... -dp-core.c#L412-413
https://gitlab.com/TeeFirefly/li ... n-dp-reg.c#L224-253

Since the above failure is a firmware call, there is no additional source code for debugging.  It appears a DisplayPort firmware update will be required to address the issue.

The DisplayPort chip being used is the Parade PS176HDM verified by visual inspection of the USB-C to HDMI adapter.
https://www.paradetech.com/products/ps176/
Author: isle    Time: 6/28/2017 10:56
please refer:
commit ffc1a16eb9081347d4c32b9b2332d7d4e5b1fcd5
Author: zouxf <zxf@t-tchip.com.cn>
Date:   Fri Jun 9 16:42:33 2017 +0800

    ARM64: firmware: Add rockchip DisplayPort Firmware
   
    Note:
    In linux rootfs, need to copy dptx.bin to /lib/firmware/rockchip/dptx.bin
   
    Change-Id: I5a3e2fff11fc4c070ac48ea6da25e00eec9a3089



Author: crashoverride    Time: 6/28/2017 20:44
I have confirmed the firmware is present:

  1. firefly@firefly:~$ ll /lib/firmware/rockchip/dptx.bin
  2. -rwxr-xr-x 1 root root 98320 Jun 27 11:45 /lib/firmware/rockchip/dptx.bin*
  3. firefly@firefly:~$ sha1sum /lib/firmware/rockchip/dptx.bin
  4. cc53602806f9e9b3b57a652c85d3e8eb71d011f0  /lib/firmware/rockchip/dptx.bin
Copy the code


Author: isle    Time: 6/29/2017 09:33
still don't work? I will check it later.
Author: isle    Time: 6/29/2017 09:57
my workmate have check it is workable.
so ,please check your hardware by using android OS.
Author: crashoverride    Time: 6/29/2017 10:39
I will test with the Android image.  Since there is more than one Android image on the download page, can you please explicitly state which image file I should download and test?
Author: crashoverride    Time: 6/29/2017 21:11
I tested with the following Android "Firefly-RK3399_Android7.1.1_MP_170626.7z" image:
https://drive.google.com/drive/f ... gAqAbFQxWDFiNnY1MDg

No display was available over USB-C with the HDMI adapter.  The TV shows "No Signal" just as it does in Ubuntu.

Also of note is that changing the display input on the TV connected to the HDMI port causes Android to display garbage when switched back to the Firefly RK3399 device.  This, however, is a topic for a different thread and of no concern to me since I do not use Android.

I can post a link to the adapter for purchase if requested.  This would allow the Firefly team to reproduce the issue.  The adapter is similar to the Apple USB-C Digital AV Multiport adapter.  It has HDMI and USB-A (3.0) connectors with an additional USB-C port for attaching a charger.
Author: crashoverride    Time: 6/30/2017 02:49
Some additional information follows:

The USB-C chip used in the adapter is:
http://www.legendary.net.cn/html/product/TYPE-C/201507/791.html
LDR6023 is a dual port USB Type-C controller with Display port Alternate mode supported,
especially design for USB PD Docking Stations with video output.


The datasheet is also available from the above link.

Author: isle    Time: 7/3/2017 09:50
what we used is these : https://item.taobao.com/item.htm ... o=pcqq.temporaryc2c
or
https://detail.tmall.com/item.ht ... e8c67ff74ef5fe76b56

Author: crashoverride    Time: 7/4/2017 04:26
I have tested with a USB-C to HDMI adapter that does not have a USB-A or charging port.  When connecting the device, no output is available.  Rebooting the device with the adapter already connected does work when connected to a 1080p monitor.  However, when connected to a 4K monitor, the RK3399 board will lock up at boot and display garbage.

I require the use of USB-A (3.0) in addition to DisplayPort/HDMI simultaneously over the USB-C port.  Please provide a firmware update that allows this functionality.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1