Skip to content

Commit b79013b

Browse files
committed
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 ...
2 parents c4be50e + c610f7f commit b79013b

File tree

824 files changed

+38863
-22325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

824 files changed

+38863
-22325
lines changed

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 126 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_temp_offset
253253
What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_offset
254254
What: /sys/bus/iio/devices/iio:deviceX/in_pressure_offset
255255
What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset
256+
What: /sys/bus/iio/devices/iio:deviceX/in_magn_offset
257+
What: /sys/bus/iio/devices/iio:deviceX/in_rot_offset
256258
KernelVersion: 2.6.35
257259
258260
Description:
@@ -296,6 +298,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_scale
296298
What: /sys/bus/iio/devices/iio:deviceX/in_pressure_scale
297299
What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_scale
298300
What: /sys/bus/iio/devices/iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_scale
301+
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_scale
299302
KernelVersion: 2.6.35
300303
301304
Description:
@@ -336,6 +339,7 @@ what /sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
336339
what /sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
337340
What: /sys/bus/iio/devices/iio:deviceX/in_pressureY_calibscale
338341
What: /sys/bus/iio/devices/iio:deviceX/in_pressure_calibscale
342+
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_calibscale
339343
KernelVersion: 2.6.35
340344
341345
Description:
@@ -347,7 +351,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_activity_calibgender
347351
What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender
348352
What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender
349353
What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender
350-
KernelVersion: 3.20
354+
KernelVersion: 4.0
351355
352356
Description:
353357
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
358362
What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibgender_available
359363
What: /sys/bus/iio/devices/iio:deviceX/in_distance_calibgender_available
360364
What: /sys/bus/iio/devices/iio:deviceX/in_velocity_calibgender_available
361-
KernelVersion: 3.20
365+
KernelVersion: 4.0
362366
363367
Description:
364368
Lists all available gender values (e.g.: male, female).
@@ -375,7 +379,7 @@ Description:
375379
type.
376380

377381
What: /sys/bus/iio/devices/iio:deviceX/in_energy_calibweight
378-
KernelVersion: 3.20
382+
KernelVersion: 4.0
379383
380384
Description:
381385
Weight of the user (in kg). It is needed by some pedometers
@@ -612,6 +616,8 @@ Description:
612616
a given event type is enabled a future point (and not those for
613617
whatever event was previously enabled).
614618

619+
What: /sys/.../events/in_accel_thresh_rising_value
620+
What: /sys/.../events/in_accel_thresh_falling_value
615621
What: /sys/.../events/in_accel_x_raw_thresh_rising_value
616622
What: /sys/.../events/in_accel_x_raw_thresh_falling_value
617623
What: /sys/.../events/in_accel_y_raw_thresh_rising_value
@@ -661,6 +667,24 @@ Description:
661667
value is in raw device units or in processed units (as _raw
662668
and _input do on sysfs direct channel read attributes).
663669

670+
What: /sys/.../events/in_accel_scale
671+
What: /sys/.../events/in_accel_peak_scale
672+
What: /sys/.../events/in_anglvel_scale
673+
What: /sys/.../events/in_magn_scale
674+
What: /sys/.../events/in_rot_from_north_magnetic_scale
675+
What: /sys/.../events/in_rot_from_north_true_scale
676+
What: /sys/.../events/in_voltage_scale
677+
What: /sys/.../events/in_voltage_supply_scale
678+
What: /sys/.../events/in_temp_scale
679+
What: /sys/.../events/in_illuminance_scale
680+
What: /sys/.../events/in_proximity_scale
681+
KernelVersion: 3.21
682+
683+
Description:
684+
Specifies the conversion factor from the standard units
685+
to device specific units used to set the event trigger
686+
threshold.
687+
664688
What: /sys/.../events/in_accel_x_thresh_rising_hysteresis
665689
What: /sys/.../events/in_accel_x_thresh_falling_hysteresis
666690
What: /sys/.../events/in_accel_x_thresh_either_hysteresis
@@ -776,7 +800,7 @@ Description:
776800

