super_star

TYPE-C to HDMI+USB3.1+PD

 
Overview

0. There is a new version that uses the TYPE-C female socket with the MUX chip inserted in both directions. It is recommended to make a new version
https://oshwhub.com/aknice/dai-mux-de-type-c-zhuan-hdmi-usb3-1-pd
 
Errata
Today, I checked and found that the Q1 and Q5 MOS tubes were connected incorrectly (as shown above). The correct connection method is as shown below. This connection error does not affect normal use. This MOS is only used for discharge when unplugged. It has been corrected. Thanks to @雷老师讲电子 Errata
 
1. Introduction
CS5266 is a USB TYPE-C to HDMI1.4b 4K-30Hz controller with PD3.0 and USB3.1.
Compatible with Nintendo SWITCH and most Win notebooks.
 
 
2. Type-C DP Knowledge Supplement
Regarding the Type-C head, in fact, most of the Type-C expansion docks with video output sold on the market
are either directly plugged in with a male head like mine or
with a small tail. To put it bluntly, it is called a urine bag design,
and the latter is the majority.
Why is their design so stupid? Why not make a Type-C expansion dock with a female head, and then connect it with a male-to-male cable, so that the cable and the machine are separated, which is not only easy to store but also beautiful .
In fact, there are also such split expansion docks, but they are very expensive
. In fact, this is related to the characteristics of Type-C.
The following is my personal opinion and the information I have collected. If there are any errors, please point them out.
First of all, we know what each signal pin of the 24P full-function Type-C does.
2.1 The function of each line [1]
In USB3.2 Gen1 and Gen2, Type-C uses a set of two differential pairs of four lines to implement 5Gbps and 10Gbps transmit and receive signals respectively, namely SSTX differential pair and SSRX differential pair.
There is also a set of differential transmission signals of USB2.
2.2 Regarding TYPE-C video transmission [2]
First, please pay attention to the difference between DP (DisplayPort) and PD (USB Power Delivery).
USB PD is transmitted on the CC (Configuration Channel) pin. PD has a VDM (Vendor defined message) function that defines the device ID. When a device that supports DP or PCIe is read, DFP enters alternate mode.
If DFP recognizes the device as DP, it switches the MUX/Configuration Switch to change the Type-C USB3.1 signal pin to transmit DP signal. AUX auxiliary is transmitted by Type-C's SBU1 and SUB2. HPD is a detection pin, which is similar to CC, so it is shared.
A complete DP interface also contains 4 pairs of main connection differential pairs. Mian Link Lane 0~3
DP can also work in the mode of only ML0 and ML1.
For TYPE-C DP transmission, there are three modes in total
(1) DP Alt Mode 4Lane DP has four sets of differential signals in lanes 0-3, and Type-C has RX/TX1-2 which are also four sets of differential signals, so complete replacement is no problem.
 
(2) DP Alt Mode 2Lane
Alternative mode in the DP protocol, USB signal and DP signal can be transmitted simultaneously, RX/TX1 transmits USB data, RX/TX2 is replaced by two groups of data transmission in lanes 0 and 1, and it can support up to 4k
(3) Virtual Link
Virtual Link, sets the USB2.0 pin to USB3.2 Gen1 or Gen2, which is developed for VR applications. Nvidia's 2000 series and AMD's 6000 series graphics cards equipped with Type-C support this mode.
Most of the commonly used ones are 2Lane mode, which is also the mode
2.3 of our CS5266 chip. Alt Mode requires a multiplexer [3][4]
(This document is from TI)
Based on the requirements of a specific Alt Mode standard, a single Type-C interface can host one or more protocols. For
example, the Alt Mode of the Video Electronics Standards Association (VESA) DisplayPort on the Type-C standard can establish a 4-channel DisplayPort, and can also establish USB3.1 and DisplayPort simultaneously. With multi-protocol support and reversible Type-C, multiplexing between different protocols is necessary to connect data and video sources to the appropriate terminals.
On the source side, the multiplexer (MUX) switches the USB and DP channels to the appropriate high-speed channels. On the receiver side, the multiplexer takes the 4 high-speed channels from Type-C as input and distributes the signals to the USB receiver or DP receiver accordingly. Figure 4 (below) shows the source-receiver signal path of advanced Alt Mode communication and the placement of the multiplexer.
DisplayPort is the most popular Alt Mode type today, and it also supports high-resolution video output. In order to meet different applications and the reversible plug-in characteristics of Type-C, these 4 different signal configuration cases require multiplexers to support:
In this document, it is mentioned that a Type-C Alt Mode switcher with a built-in linear repeater (Mux) can perform channel equalization and ensure signal output quality. Repeaters are directional and can only relay signals in a specific direction. Therefore, the signal receiving/transmitting end should be equipped with a Type-C Alt Mode repeater/switch. Figure 7 (above) shows the use case of the transmitting and receiving end.
So to sum up, when making USB-C DP, a repeater (Mux) is actually required. It can compensate for the signal and, most importantly, cross the signal.
 
