Skip to content

usb: typec: tpid: Allow to fetch firmware code version via debugfs

This can be very useful for in field debugging as different TI firmwares have different bugs.

The TI firmware version TPS65981_2_6_v0001_12_09.bin ends up as:

$ cat /sys/kernel/debug/tps6598x/0-003f/code_version 0001.12.09

It's decoded according to "1.3.2 Unique Address Interface Registers" of the TPS5986's reference manual.

I'll move this upstream as well if nothing pops up here.

Merge request reports