-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'staging-4.10-rc1' of git://git.kernel.org/pub/scm/linux/ke…
…rnel/git/gregkh/staging Pull staging/IIO updates from Greg KH: "Here's the "big" staging/iio pull request for 4.10-rc1. Not as big as 4.9 was, but still just over a thousand changes. We almost broke even of lines added vs. removed, as the slicoss driver was removed (got a "clean" driver for the same hardware through the netdev tree), and some iio drivers were also dropped, but I think we ended up adding a few thousand lines to the source tree in the end. Other than that it's a lot of minor fixes all over the place, nothing major stands out at all. All of these have been in linux-next for a while. There will be a merge conflict with Al's vfs tree in the lustre code, but the resolution for that should be pretty simple, that too has been in linux-next" * tag 'staging-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1002 commits) staging: comedi: comedidev.h: Document usage of 'detach' handler staging: fsl-mc: remove unnecessary info prints from bus driver staging: fsl-mc: add sysfs ABI doc staging/lustre/o2iblnd: Fix misspelled attemps->attempts staging/lustre/o2iblnd: Fix misspelling intialized->intialized staging/lustre: Convert all bare unsigned to unsigned int staging/lustre/socklnd: Fix whitespace problem staging/lustre/o2iblnd: Add missing space staging/lustre/lnetselftest: Fix potential integer overflow staging: greybus: audio_module: remove redundant OOM message staging: dgnc: Fix lines longer than 80 characters staging: dgnc: fix blank line after '{' warnings. staging/android: remove Sync Framework tasks from TODO staging/lustre/osc: Revert erroneous list_for_each_entry_safe use staging: slicoss: remove the staging driver staging: lustre: libcfs: remove lnet upcall code staging: lustre: remove set but unused variables staging: lustre: osc: set lock data for readahead lock staging: lustre: import: don't reconnect during connect interpret staging: lustre: clio: remove mtime check in vvp_io_fault_start() ...
- Loading branch information
Showing
685 changed files
with
33,601 additions
and
31,456 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
What: /sys/bus/fsl-mc/drivers/.../bind | ||
Date: December 2016 | ||
Contact: stuart.yoder@nxp.com | ||
Description: | ||
Writing a device location to this file will cause | ||
the driver to attempt to bind to the device found at | ||
this location. The format for the location is Object.Id | ||
and is the same as found in /sys/bus/fsl-mc/devices/. | ||
For example: | ||
# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/bind | ||
|
||
What: /sys/bus/fsl-mc/drivers/.../unbind | ||
Date: December 2016 | ||
Contact: stuart.yoder@nxp.com | ||
Description: | ||
Writing a device location to this file will cause the | ||
driver to attempt to unbind from the device found at | ||
this location. The format for the location is Object.Id | ||
and is the same as found in /sys/bus/fsl-mc/devices/. | ||
For example: | ||
# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/unbind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Documentation/ABI/testing/sysfs-bus-iio-adc-envelope-detector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_invert | ||
Date: October 2016 | ||
KernelVersion: 4.9 | ||
Contact: Peter Rosin <peda@axentia.se> | ||
Description: | ||
The DAC is used to find the peak level of an alternating | ||
voltage input signal by a binary search using the output | ||
of a comparator wired to an interrupt pin. Like so: | ||
_ | ||
| \ | ||
input +------>-------|+ \ | ||
| \ | ||
.-------. | }---. | ||
| | | / | | ||
| dac|-->--|- / | | ||
| | |_/ | | ||
| | | | ||
| | | | ||
| irq|------<-------' | ||
| | | ||
'-------' | ||
The boolean invert attribute (0/1) should be set when the | ||
input signal is centered around the maximum value of the | ||
dac instead of zero. The envelope detector will search | ||
from below in this case and will also invert the result. | ||
The edge/level of the interrupt is also switched to its | ||
opposite value. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_altvoltageY_compare_interval | ||
Date: October 2016 | ||
KernelVersion: 4.9 | ||
Contact: Peter Rosin <peda@axentia.se> | ||
Description: | ||
Number of milliseconds to wait for the comparator in each | ||
step of the binary search for the input peak level. Needs | ||
to relate to the frequency of the input signal. |
125 changes: 125 additions & 0 deletions
125
Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available | ||
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available | ||
What: /sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available | ||
What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available | ||
What: /sys/bus/iio/devices/iio:deviceX/in_index_index_polarity_available | ||
What: /sys/bus/iio/devices/iio:deviceX/in_index_synchronous_mode_available | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Discrete set of available values for the respective counter | ||
configuration are listed in this file. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Read-only attribute that indicates whether the counter for | ||
channel Y is counting up or down. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Count mode for channel Y. Four count modes are available: | ||
normal, range limit, non-recycle, and modulo-n. The preset value | ||
for channel Y is used by the count mode where required. | ||
|
||
Normal: | ||
Counting is continuous in either direction. | ||
|
||
Range Limit: | ||
An upper or lower limit is set, mimicking limit switches | ||
in the mechanical counterpart. The upper limit is set to | ||
the preset value, while the lower limit is set to 0. The | ||
counter freezes at count = preset when counting up, and | ||
at count = 0 when counting down. At either of these | ||
limits, the counting is resumed only when the count | ||
direction is reversed. | ||
|
||
Non-recycle: | ||
Counter is disabled whenever a 24-bit count overflow or | ||
underflow takes place. The counter is re-enabled when a | ||
new count value is loaded to the counter via a preset | ||
operation or write to raw. | ||
|
||
Modulo-N: | ||
A count boundary is set between 0 and the preset value. | ||
The counter is reset to 0 at count = preset when | ||
counting up, while the counter is set to the preset | ||
value at count = 0 when counting down; the counter does | ||
not freeze at the bundary points, but counts | ||
continuously throughout. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_countY_noise_error | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Read-only attribute that indicates whether excessive noise is | ||
present at the channel Y count inputs in quadrature clock mode; | ||
irrelevant in non-quadrature clock mode. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_countY_preset | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
If the counter device supports preset registers, the preset | ||
count for channel Y is provided by this attribute. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_countY_quadrature_mode | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Configure channel Y counter for non-quadrature or quadrature | ||
clock mode. Selecting non-quadrature clock mode will disable | ||
synchronous load mode. In quadrature clock mode, the channel Y | ||
scale attribute selects the encoder phase division (scale of 1 | ||
selects full-cycle, scale of 0.5 selects half-cycle, scale of | ||
0.25 selects quarter-cycle) processed by the channel Y counter. | ||
|
||
Non-quadrature: | ||
The filter and decoder circuit are bypassed. Encoder A | ||
input serves as the count input and B as the UP/DOWN | ||
direction control input, with B = 1 selecting UP Count | ||
mode and B = 0 selecting Down Count mode. | ||
|
||
Quadrature: | ||
Encoder A and B inputs are digitally filtered and | ||
decoded for UP/DN clock. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_countY_set_to_preset_on_index | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Whether to set channel Y counter with channel Y preset value | ||
when channel Y index input is active, or continuously count. | ||
Valid attribute values are boolean. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_indexY_index_polarity | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Active level of channel Y index input; irrelevant in | ||
non-synchronous load mode. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/in_indexY_synchronous_mode | ||
KernelVersion: 4.9 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Configure channel Y counter for non-synchronous or synchronous | ||
load mode. Synchronous load mode cannot be selected in | ||
non-quadrature clock mode. | ||
|
||
Non-synchronous: | ||
A logic low level is the active level at this index | ||
input. The index function (as enabled via | ||
set_to_preset_on_index) is performed directly on the | ||
active level of the index input. | ||
|
||
Synchronous: | ||
Intended for interfacing with encoder Index output in | ||
quadrature clock mode. The active level is configured | ||
via index_polarity. The index function (as enabled via | ||
set_to_preset_on_index) is performed synchronously with | ||
the quadrature clock on the active level of the index | ||
input. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/calibrate | ||
Date: July 2015 | ||
KernelVersion: 4.7 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
Writing '1' will perform a FOC (Fast Online Calibration). The | ||
corresponding calibration offsets can be read from *_calibbias | ||
entries. | ||
|
||
What: /sys/bus/iio/devices/iio:deviceX/location | ||
Date: July 2015 | ||
KernelVersion: 4.7 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
This attribute returns a string with the physical location where | ||
the motion sensor is placed. For example, in a laptop a motion | ||
sensor can be located on the base or on the lid. Current valid | ||
values are 'base' and 'lid'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/out_voltageY_raw_available | ||
Date: October 2016 | ||
KernelVersion: 4.9 | ||
Contact: Peter Rosin <peda@axentia.se> | ||
Description: | ||
The range of available values represented as the minimum value, | ||
the step and the maximum value, all enclosed in square brackets. | ||
Example: [0 1 256] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/proximity_on_chip_ambient_infrared_suppression | ||
Date: January 2011 | ||
KernelVersion: 2.6.37 | ||
Contact: linux-iio@vger.kernel.org | ||
Description: | ||
From ISL29018 Data Sheet (FN6619.4, Oct 8, 2012) regarding the | ||
infrared suppression: | ||
|
||
Scheme 0, makes full n (4, 8, 12, 16) bits (unsigned) proximity | ||
detection. The range of Scheme 0 proximity count is from 0 to | ||
2^n. Logic 1 of this bit, Scheme 1, makes n-1 (3, 7, 11, 15) | ||
bits (2's complementary) proximity_less_ambient detection. The | ||
range of Scheme 1 proximity count is from -2^(n-1) to 2^(n-1). | ||
The sign bit is extended for resolutions less than 16. While | ||
Scheme 0 has wider dynamic range, Scheme 1 proximity detection | ||
is less affected by the ambient IR noise variation. | ||
|
||
0 Sensing IR from LED and ambient | ||
1 Sensing IR from LED with ambient IR rejection |
14 changes: 7 additions & 7 deletions
14
...Documentation/sysfs-bus-iio-light-tsl2583 → ...n/ABI/testing/sysfs-bus-iio-light-tsl2583
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Documentation/ABI/testing/sysfs-bus-iio-potentiometer-mcp4531
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
What: /sys/bus/iio/devices/iio:deviceX/out_resistance_raw_available | ||
Date: October 2016 | ||
KernelVersion: 4.9 | ||
Contact: Peter Rosin <peda@axentia.se> | ||
Description: | ||
The range of available values represented as the minimum value, | ||
the step and the maximum value, all enclosed in square brackets. | ||
Example: [0 1 256] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
Documentation/devicetree/bindings/iio/adc/envelope-detector.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Bindings for ADC envelope detector using a DAC and a comparator | ||
|
||
The DAC is used to find the peak level of an alternating voltage input | ||
signal by a binary search using the output of a comparator wired to | ||
an interrupt pin. Like so: | ||
_ | ||
| \ | ||
input +------>-------|+ \ | ||
| \ | ||
.-------. | }---. | ||
| | | / | | ||
| dac|-->--|- / | | ||
| | |_/ | | ||
| | | | ||
| | | | ||
| irq|------<-------' | ||
| | | ||
'-------' | ||
|
||
Required properties: | ||
- compatible: Should be "axentia,tse850-envelope-detector" | ||
- io-channels: Channel node of the dac to be used for comparator input. | ||
- io-channel-names: Should be "dac". | ||
- interrupt specification for one client interrupt, | ||
see ../../interrupt-controller/interrupts.txt for details. | ||
- interrupt-names: Should be "comp". | ||
|
||
Example: | ||
|
||
&i2c { | ||
dpot: mcp4651-104@28 { | ||
compatible = "microchip,mcp4651-104"; | ||
reg = <0x28>; | ||
#io-channel-cells = <1>; | ||
}; | ||
}; | ||
|
||
dac: dac { | ||
compatible = "dpot-dac"; | ||
vref-supply = <®_3v3>; | ||
io-channels = <&dpot 0>; | ||
io-channel-names = "dpot"; | ||
#io-channel-cells = <1>; | ||
}; | ||
|
||
envelope-detector { | ||
compatible = "axentia,tse850-envelope-detector"; | ||
io-channels = <&dac 0>; | ||
io-channel-names = "dac"; | ||
|
||
interrupt-parent = <&gpio>; | ||
interrupts = <3 IRQ_TYPE_EDGE_FALLING>; | ||
interrupt-names = "comp"; | ||
}; |
Oops, something went wrong.