xref: /openbmc/linux/Documentation/ABI/testing/sysfs-bus-iio-chemical-sgp40 (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1*1081b9d9SAndreas KlingerWhat:		/sys/bus/iio/devices/iio:deviceX/out_temp_raw
2*1081b9d9SAndreas KlingerDate:		August 2021
3*1081b9d9SAndreas KlingerKernelVersion:	5.15
4*1081b9d9SAndreas KlingerContact:	Andreas Klinger <ak@it-klinger.de>
5*1081b9d9SAndreas KlingerDescription:
6*1081b9d9SAndreas Klinger		Set the temperature. This value is sent to the sensor for
7*1081b9d9SAndreas Klinger		temperature compensation.
8*1081b9d9SAndreas Klinger		Default value: 25000 (25 °C)
9*1081b9d9SAndreas Klinger
10*1081b9d9SAndreas KlingerWhat:		/sys/bus/iio/devices/iio:deviceX/out_humidityrelative_raw
11*1081b9d9SAndreas KlingerDate:		August 2021
12*1081b9d9SAndreas KlingerKernelVersion:	5.15
13*1081b9d9SAndreas KlingerContact:	Andreas Klinger <ak@it-klinger.de>
14*1081b9d9SAndreas KlingerDescription:
15*1081b9d9SAndreas Klinger		Set the relative humidity. This value is sent to the sensor for
16*1081b9d9SAndreas Klinger		humidity compensation.
17*1081b9d9SAndreas Klinger		Default value: 50000 (50 % relative humidity)
18*1081b9d9SAndreas Klinger
19*1081b9d9SAndreas KlingerWhat:		/sys/bus/iio/devices/iio:deviceX/in_resistance_calibbias
20*1081b9d9SAndreas KlingerDate:		August 2021
21*1081b9d9SAndreas KlingerKernelVersion:	5.15
22*1081b9d9SAndreas KlingerContact:	Andreas Klinger <ak@it-klinger.de>
23*1081b9d9SAndreas KlingerDescription:
24*1081b9d9SAndreas Klinger		Set the bias value for the resistance which is used for
25*1081b9d9SAndreas Klinger		calculation of in_concentration_input as follows:
26*1081b9d9SAndreas Klinger
27*1081b9d9SAndreas Klinger		x = (in_resistance_raw - in_resistance_calibbias) * 0.65
28*1081b9d9SAndreas Klinger
29*1081b9d9SAndreas Klinger		in_concentration_input = 500 / (1 + e^x)
30*1081b9d9SAndreas Klinger
31*1081b9d9SAndreas Klinger		Default value: 30000
32