Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | What: /sys/bus/iio/devices/iio:deviceX/in_voltage_spi_clk_freq |
| 2 | KernelVersion: 4.14 |
| 3 | Contact: arnaud.pouliquen@st.com |
| 4 | Description: |
| 5 | For audio purpose only. |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 6 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | Used by audio driver to set/get the spi input frequency. |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 8 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 9 | This is mandatory if DFSDM is slave on SPI bus, to |
| 10 | provide information on the SPI clock frequency during runtime |
| 11 | Notice that the SPI frequency should be a multiple of sample |
| 12 | frequency to ensure the precision. |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 13 | |
| 14 | if DFSDM input is SPI master: |
| 15 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 16 | Reading SPI clkout frequency, |
| 17 | error on writing |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 18 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 19 | If DFSDM input is SPI Slave: |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 20 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 21 | Reading returns value previously set. |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 22 | Writing value before starting conversions. |