aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-04-13 20:37:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-13 20:37:33 -0400
commitb79013b2449c23f1f505bdf39c5a6c330338b244 (patch)
tree67908ffb1705a595cda8de7224d121fa40b8f36d /Documentation/ABI
parentc4be50eee2bd4d50e0f0ca58776f685c08de69c3 (diff)
parentc610f7f772aa06ae2bd8e5ace87cde4d90f70198 (diff)
Merge tag 'staging-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver updates from Greg KH: "Here's the big staging driver patchset for 4.1-rc1. There's a lot of patches here, the Outreachy application period happened during this development cycle, so that means that there was a lot of cleanup patches accepted. Other than the normal coding style and sparse fixes here, there are some driver updates and work toward making some of the drivers into "mergable" shape (like the Unisys drivers.) All of these have been in linux-next for a while" * tag 'staging-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1214 commits) staging: lustre: orthography & coding style staging: lustre: lnet: lnet: fix error return code staging: lustre: fix sparse warning Revert "Staging: sm750fb: Fix C99 Comments" Staging: rtl8192u: use correct array for debug output staging: rtl8192e: Remove dead code staging: rtl8192e: Comment cleanup (style/format) staging: rtl8192e: Fix indentation in rtllib_rx_auth_resp() staging: rtl8192e: Decrease nesting of rtllib_rx_auth_resp() staging: rtl8192e: Divide rtllib_rx_auth() staging: rtl8192e: Fix PRINTK_WITHOUT_KERN_LEVEL warnings staging: rtl8192e: Fix DO_WHILE_MACRO_WITH_TRAILING_SEMICOLON warning staging: rtl8192e: Fix BRACES warning staging: rtl8192e: Fix LINE_CONTINUATIONS warning staging: rtl8192e: Fix UNNECESSARY_PARENTHESES warnings staging: rtl8192e: remove unused EXPORT_SYMBOL_RSL macro staging: rtl8192e: Fix RETURN_VOID warnings staging: rtl8192e: Fix UNNECESSARY_ELSE warning staging: rtl8723au: Remove unneeded comments staging: rtl8723au: Use __func__ in trace logs ...
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/sysfs-bus-iio137
1 files changed, 126 insertions, 11 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index 9a70c31619ea..3befcb19f414 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -253,6 +253,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_temp_offset
253What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset 253What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset
254What: /sys/bus/iio/devices/iio:deviceX/in_pressure_offset 254What: /sys/bus/iio/devices/iio:deviceX/in_pressure_offset
255What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset 255What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset
256What: /sys/bus/iio/devices/iio:deviceX/in_magn_offset
257What: /sys/bus/iio/devices/iio:deviceX/in_rot_offset
256KernelVersion: 2.6.35 258KernelVersion: 2.6.35
257Contact: linux-iio@vger.kernel.org 259Contact: linux-iio@vger.kernel.org
258Description: 260Description:
@@ -296,6 +298,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
296What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale 298What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
297What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale 299What: /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 300What: /sys/bus/iio/devices/iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_scale
301What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_scale
299KernelVersion: 2.6.35 302KernelVersion: 2.6.35
300Contact: linux-iio@vger.kernel.org 303Contact: linux-iio@vger.kernel.org
301Description: 304Description:
@@ -336,6 +339,7 @@ what /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
336what /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale 339what /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
337What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale 340What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
338What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale 341What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale
342What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale
339KernelVersion: 2.6.35 343KernelVersion: 2.6.35
340Contact: linux-iio@vger.kernel.org 344Contact: linux-iio@vger.kernel.org
341Description: 345Description:
@@ -347,7 +351,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
347What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender 351What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
348What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender 352What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
349What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender 353What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender
350KernelVersion: 3.20 354KernelVersion: 4.0
351Contact: linux-iio@vger.kernel.org 355Contact: linux-iio@vger.kernel.org
352Description: 356Description:
353 Gender of the user (e.g.: male, female) used by some pedometers 357 Gender of the user (e.g.: male, female) used by some pedometers
@@ -358,7 +362,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender_available
358What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available 362What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available
359What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available 363What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available
360What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available 364What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available
361KernelVersion: 3.20 365KernelVersion: 4.0
362Contact: linux-iio@vger.kernel.org 366Contact: linux-iio@vger.kernel.org
363Description: 367Description:
364 Lists all available gender values (e.g.: male, female). 368 Lists all available gender values (e.g.: male, female).
@@ -375,7 +379,7 @@ Description:
375 type. 379 type.
376 380
377What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibweight 381What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibweight
378KernelVersion: 3.20 382KernelVersion: 4.0
379Contact: linux-iio@vger.kernel.org 383Contact: linux-iio@vger.kernel.org
380Description: 384Description:
381 Weight of the user (in kg). It is needed by some pedometers 385 Weight of the user (in kg). It is needed by some pedometers
@@ -612,6 +616,8 @@ Description:
612 a given event type is enabled a future point (and not those for 616 a given event type is enabled a future point (and not those for
613 whatever event was previously enabled). 617 whatever event was previously enabled).
614 618
619What: /sys/.../events/in_accel_thresh_rising_value
620What: /sys/.../events/in_accel_thresh_falling_value
615What: /sys/.../events/in_accel_x_raw_thresh_rising_value 621What: /sys/.../events/in_accel_x_raw_thresh_rising_value
616What: /sys/.../events/in_accel_x_raw_thresh_falling_value 622What: /sys/.../events/in_accel_x_raw_thresh_falling_value
617What: /sys/.../events/in_accel_y_raw_thresh_rising_value 623What: /sys/.../events/in_accel_y_raw_thresh_rising_value
@@ -661,6 +667,24 @@ Description:
661 value is in raw device units or in processed units (as _raw 667 value is in raw device units or in processed units (as _raw
662 and _input do on sysfs direct channel read attributes). 668 and _input do on sysfs direct channel read attributes).
663 669
670What: /sys/.../events/in_accel_scale
671What: /sys/.../events/in_accel_peak_scale
672What: /sys/.../events/in_anglvel_scale
673What: /sys/.../events/in_magn_scale
674What: /sys/.../events/in_rot_from_north_magnetic_scale
675What: /sys/.../events/in_rot_from_north_true_scale
676What: /sys/.../events/in_voltage_scale
677What: /sys/.../events/in_voltage_supply_scale
678What: /sys/.../events/in_temp_scale
679What: /sys/.../events/in_illuminance_scale
680What: /sys/.../events/in_proximity_scale
681KernelVersion: 3.21
682Contact: linux-iio@vger.kernel.org
683Description:
684 Specifies the conversion factor from the standard units
685 to device specific units used to set the event trigger
686 threshold.
687
664What: /sys/.../events/in_accel_x_thresh_rising_hysteresis 688What: /sys/.../events/in_accel_x_thresh_rising_hysteresis
665What: /sys/.../events/in_accel_x_thresh_falling_hysteresis 689What: /sys/.../events/in_accel_x_thresh_falling_hysteresis
666What: /sys/.../events/in_accel_x_thresh_either_hysteresis 690What: /sys/.../events/in_accel_x_thresh_either_hysteresis
@@ -776,7 +800,7 @@ Description:
776 800
777What: /sys/.../events/in_accel_x_thresh_rising_period 801What: /sys/.../events/in_accel_x_thresh_rising_period
778What: /sys/.../events/in_accel_x_thresh_falling_period 802What: /sys/.../events/in_accel_x_thresh_falling_period
779hat: /sys/.../events/in_accel_x_roc_rising_period 803What: /sys/.../events/in_accel_x_roc_rising_period
780What: /sys/.../events/in_accel_x_roc_falling_period 804What: /sys/.../events/in_accel_x_roc_falling_period
781What: /sys/.../events/in_accel_y_thresh_rising_period 805What: /sys/.../events/in_accel_y_thresh_rising_period
782What: /sys/.../events/in_accel_y_thresh_falling_period 806What: /sys/.../events/in_accel_y_thresh_falling_period
@@ -923,7 +947,7 @@ Description:
923 this type. 947 this type.
924 948
925What: /sys/.../events/in_steps_change_en 949What: /sys/.../events/in_steps_change_en
926KernelVersion: 3.20 950KernelVersion: 4.0
927Contact: linux-iio@vger.kernel.org 951Contact: linux-iio@vger.kernel.org
928Description: 952Description:
929 Event generated when channel passes a threshold on the absolute 953 Event generated when channel passes a threshold on the absolute
@@ -932,7 +956,7 @@ Description:
932 in_steps_change_value. 956 in_steps_change_value.
933 957
934What: /sys/.../events/in_steps_change_value 958What: /sys/.../events/in_steps_change_value
935KernelVersion: 3.20 959KernelVersion: 4.0
936Contact: linux-iio@vger.kernel.org 960Contact: linux-iio@vger.kernel.org
937Description: 961Description:
938 Specifies the value of change threshold that the 962 Specifies the value of change threshold that the
@@ -997,6 +1021,7 @@ What: /sys/.../iio:deviceX/scan_elements/in_incli_y_en
997What: /sys/.../iio:deviceX/scan_elements/in_pressureY_en 1021What: /sys/.../iio:deviceX/scan_elements/in_pressureY_en
998What: /sys/.../iio:deviceX/scan_elements/in_pressure_en 1022What: /sys/.../iio:deviceX/scan_elements/in_pressure_en
999What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en 1023What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
1024What: /sys/.../iio:deviceX/scan_elements/in_proximity_en
1000KernelVersion: 2.6.37 1025KernelVersion: 2.6.37
1001Contact: linux-iio@vger.kernel.org 1026Contact: linux-iio@vger.kernel.org
1002Description: 1027Description:
@@ -1013,6 +1038,7 @@ What: /sys/.../iio:deviceX/scan_elements/in_timestamp_type
1013What: /sys/.../iio:deviceX/scan_elements/in_pressureY_type 1038What: /sys/.../iio:deviceX/scan_elements/in_pressureY_type
1014What: /sys/.../iio:deviceX/scan_elements/in_pressure_type 1039What: /sys/.../iio:deviceX/scan_elements/in_pressure_type
1015What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type 1040What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
1041What: /sys/.../iio:deviceX/scan_elements/in_proximity_type
1016KernelVersion: 2.6.37 1042KernelVersion: 2.6.37
1017Contact: linux-iio@vger.kernel.org 1043Contact: linux-iio@vger.kernel.org
1018Description: 1044Description:
@@ -1064,6 +1090,7 @@ What: /sys/.../iio:deviceX/scan_elements/in_timestamp_index
1064What: /sys/.../iio:deviceX/scan_elements/in_pressureY_index 1090What: /sys/.../iio:deviceX/scan_elements/in_pressureY_index
1065What: /sys/.../iio:deviceX/scan_elements/in_pressure_index 1091What: /sys/.../iio:deviceX/scan_elements/in_pressure_index
1066What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index 1092What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
1093What: /sys/.../iio:deviceX/scan_elements/in_proximity_index
1067KernelVersion: 2.6.37 1094KernelVersion: 2.6.37
1068Contact: linux-iio@vger.kernel.org 1095Contact: linux-iio@vger.kernel.org
1069Description: 1096Description:
@@ -1104,7 +1131,7 @@ Description:
1104 1131
1105What: /sys/.../iio:deviceX/in_energy_input 1132What: /sys/.../iio:deviceX/in_energy_input
1106What: /sys/.../iio:deviceX/in_energy_raw 1133What: /sys/.../iio:deviceX/in_energy_raw
1107KernelVersion: 3.20 1134KernelVersion: 4.0
1108Contact: linux-iio@vger.kernel.org 1135Contact: linux-iio@vger.kernel.org
1109Description: 1136Description:
1110 This attribute is used to read the energy value reported by the 1137 This attribute is used to read the energy value reported by the
@@ -1113,7 +1140,7 @@ Description:
1113 1140
1114What: /sys/.../iio:deviceX/in_distance_input 1141What: /sys/.../iio:deviceX/in_distance_input
1115What: /sys/.../iio:deviceX/in_distance_raw 1142What: /sys/.../iio:deviceX/in_distance_raw
1116KernelVersion: 3.20 1143KernelVersion: 4.0
1117Contact: linux-iio@vger.kernel.org 1144Contact: linux-iio@vger.kernel.org
1118Description: 1145Description:
1119 This attribute is used to read the distance covered by the user 1146 This attribute is used to read the distance covered by the user
@@ -1143,9 +1170,13 @@ Description:
1143 values should behave in the same way as a distance, i.e. lower 1170 values should behave in the same way as a distance, i.e. lower
1144 values indicate something is closer to the sensor. 1171 values indicate something is closer to the sensor.
1145 1172
1173What: /sys/.../iio:deviceX/in_illuminance_input
1174What: /sys/.../iio:deviceX/in_illuminance_raw
1146What: /sys/.../iio:deviceX/in_illuminanceY_input 1175What: /sys/.../iio:deviceX/in_illuminanceY_input
1147What: /sys/.../iio:deviceX/in_illuminanceY_raw 1176What: /sys/.../iio:deviceX/in_illuminanceY_raw
1148What: /sys/.../iio:deviceX/in_illuminanceY_mean_raw 1177What: /sys/.../iio:deviceX/in_illuminanceY_mean_raw
1178What: /sys/.../iio:deviceX/in_illuminance_ir_raw
1179What: /sys/.../iio:deviceX/in_illuminance_clear_raw
1149KernelVersion: 3.4 1180KernelVersion: 3.4
1150Contact: linux-iio@vger.kernel.org 1181Contact: linux-iio@vger.kernel.org
1151Description: 1182Description:
@@ -1174,7 +1205,7 @@ Description:
1174 seconds. 1205 seconds.
1175 1206
1176What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time 1207What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
1177KernelVersion: 3.20 1208KernelVersion: 4.0
1178Contact: linux-iio@vger.kernel.org 1209Contact: linux-iio@vger.kernel.org
1179Description: 1210Description:
1180 Number of seconds in which to compute speed. 1211 Number of seconds in which to compute speed.
@@ -1236,7 +1267,7 @@ Description:
1236 Units after application of scale are m/s. 1267 Units after application of scale are m/s.
1237 1268
1238What: /sys/.../iio:deviceX/in_steps_debounce_count 1269What: /sys/.../iio:deviceX/in_steps_debounce_count
1239KernelVersion: 3.20 1270KernelVersion: 4.0
1240Contact: linux-iio@vger.kernel.org 1271Contact: linux-iio@vger.kernel.org
1241Description: 1272Description:
1242 Specifies the number of steps that must occur within 1273 Specifies the number of steps that must occur within
@@ -1244,8 +1275,92 @@ Description:
1244 consumer is making steps. 1275 consumer is making steps.
1245 1276
1246What: /sys/.../iio:deviceX/in_steps_debounce_time 1277What: /sys/.../iio:deviceX/in_steps_debounce_time
1247KernelVersion: 3.20 1278KernelVersion: 4.0
1248Contact: linux-iio@vger.kernel.org 1279Contact: linux-iio@vger.kernel.org
1249Description: 1280Description:
1250 Specifies number of seconds in which we compute the steps 1281 Specifies number of seconds in which we compute the steps
1251 that occur in order to decide if the consumer is making steps. 1282 that occur in order to decide if the consumer is making steps.
1283
1284What: /sys/bus/iio/devices/iio:deviceX/buffer/watermark
1285KernelVersion: 4.2
1286Contact: linux-iio@vger.kernel.org
1287Description:
1288 A single positive integer specifying the maximum number of scan
1289 elements to wait for.
1290 Poll will block until the watermark is reached.
1291 Blocking read will wait until the minimum between the requested
1292 read amount or the low water mark is available.
1293 Non-blocking read will retrieve the available samples from the
1294 buffer even if there are less samples then watermark level. This
1295 allows the application to block on poll with a timeout and read
1296 the available samples after the timeout expires and thus have a
1297 maximum delay guarantee.
1298
1299What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_enabled
1300KernelVersion: 4.2
1301Contact: linux-iio@vger.kernel.org
1302Description:
1303 A read-only boolean value that indicates if the hardware fifo is
1304 currently enabled or disabled. If the device does not have a
1305 hardware fifo this entry is not present.
1306 The hardware fifo is enabled when the buffer is enabled if the
1307 current hardware fifo watermark level is set and other current
1308 device settings allows it (e.g. if a trigger is set that samples
1309 data differently that the hardware fifo does then hardware fifo
1310 will not enabled).
1311 If the hardware fifo is enabled and the level of the hardware
1312 fifo reaches the hardware fifo watermark level the device will
1313 flush its hardware fifo to the device buffer. Doing a non
1314 blocking read on the device when no samples are present in the
1315 device buffer will also force a flush.
1316 When the hardware fifo is enabled there is no need to use a
1317 trigger to use buffer mode since the watermark settings
1318 guarantees that the hardware fifo is flushed to the device
1319 buffer.
1320
1321What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark
1322KernelVersion: 4.2
1323Contact: linux-iio@vger.kernel.org
1324Description:
1325 Read-only entry that contains a single integer specifying the
1326 current watermark level for the hardware fifo. If the device
1327 does not have a hardware fifo this entry is not present.
1328 The watermark level for the hardware fifo is set by the driver
1329 based on the value set by the user in buffer/watermark but
1330 taking into account hardware limitations (e.g. most hardware
1331 buffers are limited to 32-64 samples, some hardware buffers
1332 watermarks are fixed or have minimum levels). A value of 0
1333 means that the hardware watermark is unset.
1334
1335What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_min
1336KernelVersion: 4.2
1337Contact: linux-iio@vger.kernel.org
1338Description:
1339 A single positive integer specifying the minimum watermark level
1340 for the hardware fifo of this device. If the device does not
1341 have a hardware fifo this entry is not present.
1342 If the user sets buffer/watermark to a value less than this one,
1343 then the hardware watermark will remain unset.
1344
1345What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_max
1346KernelVersion: 4.2
1347Contact: linux-iio@vger.kernel.org
1348Description:
1349 A single positive integer specifying the maximum watermark level
1350 for the hardware fifo of this device. If the device does not
1351 have a hardware fifo this entry is not present.
1352 If the user sets buffer/watermark to a value greater than this
1353 one, then the hardware watermark will be capped at this value.
1354
1355What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_available
1356KernelVersion: 4.2
1357Contact: linux-iio@vger.kernel.org
1358Description:
1359 A list of positive integers specifying the available watermark
1360 levels for the hardware fifo. This entry is optional and if it
1361 is not present it means that all the values between
1362 hwfifo_watermark_min and hwfifo_watermark_max are supported.
1363 If the user sets buffer/watermark to a value greater than
1364 hwfifo_watermak_min but not equal to any of the values in this
1365 list, the driver will chose an appropriate value for the
1366 hardware fifo watermark level.