antmicro / antmicro-jetson-orin-baseboard-kernel-5-10

Other
2 stars 2 forks source link

USB Power Delivery Controller (PDC) Disabled #1

Open wbenoot opened 1 year ago

wbenoot commented 1 year ago

I have a question regarding the USB-C DP on the Antmicro Orin Baseboard and the accompanying Device Tree in this custom kernel. The power over USB on the two USB-C (DBG and most left) ports did not work out-of-the-box on our test board. On further inspection of the DTS, I found the "tegra234-antmicro-job-usb.dtsi" file in which the status of both PDCs is set to "disabled".

/*
* TPS65988 dual-port USB-C Power Delivery controller
* port1 is USBC3 (J3) @ i2c_addr=h23
* port2 is USBC0 (J4) @ i2c_addr=h27
*/

job_usbc3_pdc: tps65988@23 {
  compatible = "ti,tps6598x";
  status = "disabled";
  reg = <0x23>;
};

job_usbc0_pdc: tps65988@27 {
  compatible = "ti,tps6598x";
  status = "disabled";
  reg = <0x27>;
};

Can I presume that power over USB-C is turned off by default in the PD Controller (TPS65988)? Should I enable it using an appropriate I2C command? Or does enabling it in the DTSI file and reflashing the board also allow power over USB?

Thanks in advance to anyone who can clear this up!

chicoband commented 5 months ago

Hey @wbenoot Did enabling it work?