However, in fact, most docking stations with video output, a small tail or a male connector only have a PD controller and no MUX.
This is because this Type-C definition is directly soldered instead of allowing a Type-C port to be plugged in at will. Therefore, when designing, there is no need for a MUX to deal with the forward and reverse insertion of the Type-C. This is also mentioned in the Cypress guidance [5].
If you are using type-C receptacle and plug combination you will not need a switch. If you have both USB-C connectors as receptacles, connected via a type-C cable (EMCA) then you will require a switch.DP source (FPGA ) <---->Switch<------> USB-C receptacle <---------------------> USB-C plug <-- ----> DP sink (FPGA)otherwise,DP source (FPGA) <-----> Switch <-----> USB-C receptacle <---------- USB-C cable ----------> USB-C receptacle <-----> Switch <-----> DP sink (FPGA)
 
Therefore, the conclusion is that using a small tail or a male connector to directly connect to the PD controller can save a MUX chip.
 
In addition, the MUX chip is for DP transmission. USB transmission also requires a flip chip, for example The commonly used VL160
can be found in this article https://blog.csdn.net/ai126323/article/details/120333537
for a detailed explanation of the flipping of the TYPE-C cable.
For the MUX project, you can check out this big guy's Engineering
https://oshwhub.com/lemon_wifi/CH543
 
References:
[1]^USB-PD3.0 (Power Delivery) charging protocol https://blog.csdn.net/ai126323/article/details/120333537
[2] ^Introduction to Type C & DP https://blog.csdn.net/u010538116/article/details/122776717
[3]^USB Type-C Alternative Mode: Beyond USB https://zhuanlan.zhihu.com/p/335164290
[4]^Type-C Extender Solution Guide (DP Alternative Mode) https://zhuanlan.zhihu.com/p /342165494/#ref_8
[5]^Cypress, Question whether it is necessary to use a MUX on the device side https://community.cypress.com/t5/USB-EZ-PD-Type-C/do-we-need-a-switch -like-PS8740B-on-both-the-source-and-sink/td-p/187782?start=0&tstart=0
3. It
is compatible with Nintendo SWITCH (OLED version)
15V fast charge + HDMI output
Most Windows laptops
20V fast charge + HDMI output + USB3 transmission
 
USB3 transmission is measured, and the hard disk limit is not too high.
About CC pin PD and DP communication
charger CC provides charging specification selection
PD controller selects power specification
VDM, Enter the alternative mode
to confirm that DP
is consistent with the DP communication process supplemented in 2 above.
4. The LAYOUT part
uses a 1.0 board thickness, a four-layer board, and an impedance structure JLC04101H-7628, which can be used for free
HDMI. The DP part uses 100 The 90 ohm impedance matches
the B2, B3, A10, and A11 of TYPE-C. The D0, D1, D2, and CLK signals of HDMI need to go through
 
 
the USB part. The 90 ohm impedance matches
the A2, A3, A6, A7, B10, and B11 signals of TYPE-C. Need to go to
5. Chip purchase
According to other friends, the CS5266 chip he bought does not recognize NS but only WIN laptops. As far as
I know, there are also CS5266 with MAC laptop firmware and firmware with MUX chip control, which may be compatible with different devices. No.
I bought the chip here, you can place an order directly
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.6d9b2e8dJXyE26&id=652192213048&_u=7qavhl896d3
6. Actual test video
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-22 20:03:52

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号