mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-20 16:57:58 +07:00
1276187c52
Currently the TIA gain settings are exported to userspace as sysfs entries that do not clearly represent their internal relation to the sampling stages. The gain settings are enabled on a per-stage basis, this can be seen in figure 24 of the current AFE4404 datasheet. These gain settings should therefore be tied to the channels that are read during these stages. Make this change here. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_raw
|
|
Date: May 2016
|
|
KernelVersion:
|
|
Contact: Andrew F. Davis <afd@ti.com>
|
|
Description:
|
|
Get measured values from the ADC for these stages. Y is the
|
|
specific stage number corresponding to datasheet stage names
|
|
as follows:
|
|
1 -> LED2
|
|
2 -> ALED2/LED3
|
|
3 -> LED1
|
|
4 -> ALED1/LED4
|
|
Note that channels 5 and 6 represent LED2-ALED2 and LED1-ALED1
|
|
respectively which simply helper channels containing the
|
|
calculated difference in the value of stage 1 - 2 and 3 - 4.
|
|
The values are expressed in 24-bit twos complement.
|
|
|
|
What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_offset
|
|
Date: May 2016
|
|
KernelVersion:
|
|
Contact: Andrew F. Davis <afd@ti.com>
|
|
Description:
|
|
Get and set the offset cancellation DAC setting for these
|
|
stages. The values are expressed in 5-bit sign-magnitude.
|
|
|
|
What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_resistance
|
|
What: /sys/bus/iio/devices/iio:deviceX/in_intensityY_capacitance
|
|
Date: May 2016
|
|
KernelVersion:
|
|
Contact: Andrew F. Davis <afd@ti.com>
|
|
Description:
|
|
Get and set the resistance and the capacitance settings for the
|
|
Transimpedance Amplifier during the associated stage.
|
|
|
|
What: /sys/bus/iio/devices/iio:deviceX/out_currentY_raw
|
|
Date: May 2016
|
|
KernelVersion:
|
|
Contact: Andrew F. Davis <afd@ti.com>
|
|
Description:
|
|
Get and set the LED current for the specified LED active during
|
|
this stage. Y is the specific stage number.
|