Linux 6.7-rc7
[linux-modified.git] / Documentation / ABI / testing / sysfs-bus-iio-dac-ltc2688
1 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_en
2 KernelVersion:  5.18
3 Contact:        linux-iio@vger.kernel.org
4 Description:
5                 Dither enable. Write 1 to enable dither or 0 to disable it. This is useful
6                 for changing the dither parameters. They way it should be done is:
7
8                 - disable dither operation;
9                 - change dither parameters (eg: frequency, phase...);
10                 - enabled dither operation
11
12 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_raw
13 KernelVersion:  5.18
14 Contact:        linux-iio@vger.kernel.org
15 Description:
16                 This raw, unscaled value refers to the dither signal amplitude.
17                 The same scale as in out_voltageY_raw applies. However, the
18                 offset might be different as it's always 0 for this attribute.
19
20 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_raw_available
21 KernelVersion:  5.18
22 Contact:        linux-iio@vger.kernel.org
23 Description:
24                 Available range for dither raw amplitude values.
25
26 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_offset
27 KernelVersion:  5.18
28 Contact:        linux-iio@vger.kernel.org
29 Description:
30                 Offset applied to out_voltageY_dither_raw. Read only attribute
31                 always set to 0.
32
33 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_frequency
34 KernelVersion:  5.18
35 Contact:        linux-iio@vger.kernel.org
36 Description:
37                 Sets the dither signal frequency. Units are in Hz.
38
39 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_frequency_available
40 KernelVersion:  5.18
41 Contact:        linux-iio@vger.kernel.org
42 Description:
43                 Returns the available values for the dither frequency.
44
45 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_phase
46 KernelVersion:  5.18
47 Contact:        linux-iio@vger.kernel.org
48 Description:
49                 Sets the dither signal phase. Units are in Radians.
50
51 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_dither_phase_available
52 KernelVersion:  5.18
53 Contact:        linux-iio@vger.kernel.org
54 Description:
55                 Returns the available values for the dither phase.
56
57 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_toggle_en
58 KernelVersion:  5.18
59 Contact:        linux-iio@vger.kernel.org
60 Description:
61                 Toggle enable. Write 1 to enable toggle or 0 to disable it. This is
62                 useful when one wants to change the DAC output codes. The way it should
63                 be done is:
64
65                 - disable toggle operation;
66                 - change out_voltageY_raw0 and out_voltageY_raw1;
67                 - enable toggle operation.
68
69 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw0
70 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw1
71 KernelVersion:  5.18
72 Contact:        linux-iio@vger.kernel.org
73 Description:
74                 It has the same meaning as out_voltageY_raw. This attribute is
75                 specific to toggle enabled channels and refers to the DAC output
76                 code in INPUT_A (_raw0) and INPUT_B (_raw1). The same scale and offset
77                 as in out_voltageY_raw applies.
78
79 What:           /sys/bus/iio/devices/iio:deviceX/out_voltageY_symbol
80 KernelVersion:  5.18
81 Contact:        linux-iio@vger.kernel.org
82 Description:
83                 Performs a SW toggle. This attribute is specific to toggle
84                 enabled channels and allows to toggle between out_voltageY_raw0
85                 and out_voltageY_raw1 through software. Writing 0 will select
86                 out_voltageY_raw0 while 1 selects out_voltageY_raw1.