aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-02-15 14:30:39 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-15 14:30:39 -0500
commit46f7b635569731ff81a3b72d1bcd4415b293b637 (patch)
treee97e5e28d1768bb281116d92292851758ea20024 /Documentation/ABI
parent9682ec9692e5ac11c6caebd079324e727b19e7ce (diff)
parent533e80b1ea709577ec5cf73b8b566569bc711259 (diff)
Merge tag 'staging-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging drivers patches from Greg KH: "Here's the big staging driver tree update for 3.20-rc1. Lots of little things in here, adding up to lots of overall cleanups. The IIO driver updates are also in here as they cross the staging tree boundry a lot. I2O has moved into staging as well, as a plan to drop it from the tree eventually as that's a dead subsystem. All of this has been in linux-next with no reported issues for a while" * tag 'staging-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (740 commits) staging: lustre: lustre: libcfs: define symbols as static staging: rtl8712: Do coding style cleanup staging: lustre: make obd_updatemax_lock static staging: rtl8188eu: core: switch with redundant cases staging: rtl8188eu: odm: conditional setting with no effect staging: rtl8188eu: odm: condition with no effect staging: ft1000: fix braces warning staging: sm7xxfb: fix remaining CamelCase staging: sm7xxfb: fix CamelCase staging: rtl8723au: multiple condition with no effect - if identical to else staging: sm7xxfb: make smtc_scr_info static staging/lustre/mdc: Initialize req in mdc_enqueue for !it case staging/lustre/clio: Do not allow group locks with gid 0 staging/lustre/llite: don't add to page cache upon failure staging/lustre/llite: Add exception entry check after radix_tree staging/lustre/libcfs: protect kkuc_groups from write access staging/lustre/fld: refer to MDT0 for fld lookup in some cases staging/lustre/llite: Solve a race to access lli_has_smd in read case staging/lustre/ptlrpc: hold rq_lock when modify rq_flags staging/lustre/lnet: portal spreading rotor should be unsigned ...
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-iio200
1 files changed, 199 insertions, 1 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index 117521dbf2b3..9a70c31619ea 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -92,6 +92,18 @@ Description:
92 is required is a consistent labeling. Units after application 92 is required is a consistent labeling. Units after application
93 of scale and offset are millivolts. 93 of scale and offset are millivolts.
94 94
95What: /sys/bus/iio/devices/iio:deviceX/in_currentY_raw
96What: /sys/bus/iio/devices/iio:deviceX/in_currentY_supply_raw
97KernelVersion: 3.17
98Contact: linux-iio@vger.kernel.org
99Description:
100 Raw (unscaled no bias removal etc.) current measurement from
101 channel Y. In special cases where the channel does not
102 correspond to externally available input one of the named
103 versions may be used. The number must always be specified and
104 unique to allow association with event codes. Units after
105 application of scale and offset are milliamps.
106
95What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw 107What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
96KernelVersion: 3.2 108KernelVersion: 3.2
97Contact: linux-iio@vger.kernel.org 109Contact: linux-iio@vger.kernel.org
@@ -234,6 +246,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_accel_y_offset
234What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_offset 246What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_offset
235What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_offset 247What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_offset
236What: /sys/bus/iio/devices/iio:deviceX/in_voltage_offset 248What: /sys/bus/iio/devices/iio:deviceX/in_voltage_offset
249What: /sys/bus/iio/devices/iio:deviceX/in_currentY_offset
250What: /sys/bus/iio/devices/iio:deviceX/in_current_offset
237What: /sys/bus/iio/devices/iio:deviceX/in_tempY_offset 251What: /sys/bus/iio/devices/iio:deviceX/in_tempY_offset
238What: /sys/bus/iio/devices/iio:deviceX/in_temp_offset 252What: /sys/bus/iio/devices/iio:deviceX/in_temp_offset
239What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset 253What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset
@@ -262,9 +276,14 @@ What: /sys/bus/iio/devices/iio:deviceX/in_voltage_scale
262What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_scale 276What: /sys/bus/iio/devices/iio:deviceX/in_voltage-voltage_scale
263What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_scale 277What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_scale
264What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_scale 278What: /sys/bus/iio/devices/iio:deviceX/out_altvoltageY_scale
279What: /sys/bus/iio/devices/iio:deviceX/in_currentY_scale
280What: /sys/bus/iio/devices/iio:deviceX/in_currentY_supply_scale
281What: /sys/bus/iio/devices/iio:deviceX/in_current_scale
265What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale 282What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale
266What: /sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale 283What: /sys/bus/iio/devices/iio:deviceX/in_accel_peak_scale
267What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_scale 284What: /sys/bus/iio/devices/iio:deviceX/in_anglvel_scale
285What: /sys/bus/iio/devices/iio:deviceX/in_energy_scale
286What: /sys/bus/iio/devices/iio:deviceX/in_distance_scale
268What: /sys/bus/iio/devices/iio:deviceX/in_magn_scale 287What: /sys/bus/iio/devices/iio:deviceX/in_magn_scale
269What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale 288What: /sys/bus/iio/devices/iio:deviceX/in_magn_x_scale
270What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale 289What: /sys/bus/iio/devices/iio:deviceX/in_magn_y_scale
@@ -276,6 +295,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_rot_from_north_true_tilt_comp_scale
276What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale 295What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
277What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale 296What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
278What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale 297What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale
298What: /sys/bus/iio/devices/iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_scale
279KernelVersion: 2.6.35 299KernelVersion: 2.6.35
280Contact: linux-iio@vger.kernel.org 300Contact: linux-iio@vger.kernel.org
281Description: 301Description:
@@ -323,6 +343,44 @@ Description:
323 production inaccuracies). If shared across all channels, 343 production inaccuracies). If shared across all channels,
324 <type>_calibscale is used. 344 <type>_calibscale is used.
325 345
346What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
347What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
348What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
349What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender
350KernelVersion: 3.20
351Contact: linux-iio@vger.kernel.org
352Description:
353 Gender of the user (e.g.: male, female) used by some pedometers
354 to compute the stride length, distance, speed and activity
355 type.
356
357What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender_available
358What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available
359What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available
360What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available
361KernelVersion: 3.20
362Contact: linux-iio@vger.kernel.org
363Description:
364 Lists all available gender values (e.g.: male, female).
365
366What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibheight
367What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibheight
368What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibheight
369What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibheight
370KernelVersion: 3.19
371Contact: linux-iio@vger.kernel.org
372Description:
373 Height of the user (in meters) used by some pedometers
374 to compute the stride length, distance, speed and activity
375 type.
376
377What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibweight
378KernelVersion: 3.20
379Contact: linux-iio@vger.kernel.org
380Description:
381 Weight of the user (in kg). It is needed by some pedometers
382 to compute the calories burnt by the user.
383
326What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale_available 384What: /sys/bus/iio/devices/iio:deviceX/in_accel_scale_available
327What: /sys/.../iio:deviceX/in_voltageX_scale_available 385What: /sys/.../iio:deviceX/in_voltageX_scale_available
328What: /sys/.../iio:deviceX/in_voltage-voltage_scale_available 386What: /sys/.../iio:deviceX/in_voltage-voltage_scale_available
@@ -783,6 +841,14 @@ What: /sys/.../events/in_tempY_roc_falling_period
783What: /sys/.../events/in_accel_x&y&z_mag_falling_period 841What: /sys/.../events/in_accel_x&y&z_mag_falling_period
784What: /sys/.../events/in_intensity0_thresh_period 842What: /sys/.../events/in_intensity0_thresh_period
785What: /sys/.../events/in_proximity0_thresh_period 843What: /sys/.../events/in_proximity0_thresh_period
844What: /sys/.../events/in_activity_still_thresh_rising_period
845What: /sys/.../events/in_activity_still_thresh_falling_period
846What: /sys/.../events/in_activity_walking_thresh_rising_period
847What: /sys/.../events/in_activity_walking_thresh_falling_period
848What: /sys/.../events/in_activity_jogging_thresh_rising_period
849What: /sys/.../events/in_activity_jogging_thresh_falling_period
850What: /sys/.../events/in_activity_running_thresh_rising_period
851What: /sys/.../events/in_activity_running_thresh_falling_period
786KernelVersion: 2.6.37 852KernelVersion: 2.6.37
787Contact: linux-iio@vger.kernel.org 853Contact: linux-iio@vger.kernel.org
788Description: 854Description:
@@ -790,6 +856,40 @@ Description:
790 met before an event is generated. If direction is not 856 met before an event is generated. If direction is not
791 specified then this period applies to both directions. 857 specified then this period applies to both directions.
792 858
859What: /sys/.../events/in_activity_still_thresh_rising_en
860What: /sys/.../events/in_activity_still_thresh_falling_en
861What: /sys/.../events/in_activity_walking_thresh_rising_en
862What: /sys/.../events/in_activity_walking_thresh_falling_en
863What: /sys/.../events/in_activity_jogging_thresh_rising_en
864What: /sys/.../events/in_activity_jogging_thresh_falling_en
865What: /sys/.../events/in_activity_running_thresh_rising_en
866What: /sys/.../events/in_activity_running_thresh_falling_en
867KernelVersion: 3.19
868Contact: linux-iio@vger.kernel.org
869Description:
870 Enables or disables activitity events. Depending on direction
871 an event is generated when sensor ENTERS or LEAVES a given state.
872
873What: /sys/.../events/in_activity_still_thresh_rising_value
874What: /sys/.../events/in_activity_still_thresh_falling_value
875What: /sys/.../events/in_activity_walking_thresh_rising_value
876What: /sys/.../events/in_activity_walking_thresh_falling_value
877What: /sys/.../events/in_activity_jogging_thresh_rising_value
878What: /sys/.../events/in_activity_jogging_thresh_falling_value
879What: /sys/.../events/in_activity_running_thresh_rising_value
880What: /sys/.../events/in_activity_running_thresh_falling_value
881KernelVersion: 3.19
882Contact: linux-iio@vger.kernel.org
883Description:
884 Confidence value (in units as percentage) to be used
885 for deciding when an event should be generated. E.g for
886 running: If the confidence value reported by the sensor
887 is greater than in_activity_running_thresh_rising_value
888 then the sensor ENTERS running state. Conversely, if the
889 confidence value reported by the sensor is lower than
890 in_activity_running_thresh_falling_value then the sensor
891 is LEAVING running state.
892
793What: /sys/.../iio:deviceX/events/in_accel_mag_en 893What: /sys/.../iio:deviceX/events/in_accel_mag_en
794What: /sys/.../iio:deviceX/events/in_accel_mag_rising_en 894What: /sys/.../iio:deviceX/events/in_accel_mag_rising_en
795What: /sys/.../iio:deviceX/events/in_accel_mag_falling_en 895What: /sys/.../iio:deviceX/events/in_accel_mag_falling_en
@@ -822,6 +922,25 @@ Description:
822 number or direction is not specified, applies to all channels of 922 number or direction is not specified, applies to all channels of
823 this type. 923 this type.
824 924
925What: /sys/.../events/in_steps_change_en
926KernelVersion: 3.20
927Contact: linux-iio@vger.kernel.org
928Description:
929 Event generated when channel passes a threshold on the absolute
930 change in value. E.g. for steps: a step change event is
931 generated each time the user takes N steps, where N is set using
932 in_steps_change_value.
933
934What: /sys/.../events/in_steps_change_value
935KernelVersion: 3.20
936Contact: linux-iio@vger.kernel.org
937Description:
938 Specifies the value of change threshold that the
939 device is comparing against for the events enabled by
940 <type>[Y][_name]_roc[_rising|falling|]_en. E.g. for steps:
941 if set to 3, a step change event will be generated every 3
942 steps.
943
825What: /sys/bus/iio/devices/iio:deviceX/trigger/current_trigger 944What: /sys/bus/iio/devices/iio:deviceX/trigger/current_trigger
826KernelVersion: 2.6.35 945KernelVersion: 2.6.35
827Contact: linux-iio@vger.kernel.org 946Contact: linux-iio@vger.kernel.org
@@ -956,6 +1075,16 @@ Description:
956 and the relevant _type attributes to establish the data storage 1075 and the relevant _type attributes to establish the data storage
957 format. 1076 format.
958 1077
1078What: /sys/.../iio:deviceX/in_activity_still_input
1079What: /sys/.../iio:deviceX/in_activity_walking_input
1080What: /sys/.../iio:deviceX/in_activity_jogging_input
1081What: /sys/.../iio:deviceX/in_activity_running_input
1082KernelVersion: 3.19
1083Contact: linux-iio@vger.kernel.org
1084Description:
1085 This attribute is used to read the confidence for an activity
1086 expressed in units as percentage.
1087
959What: /sys/.../iio:deviceX/in_anglvel_z_quadrature_correction_raw 1088What: /sys/.../iio:deviceX/in_anglvel_z_quadrature_correction_raw
960KernelVersion: 2.6.38 1089KernelVersion: 2.6.38
961Contact: linux-iio@vger.kernel.org 1090Contact: linux-iio@vger.kernel.org
@@ -973,6 +1102,24 @@ Description:
973 For a list of available output power modes read 1102 For a list of available output power modes read
974 in_accel_power_mode_available. 1103 in_accel_power_mode_available.
975 1104
1105What: /sys/.../iio:deviceX/in_energy_input
1106What: /sys/.../iio:deviceX/in_energy_raw
1107KernelVersion: 3.20
1108Contact: linux-iio@vger.kernel.org
1109Description:
1110 This attribute is used to read the energy value reported by the
1111 device (e.g.: human activity sensors report energy burnt by the
1112 user). Units after application of scale are Joules.
1113
1114What: /sys/.../iio:deviceX/in_distance_input
1115What: /sys/.../iio:deviceX/in_distance_raw
1116KernelVersion: 3.20
1117Contact: linux-iio@vger.kernel.org
1118Description:
1119 This attribute is used to read the distance covered by the user
1120 since the last reboot while activated. Units after application
1121 of scale are meters.
1122
976What: /sys/bus/iio/devices/iio:deviceX/store_eeprom 1123What: /sys/bus/iio/devices/iio:deviceX/store_eeprom
977KernelVersion: 3.4.0 1124KernelVersion: 3.4.0
978Contact: linux-iio@vger.kernel.org 1125Contact: linux-iio@vger.kernel.org
@@ -992,7 +1139,9 @@ Description:
992 reflectivity of infrared or ultrasound emitted. 1139 reflectivity of infrared or ultrasound emitted.
993 Often these sensors are unit less and as such conversion 1140 Often these sensors are unit less and as such conversion
994 to SI units is not possible. Where it is, the units should 1141 to SI units is not possible. Where it is, the units should
995 be meters. 1142 be meters. If such a conversion is not possible, the reported
1143 values should behave in the same way as a distance, i.e. lower
1144 values indicate something is closer to the sensor.
996 1145
997What: /sys/.../iio:deviceX/in_illuminanceY_input 1146What: /sys/.../iio:deviceX/in_illuminanceY_input
998What: /sys/.../iio:deviceX/in_illuminanceY_raw 1147What: /sys/.../iio:deviceX/in_illuminanceY_raw
@@ -1024,6 +1173,12 @@ Description:
1024 This attribute is used to get/set the integration time in 1173 This attribute is used to get/set the integration time in
1025 seconds. 1174 seconds.
1026 1175
1176What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
1177KernelVersion: 3.20
1178Contact: linux-iio@vger.kernel.org
1179Description:
1180 Number of seconds in which to compute speed.
1181
1027What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw 1182What: /sys/bus/iio/devices/iio:deviceX/in_rot_quaternion_raw
1028KernelVersion: 3.15 1183KernelVersion: 3.15
1029Contact: linux-iio@vger.kernel.org 1184Contact: linux-iio@vger.kernel.org
@@ -1051,3 +1206,46 @@ Description:
1051 after application of scale and offset. If no offset or scale is 1206 after application of scale and offset. If no offset or scale is
1052 present, output should be considered as processed with the 1207 present, output should be considered as processed with the
1053 unit in milliamps. 1208 unit in milliamps.
1209
1210What: /sys/.../iio:deviceX/in_energy_en
1211What: /sys/.../iio:deviceX/in_distance_en
1212What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_en
1213What: /sys/.../iio:deviceX/in_steps_en
1214KernelVersion: 3.19
1215Contact: linux-iio@vger.kernel.org
1216Description:
1217 Activates a device feature that runs in firmware/hardware.
1218 E.g. for steps: the pedometer saves power while not used;
1219 when activated, it will count the steps taken by the user in
1220 firmware and export them through in_steps_input.
1221
1222What: /sys/.../iio:deviceX/in_steps_input
1223KernelVersion: 3.19
1224Contact: linux-iio@vger.kernel.org
1225Description:
1226 This attribute is used to read the number of steps taken by the user
1227 since the last reboot while activated.
1228
1229What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_input
1230What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_raw
1231KernelVersion: 3.19
1232Contact: linux-iio@vger.kernel.org
1233Description:
1234 This attribute is used to read the current speed value of the
1235 user (which is the norm or magnitude of the velocity vector).
1236 Units after application of scale are m/s.
1237
1238What: /sys/.../iio:deviceX/in_steps_debounce_count
1239KernelVersion: 3.20
1240Contact: linux-iio@vger.kernel.org
1241Description:
1242 Specifies the number of steps that must occur within
1243 in_steps_filter_debounce_time for the pedometer to decide the
1244 consumer is making steps.
1245
1246What: /sys/.../iio:deviceX/in_steps_debounce_time
1247KernelVersion: 3.20
1248Contact: linux-iio@vger.kernel.org
1249Description:
1250 Specifies number of seconds in which we compute the steps
1251 that occur in order to decide if the consumer is making steps.