What is the best option to write/read complete configuration to the chip, if I'm using a IIO driver? With 'complete configuration' I mean a file (e.g chip_config.cfg) where are the values of all registers of that chip in some specific format.
What options do I know now:
- Device attribute - can be created directly from IIO framework, however it should be used only for one value. Also can read only 4096 bytes of data.
- Open file from kernel -
kernel_read_file()
and similar functions, but strictly prohibited. - Firmware framework - only write.
- debugfs - we do not want to use this.
Thank you for every suggestion.