124b9dea7SAndrew F. DavisWhat: /sys/bus/iio/devices/iio:deviceX/in_intensityY_raw 224b9dea7SAndrew F. DavisDate: May 2016 387aec56eSAndrew F. DavisKernelVersion: 487aec56eSAndrew F. DavisContact: Andrew F. Davis <afd@ti.com> 587aec56eSAndrew F. DavisDescription: 687aec56eSAndrew F. Davis Get measured values from the ADC for these stages. Y is the 724b9dea7SAndrew F. Davis specific stage number corresponding to datasheet stage names 824b9dea7SAndrew F. Davis as follows: 954a19b4dSMauro Carvalho Chehab 1054a19b4dSMauro Carvalho Chehab == ========== 1154a19b4dSMauro Carvalho Chehab 1 LED2 1254a19b4dSMauro Carvalho Chehab 2 ALED2/LED3 1354a19b4dSMauro Carvalho Chehab 3 LED1 1454a19b4dSMauro Carvalho Chehab 4 ALED1/LED4 1554a19b4dSMauro Carvalho Chehab == ========== 1654a19b4dSMauro Carvalho Chehab 1724b9dea7SAndrew F. Davis Note that channels 5 and 6 represent LED2-ALED2 and LED1-ALED1 1824b9dea7SAndrew F. Davis respectively which simply helper channels containing the 1924b9dea7SAndrew F. Davis calculated difference in the value of stage 1 - 2 and 3 - 4. 2024b9dea7SAndrew F. Davis The values are expressed in 24-bit twos complement. 21*cff8431bSJonathan Cameron The LED current for the stage is controlled via 22*cff8431bSJonathan Cameron out_currentY_raw. 2387aec56eSAndrew F. Davis 2424b9dea7SAndrew F. DavisWhat: /sys/bus/iio/devices/iio:deviceX/in_intensityY_offset 2524b9dea7SAndrew F. DavisDate: May 2016 2687aec56eSAndrew F. DavisKernelVersion: 2787aec56eSAndrew F. DavisContact: Andrew F. Davis <afd@ti.com> 2887aec56eSAndrew F. DavisDescription: 2987aec56eSAndrew F. Davis Get and set the offset cancellation DAC setting for these 3087aec56eSAndrew F. Davis stages. The values are expressed in 5-bit sign-magnitude. 3187aec56eSAndrew F. Davis 321276187cSAndrew F. DavisWhat: /sys/bus/iio/devices/iio:deviceX/in_intensityY_resistance 331276187cSAndrew F. DavisWhat: /sys/bus/iio/devices/iio:deviceX/in_intensityY_capacitance 341276187cSAndrew F. DavisDate: May 2016 351276187cSAndrew F. DavisKernelVersion: 361276187cSAndrew F. DavisContact: Andrew F. Davis <afd@ti.com> 371276187cSAndrew F. DavisDescription: 381276187cSAndrew F. Davis Get and set the resistance and the capacitance settings for the 391276187cSAndrew F. Davis Transimpedance Amplifier during the associated stage. 40