777801
What: /sys/.../events/in_accel_x_thresh_rising_period
778802
What: /sys/.../events/in_accel_x_thresh_falling_period
779-
hat: /sys/.../events/in_accel_x_roc_rising_period
803+
What: /sys/.../events/in_accel_x_roc_rising_period
780804
What: /sys/.../events/in_accel_x_roc_falling_period
781805
What: /sys/.../events/in_accel_y_thresh_rising_period
782806
What: /sys/.../events/in_accel_y_thresh_falling_period
@@ -923,7 +947,7 @@ Description:
923947
this type.
924948

925949
What: /sys/.../events/in_steps_change_en
926-
KernelVersion: 3.20
950+
KernelVersion: 4.0
927951
928952
Description:
929953
Event generated when channel passes a threshold on the absolute
@@ -932,7 +956,7 @@ Description:
932956
in_steps_change_value.
933957

934958
What: /sys/.../events/in_steps_change_value
935-
KernelVersion: 3.20
959+
KernelVersion: 4.0
936960
937961
Description:
938962
Specifies the value of change threshold that the
@@ -997,6 +1021,7 @@ What: /sys/.../iio:deviceX/scan_elements/in_incli_y_en
9971021
What: /sys/.../iio:deviceX/scan_elements/in_pressureY_en
9981022
What: /sys/.../iio:deviceX/scan_elements/in_pressure_en
9991023
What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_en
1024+
What: /sys/.../iio:deviceX/scan_elements/in_proximity_en
10001025
KernelVersion: 2.6.37
10011026
10021027
Description:
@@ -1013,6 +1038,7 @@ What: /sys/.../iio:deviceX/scan_elements/in_timestamp_type
10131038
What: /sys/.../iio:deviceX/scan_elements/in_pressureY_type
10141039
What: /sys/.../iio:deviceX/scan_elements/in_pressure_type
10151040
What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_type
1041+
What: /sys/.../iio:deviceX/scan_elements/in_proximity_type
10161042
KernelVersion: 2.6.37
10171043
10181044
Description:
@@ -1064,6 +1090,7 @@ What: /sys/.../iio:deviceX/scan_elements/in_timestamp_index
10641090
What: /sys/.../iio:deviceX/scan_elements/in_pressureY_index
10651091
What: /sys/.../iio:deviceX/scan_elements/in_pressure_index
10661092
What: /sys/.../iio:deviceX/scan_elements/in_rot_quaternion_index
1093+
What: /sys/.../iio:deviceX/scan_elements/in_proximity_index
10671094
KernelVersion: 2.6.37
10681095
10691096
Description:
@@ -1104,7 +1131,7 @@ Description:
11041131

11051132
What: /sys/.../iio:deviceX/in_energy_input
11061133
What: /sys/.../iio:deviceX/in_energy_raw
1107-
KernelVersion: 3.20
1134+
KernelVersion: 4.0
11081135
11091136
Description:
11101137
This attribute is used to read the energy value reported by the
@@ -1113,7 +1140,7 @@ Description:
11131140

11141141
What: /sys/.../iio:deviceX/in_distance_input
11151142
What: /sys/.../iio:deviceX/in_distance_raw
1116-
KernelVersion: 3.20
1143+
KernelVersion: 4.0
11171144
11181145
Description:
11191146
This attribute is used to read the distance covered by the user
@@ -1143,9 +1170,13 @@ Description:
11431170
values should behave in the same way as a distance, i.e. lower
11441171
values indicate something is closer to the sensor.
11451172

1173+
What: /sys/.../iio:deviceX/in_illuminance_input
1174+
What: /sys/.../iio:deviceX/in_illuminance_raw
11461175
What: /sys/.../iio:deviceX/in_illuminanceY_input
11471176
What: /sys/.../iio:deviceX/in_illuminanceY_raw
11481177
What: /sys/.../iio:deviceX/in_illuminanceY_mean_raw
1178+
What: /sys/.../iio:deviceX/in_illuminance_ir_raw
1179+
What: /sys/.../iio:deviceX/in_illuminance_clear_raw
11491180
KernelVersion: 3.4
11501181
11511182
Description:
@@ -1174,7 +1205,7 @@ Description:
11741205
seconds.
11751206

