Other Parts Discussed in Thread: TPS65982,
Tool/software: Linux
Hi,
I am working on a custom platform, running on linux, which uses TPS65981. The TPS65981 is connected to an application processor through I2C interface. An SPI Flash is connected to TPS65981 as shown in the block diagram.
There should be a firmware image or binary file, representing Application Code, that has to be loaded to the SPI flash in order to configure and initialize TPS65981. Can you provide inputs on how to generate the firmware image using TI's Configuration Tool and how to validate it?
I have used an open source device driver, tps6598x.c, for TPS65981.
Link - https://github.com/torvalds/linux/blob/master/drivers/usb/typec/tps6598x.c
But I don't see any support for programming the firmware to the external SPI flash in the above device driver.
Assuming that the firmware image or binary file has been successfully generated from TI's configuration tool, then how can I accommodate to program the SPI flash?
You may also share a reference device driver, if available, that can support SPI Flash programming.
Below is a section of block diagram of the platform.
----------------------------------- ---------------------------------- ------------------------
| | | | | Type-C |
| | | |<--------------------->| Connector |
| Application |<------------->| | --------------------------
| | | |
| Processor | | | --------------------------
| | | TPS65981 | | |
| | | | | SPI |
| | | |<---------------------->| Flash |
----------------------------------- | | | |
| | --------------------------
| |
----------------------------------