Aspeed SPI driver upstreaming
patrick at stwcx.xyz
Tue Jan 7 10:27:22 AEDT 2020
There is currently the aspeed-smc driver, which is upstreamed, but only
supports spi-nor devices. There also a more generic spi-aspeed
driver, which might only exist in Facebook kernel trees, that
supports all spi devices but it doesn't do the calibration work.
I made some changes to the spi-aspeed driver recently in order to get it
to somewhat support TPM 2.0 devices (*). The spi-aspeed driver also
already supported generic spi-nor MTD devices, but just at a slower
speed than aspeed-smc due to missing the calibration routines.
Tao mentioned to me that there was a discussion at one of the F2F events
in 2019 about combining those two drivers and getting them upstreamed,
but that the hang-up was getting upstream mtd and spi subsystems to
agree on how to handle calibration routines in the spi subsystem? I
can't seem to find anything about this on the LKML. Do either of you
know where that discussion went and what the current state / plans of
upstreamming a generic Aspeed SPI driver are?
(*) The Aspeed SPI master is half-duplex and the TPM SPI spec effectively
requires full duplex hardware. I did some workarounds to get it to work
with one particular part and need to work with the vendor and upstream
to figure out the best way to reliably handle half-duplex SPI masters.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the openbmc