Dear :
Could you help me provide TUSB546-DCI reference driver code , I need I2C communication way , many thanks~
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dear :
Could you help me provide TUSB546-DCI reference driver code , I need I2C communication way , many thanks~
Hi Malik:
GPIO driver code ? or any similar function driver code is ok . many thanks~
reference code will be fast to design , but configurate register is more complicated;
Sorry no example code exists, You can find some example pseudo-code/register configurations below. The TUSB54-DCi is typically configured by the PD controller with is own stand alone GUI for these configurations I2C or GPIO mode.
// (address, data)
// Initial power-on configuration.
(0x0A, 0x11), // EQ_OVERRIDE and USB3.1 default.
(0x10, 0x55), // DP lanes 0 and 1 EQ
(0x11, 0x55), // DP lanes 2 and 2 EQ
(0x20, 0x11), // USB-C Rx1/Rx2 EQ. Not used in Full AEQ
(0x21, 0x05), // SSTX receiver EQ.
// Controls when selecting between USB and DP modes.
If (USBonly_normal) {
(0x0A,0x11); }
Else if (USBonly_flip) {
(0x0A, 0x15); }
Else if (Dponly_normal) {
(0x0A, 0x12); }
Else if (Dponly_flip) {
(0x0A, 0x16); }
Else if (DPUSB_normal) {
(0x0A, 0x13); }
Else if (DPUSB_flip) {
(0x0A,0x17); }
Else // Nothing connected to Type-C {
(0x0A, 0x10); }