This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:tools-software:linux-drivers:iio-adc:ad7606 [27 Apr 2016 17:10] – fix typo Lars-Peter Clausen | resources:tools-software:linux-drivers:iio-adc:ad7606 [15 Mar 2017 22:06] – [Example platform device initialization] Lars-Peter Clausen | ||
---|---|---|---|
Line 31: | Line 31: | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
- | | driver | + | |
| driver | | driver | ||
| driver | | driver | ||
Line 40: | Line 39: | ||
{{page> | {{page> | ||
- | |||
- | The reference voltage may vary between boards and models. The platform_data for the device' | ||
- | |||
- | <code c> | ||
- | /** | ||
- | * struct ad7606_platform_data - platform/ | ||
- | * @default_os: | ||
- | * @default_range: | ||
- | * @gpio_convst: | ||
- | * @gpio_reset: | ||
- | * @gpio_range: | ||
- | * @gpio_os0: | ||
- | * @gpio_os1: | ||
- | * @gpio_os2: | ||
- | * @gpio_frstdata: | ||
- | * @gpio_stby: | ||
- | */ | ||
- | </ | ||
- | |||
- | <source trunk/ | ||
- | |||
- | <code c> | ||
- | static struct ad7606_platform_data ad7606_pdata = { | ||
- | .default_os = 0, | ||
- | .default_range = 10000, | ||
- | .gpio_convst = GPIO_PF9, | ||
- | .gpio_reset = GPIO_PF10, | ||
- | .gpio_range = GPIO_PH0, | ||
- | .gpio_os0 = GPIO_PH1, | ||
- | .gpio_os1 = GPIO_PH2, | ||
- | .gpio_os2 = GPIO_PH3, | ||
- | .gpio_frstdata = -1, | ||
- | .gpio_stby = GPIO_PF12, | ||
- | }; | ||
- | </ | ||
- | |||
====== Example platform_device initialization / parallel interface ====== | ====== Example platform_device initialization / parallel interface ====== | ||