11761207
What: /sys/.../iio:deviceX/in_velocity_sqrt(x^2+y^2+z^2)_integration_time
1177-
KernelVersion: 3.20
1208+
KernelVersion: 4.0
11781209
11791210
Description:
11801211
Number of seconds in which to compute speed.
@@ -1236,16 +1267,100 @@ Description:
12361267
Units after application of scale are m/s.
12371268

12381269
What: /sys/.../iio:deviceX/in_steps_debounce_count
1239-
KernelVersion: 3.20
1270+
KernelVersion: 4.0
12401271
12411272
Description:
12421273
Specifies the number of steps that must occur within
12431274
in_steps_filter_debounce_time for the pedometer to decide the
12441275
consumer is making steps.
12451276

12461277
What: /sys/.../iio:deviceX/in_steps_debounce_time
1247-
KernelVersion: 3.20
1278+
KernelVersion: 4.0
12481279
12491280
Description:
12501281
Specifies number of seconds in which we compute the steps
12511282
that occur in order to decide if the consumer is making steps.
1283+
1284+
What: /sys/bus/iio/devices/iio:deviceX/buffer/watermark
1285+
KernelVersion: 4.2
1286+
1287+
Description:
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+
1299+
What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_enabled
1300+
KernelVersion: 4.2
1301+
1302+
Description:
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+
1321+
What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark
1322+
KernelVersion: 4.2
1323+
1324+
Description:
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+
1335+
What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_min
1336+
KernelVersion: 4.2
1337+
1338+
Description:
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+
1345+
What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_max
1346+
KernelVersion: 4.2
1347+
1348+
Description:
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+
1355+
What: /sys/bus/iio/devices/iio:deviceX/buffer/hwfifo_watermark_available
1356+
KernelVersion: 4.2
1357+
1358+
Description:
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.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
* Microchip Analog to Digital Converter (ADC)
2+
3+
The node for this driver must be a child node of a SPI controller, hence
4+
all mandatory properties described in
5+
6+
Documentation/devicetree/bindings/spi/spi-bus.txt
7+
8+
must be specified.
9+
10+
Required properties:
11+
- compatible: Must be one of the following, depending on the
12+
model:
13+
"mcp3001"
14+
"mcp3002"
15+
"mcp3004"
16+
"mcp3008"
17+
"mcp3201"
18+
"mcp3202"
19+
"mcp3204"
20+
"mcp3208"
21+
22+
23+
Examples:
24+
spi_controller {
25+
mcp3x0x@0 {
26+
compatible = "mcp3002";
27+
reg = <0>;
28+
spi-max-frequency = <1000000>;
29+
};
30+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
* Microchip mcp3422/3/4/6/7/8 chip family (ADC)
2+
3+
Required properties:
4+
- compatible: Should be
5+
"microchip,mcp3422" or
6+
"microchip,mcp3423" or
7+
"microchip,mcp3424" or
8+
"microchip,mcp3426" or
9+
"microchip,mcp3427" or
10+
"microchip,mcp3428"
11+
- reg: I2C address for the device
12+
13+
Example:
14+
adc@0 {
15+
compatible = "microchip,mcp3424";
16+
reg = <0x68>;
17+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* Texas Instruments' ADC128S052 ADC chip
2+
3+
Required properties:
4+
- compatible: Should be "ti,adc128s052"
5+
- reg: spi chip select number for the device
6+
- vref-supply: The regulator supply for ADC reference voltage
7+
8+
Recommended properties:
9+
- spi-max-frequency: Definition as per
10+
Documentation/devicetree/bindings/spi/spi-bus.txt
11+
12+
Example:
13+
adc@0 {
14+
compatible = "ti,adc128s052";
15+
reg = <0>;
16+
vref-supply = <&vdd_supply>;
17+
spi-max-frequency = <1000000>;
18+
};

Documentation/devicetree/bindings/iio/st-sensors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ standard bindings from pinctrl/pinctrl-bindings.txt.
2323
Valid compatible strings:
2424

2525
Accelerometers:
26+
- st,lis3lv02dl-accel
2627
- st,lsm303dlh-accel
2728
- st,lsm303dlhc-accel
2829
- st,lis3dh-accel

0 commit comments

Comments
 (0)