Firefly Open Source Community

   Login   |   Register   |
New_Topic
12
New Topic
Print Previous Topic Next Topic

USB-C DisplayPort/HDMI

83

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
83

USB-C DisplayPort/HDMI

Posted at 6/27/2017 02:00:17      View:11963 | Replies:11        Print      Only Author   [Copy Link] 1#
Is video output over USB-C port enabled in the Ubuntu image? Has anybody got it working?  If so, what is required?
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 6/27/2017 10:38:10        Only Author  2#
Yes ,It can
Reply

Use props Report

83

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
83
Posted at 6/27/2017 22:48:57        Only Author  3#
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/
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 6/28/2017 10:56:23        Only Author  4#
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


Reply

Use props Report

83

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
83
Posted at 6/28/2017 20:44:56        Only Author  5#
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

Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 6/29/2017 09:33:25        Only Author  6#
still don't work? I will check it later.
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 6/29/2017 09:57:49        Only Author  7#
my workmate have check it is workable.
so ,please check your hardware by using android OS.
Reply

Use props Report

83

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
83
Posted at 6/29/2017 10:39:15        Only Author  8#
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?
Reply

Use props Report

83

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
83
Posted at 6/29/2017 21:11:18        Only Author  9#
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.
Reply

Use props Report

83

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
83
Posted at 6/30/2017 02:49:38        Only Author  10#
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.
Reply

Use props Report

Return to List
12
You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list