#
#asahi-re · 2021-01-05 09:35
marcanTI's documentation is horrible on this whole thing, but that's how it actually works
#asahi-re · 2021-01-05 09:34
marcanrwhitby: the PD controller firmware on those TI devices is actually an internal OTP/ROM thing; the external SPI flash only loads *overrides* for the internal ROM code
#asahi-re · 2021-01-05 09:10
rwhitbyThe PD controller firmware should be in an external SPI flash if it's the same as the regular TI devices. The TBT controller usually shares the flash.
#asahi-re · 2021-01-05 09:06
marcanI have the flash area decompiled, but it only overrides some hookable ROM functions, so it's hard to see the overall code flow, you only get what they added/redid
#asahi-re · 2021-01-05 09:05
marcanfor machines with the same chip I mean
#asahi-re · 2021-01-05 09:05
marcankeep in mind those controllers have a flashed firmware that overrides ROM methods, but I *think* Apple uses the same exact firmware for all Intel macs and probably the M1 ones too? only the parameter area varies for each Intel one
#asahi-re · 2021-01-05 09:05
marcanI am not familiar with the MIPI thing, thanks, I'll take a look :)
#asahi-re · 2021-01-05 09:04
marcanrwhitby: that came from the t8021 guys, and they said it works on the Intel ones maybe? but I'm not sure tbh
#asahi-re · 2021-01-05 08:12
rwhitbyIn other news, it seems my 16" MacBook Pro has the same PD controller (CD3217B12) as the M1. So I will document it as well and see if they match.
#asahi-re · 2021-01-05 08:00
rwhitbymarcan: are you familiar with the MIPI Narrow Interface for Debug and Test (MIPI NIDnT) https://www.mipi.org/specifications/nidnt ? It contains a structured VDM protocol for remapping debug pins on a Type-C connector. At first glance it doesn't seem to match here, but I'm wondering if any of the concepts have been reused, so thought you might be interested if you haven't seen it before.
#asahi-re · 2021-01-05 07:51
rwhitbymarcan: Re: 0x012: Bit24: "Persist through soft reset. This doesn't seem to work on M1 Macs (the PD controller reboots when the system reboots)." - I think that's referring to a USB-PD Soft Reset rather than a system reboot (or am I misreading what you've written there?).
#asahi-re · 2021-01-05 07:40
marcan(writing some website docs now, will get back to hardware in a bit)
#asahi-re · 2021-01-05 07:39
marcanthanks!
#asahi-re · 2021-01-05 07:38
rwhitbymarcan: https://gist.github.com/rwhitby/c7547dfe648a2554ca9b337154d97e26 shows the action list responses for Alpine Ridge and Titan Ridge laptops. I updated https://github.com/AsahiLinux/docs/wiki/Hardware:USB-PD and will continue to add information as I explore the 0x11 and 0x12 responses. I need to acquire 1.2V UART capability before going further :-)