Skip to content

Commit c6a677c

Browse files
committed
Merge tag 'staging-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging/IIO updates from Greg KH: "Here is the big staging tree update for 4.12-rc1. It's a big one, adding about 350k new lines of crap^Wcode, mostly all in a big dump of media drivers from Intel. But there's other new drivers in here as well, yet-another-wifi driver, new IIO drivers, and a new crypto accelerator. We also deleted a bunch of stuff, mostly in patch cleanups, but also the Android ION code has shrunk a lot, and the Android low memory killer driver was finally deleted, much to the celebration of the -mm developers. All of these have been in linux-next with a few build issues that will show up when you merge to your tree" Merge conflicts in the new rtl8723bs driver (due to the wifi changes this merge window) handled as per linux-next, courtesy of Stephen Rothwell. * tag 'staging-4.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1182 commits) staging: fsl-mc/dpio: add cpu <--> LE conversion for dpaa2_fd staging: ks7010: remove line continuations in quoted strings staging: vt6656: use tabs instead of spaces staging: android: ion: Fix unnecessary initialization of static variable staging: media: atomisp: fix range checking on clk_num staging: media: atomisp: fix misspelled word in comment staging: media: atomisp: kmap() can't fail staging: atomisp: remove #ifdef for runtime PM functions staging: atomisp: satm include directory is gone atomisp: remove some more unused files atomisp: remove hmm_load/store/clear indirections atomisp: kill off mmgr_free atomisp: clean up the hmm init/cleanup indirections atomisp: handle allocation calls before init in the hmm layer staging: fsl-dpaa2/eth: Add maintainer for Ethernet driver staging: fsl-dpaa2/eth: Add TODO file staging: fsl-dpaa2/eth: Add trace points staging: fsl-dpaa2/eth: Add driver specific stats staging: fsl-dpaa2/eth: Add ethtool support staging: fsl-dpaa2/eth: Add Freescale DPAA2 Ethernet driver ...
2 parents e87d51a + 1127005 commit c6a677c

File tree

1,787 files changed

+359290
-15278
lines changed

Some content is hidden

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

1,787 files changed

+359290
-15278
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Mauro Carvalho Chehab <mchehab@kernel.org> <mchehab@osg.samsung.com>
111111
Mauro Carvalho Chehab <mchehab@kernel.org> <mchehab@s-opensource.com>
112112
Matt Ranostay <mranostay@gmail.com> Matthew Ranostay <mranostay@embeddedalley.com>
113113
Matt Ranostay <mranostay@gmail.com> <matt.ranostay@intel.com>
114+
Matt Ranostay <matt.ranostay@konsulko.com> <matt@ranostay.consulting>
114115
Mayuresh Janorkar <mayur@ti.com>
115116
Michael Buesch <m@bues.ch>
116117
Michel Dänzer <michel@tungstengraphics.com>

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Description:
5555
then it is to be found in the base device directory.
5656

5757
What: /sys/bus/iio/devices/iio:deviceX/sampling_frequency_available
58+
What: /sys/bus/iio/devices/iio:deviceX/in_proximity_sampling_frequency_available
5859
What: /sys/.../iio:deviceX/buffer/sampling_frequency_available
5960
What: /sys/bus/iio/devices/triggerX/sampling_frequency_available
6061
KernelVersion: 2.6.35
@@ -1593,18 +1594,32 @@ Description:
15931594
can be processed to siemens per meter.
15941595

15951596
What: /sys/bus/iio/devices/iio:deviceX/in_countY_raw
1596-
KernelVersion: 4.9
1597+
KernelVersion: 4.10
15971598
Contact: linux-iio@vger.kernel.org
15981599
Description:
15991600
Raw counter device counts from channel Y. For quadrature
16001601
counters, multiplication by an available [Y]_scale results in
16011602
the counts of a single quadrature signal phase from channel Y.
16021603

16031604
What: /sys/bus/iio/devices/iio:deviceX/in_indexY_raw
1604-
KernelVersion: 4.9
1605+
KernelVersion: 4.10
16051606
Contact: linux-iio@vger.kernel.org
16061607
Description:
16071608
Raw counter device index value from channel Y. This attribute
16081609
provides an absolute positional reference (e.g. a pulse once per
16091610
revolution) which may be used to home positional systems as
16101611
required.
1612+
1613+
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
1614+
KernelVersion: 4.12
1615+
Contact: linux-iio@vger.kernel.org
1616+
Description:
1617+
A list of possible counting directions which are:
1618+
- "up" : counter device is increasing.
1619+
- "down": counter device is decreasing.
1620+
1621+
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
1622+
KernelVersion: 4.12
1623+
Contact: linux-iio@vger.kernel.org
1624+
Description:
1625+
Raw counter device counters direction for channel Y.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_power_shunt_resistor
2+
Date: March 2017
3+
KernelVersion: 4.12
4+
Contact: linux-iio@vger.kernel.org
5+
Description: The value of the shunt resistor used to compute power drain on
6+
common input voltage pin (RS+). In Ohms.
7+
8+
What: /sys/bus/iio/devices/iio:deviceX/in_current_shunt_resistor
9+
Date: March 2017
10+
KernelVersion: 4.12
11+
Contact: linux-iio@vger.kernel.org
12+
Description: The value of the shunt resistor used to compute current flowing
13+
between RS+ and RS- voltage sense inputs. In Ohms.
14+
15+
These attributes describe a single physical component, exposed as two distinct
16+
attributes as it is used to calculate two different values: power load and
17+
current flowing between RS+ and RS- inputs.

Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_direction_available
21
What: /sys/bus/iio/devices/iio:deviceX/in_count_count_mode_available
32
What: /sys/bus/iio/devices/iio:deviceX/in_count_noise_error_available
43
What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
54
What: /sys/bus/iio/devices/iio:deviceX/in_index_index_polarity_available
65
What: /sys/bus/iio/devices/iio:deviceX/in_index_synchronous_mode_available
7-
KernelVersion: 4.9
6+
KernelVersion: 4.10
87
Contact: linux-iio@vger.kernel.org
98
Description:
109
Discrete set of available values for the respective counter
1110
configuration are listed in this file.
1211

13-
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_direction
14-
KernelVersion: 4.9
15-
Contact: linux-iio@vger.kernel.org
16-
Description:
17-
Read-only attribute that indicates whether the counter for
18-
channel Y is counting up or down.
19-
2012
What: /sys/bus/iio/devices/iio:deviceX/in_countY_count_mode
21-
KernelVersion: 4.9
13+
KernelVersion: 4.10
2214
Contact: linux-iio@vger.kernel.org
2315
Description:
2416
Count mode for channel Y. Four count modes are available:
@@ -52,22 +44,22 @@ Description:
5244
continuously throughout.
5345

5446
What: /sys/bus/iio/devices/iio:deviceX/in_countY_noise_error
55-
KernelVersion: 4.9
47+
KernelVersion: 4.10
5648
Contact: linux-iio@vger.kernel.org
5749
Description:
5850
Read-only attribute that indicates whether excessive noise is
5951
present at the channel Y count inputs in quadrature clock mode;
6052
irrelevant in non-quadrature clock mode.
6153

6254
What: /sys/bus/iio/devices/iio:deviceX/in_countY_preset
63-
KernelVersion: 4.9
55+
KernelVersion: 4.10
6456
Contact: linux-iio@vger.kernel.org
6557
Description:
6658
If the counter device supports preset registers, the preset
6759
count for channel Y is provided by this attribute.
6860

6961
What: /sys/bus/iio/devices/iio:deviceX/in_countY_quadrature_mode
70-
KernelVersion: 4.9
62+
KernelVersion: 4.10
7163
Contact: linux-iio@vger.kernel.org
7264
Description:
7365
Configure channel Y counter for non-quadrature or quadrature
@@ -88,22 +80,22 @@ Description:
8880
decoded for UP/DN clock.
8981

9082
What: /sys/bus/iio/devices/iio:deviceX/in_countY_set_to_preset_on_index
91-
KernelVersion: 4.9
83+
KernelVersion: 4.10
9284
Contact: linux-iio@vger.kernel.org
9385
Description:
9486
Whether to set channel Y counter with channel Y preset value
9587
when channel Y index input is active, or continuously count.
9688
Valid attribute values are boolean.
9789

9890
What: /sys/bus/iio/devices/iio:deviceX/in_indexY_index_polarity
99-
KernelVersion: 4.9
91+
KernelVersion: 4.10
10092
Contact: linux-iio@vger.kernel.org
10193
Description:
10294
Active level of channel Y index input; irrelevant in
10395
non-synchronous load mode.
10496

10597
What: /sys/bus/iio/devices/iio:deviceX/in_indexY_synchronous_mode
106-
KernelVersion: 4.9
98+
KernelVersion: 4.10
10799
Contact: linux-iio@vger.kernel.org
108100
Description:
109101
Configure channel Y counter for non-synchronous or synchronous

Documentation/ABI/testing/sysfs-bus-iio-timer-stm32

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ KernelVersion: 4.11
33
Contact: benjamin.gaignard@st.com
44
Description:
55
Reading returns the list possible master modes which are:
6-
- "reset" : The UG bit from the TIMx_EGR register is used as trigger output (TRGO).
7-
- "enable" : The Counter Enable signal CNT_EN is used as trigger output.
6+
- "reset" : The UG bit from the TIMx_EGR register is
7+
used as trigger output (TRGO).
8+
- "enable" : The Counter Enable signal CNT_EN is used
9+
as trigger output.
810
- "update" : The update event is selected as trigger output.
9-
For instance a master timer can then be used as a prescaler for a slave timer.
10-
- "compare_pulse" : The trigger output send a positive pulse when the CC1IF flag is to be set.
11+
For instance a master timer can then be used
12+
as a prescaler for a slave timer.
13+
- "compare_pulse" : The trigger output send a positive pulse
14+
when the CC1IF flag is to be set.
1115
- "OC1REF" : OC1REF signal is used as trigger output.
1216
- "OC2REF" : OC2REF signal is used as trigger output.
1317
- "OC3REF" : OC3REF signal is used as trigger output.
@@ -27,3 +31,62 @@ Description:
2731
Reading returns the current sampling frequency.
2832
Writing an value different of 0 set and start sampling.
2933
Writing 0 stop sampling.
34+
35+
What: /sys/bus/iio/devices/iio:deviceX/in_count0_preset
36+
KernelVersion: 4.12
37+
Contact: benjamin.gaignard@st.com
38+
Description:
39+
Reading returns the current preset value.
40+
Writing sets the preset value.
41+
When counting up the counter starts from 0 and fires an
42+
event when reach preset value.
43+
When counting down the counter start from preset value
44+
and fire event when reach 0.
45+
46+
What: /sys/bus/iio/devices/iio:deviceX/in_count_quadrature_mode_available
47+
KernelVersion: 4.12
48+
Contact: benjamin.gaignard@st.com
49+
Description:
50+
Reading returns the list possible quadrature modes.
51+
52+
What: /sys/bus/iio/devices/iio:deviceX/in_count0_quadrature_mode
53+
KernelVersion: 4.12
54+
Contact: benjamin.gaignard@st.com
55+
Description:
56+
Configure the device counter quadrature modes:
57+
channel_A:
58+
Encoder A input servers as the count input and B as
59+
the UP/DOWN direction control input.
60+
61+
channel_B:
62+
Encoder B input serves as the count input and A as
63+
the UP/DOWN direction control input.
64+
65+
quadrature:
66+
Encoder A and B inputs are mixed to get direction
67+
and count with a scale of 0.25.
68+
69+
What: /sys/bus/iio/devices/iio:deviceX/in_count_enable_mode_available
70+
KernelVersion: 4.12
71+
Contact: benjamin.gaignard@st.com
72+
Description:
73+
Reading returns the list possible enable modes.
74+
75+
What: /sys/bus/iio/devices/iio:deviceX/in_count0_enable_mode
76+
KernelVersion: 4.12
77+
Contact: benjamin.gaignard@st.com
78+
Description:
79+
Configure the device counter enable modes, in all case
80+
counting direction is set by in_count0_count_direction
81+
attribute and the counter is clocked by the internal clock.
82+
always:
83+
Counter is always ON.
84+
85+
gated:
86+
Counting is enabled when connected trigger signal
87+
level is high else counting is disabled.
88+
89+
triggered:
90+
Counting is enabled on rising edge of the connected
91+
trigger, and remains enabled for the duration of this
92+
selected mode.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Analog Devices ADXL345 3-Axis, +/-(2g/4g/8g/16g) Digital Accelerometer
2+
3+
http://www.analog.com/en/products/mems/accelerometers/adxl345.html
4+
5+
Required properties:
6+
- compatible : should be "adi,adxl345"
7+
- reg : the I2C address or SPI chip select number of the sensor
8+
9+
Required properties for SPI bus usage:
10+
- spi-max-frequency : set maximum clock frequency, must be 5000000
11+
- spi-cpol and spi-cpha : must be defined for adxl345 to enable SPI mode 3
12+
13+
Optional properties:
14+
- interrupt-parent : phandle to the parent interrupt controller as documented
15+
in Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
16+
- interrupts: interrupt mapping for IRQ as documented in
17+
Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
18+
19+
Example for a I2C device node:
20+
21+
accelerometer@2a {
22+
compatible = "adi,adxl345";
23+
reg = <0x53>;
24+
interrupt-parent = <&gpio1>;
25+
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
26+
};
27+
28+
Example for a SPI device node:
29+
30+
accelerometer@0 {
31+
compatible = "adi,adxl345";
32+
reg = <0>;
33+
spi-max-frequency = <5000000>;
34+
spi-cpol;
35+
spi-cpha;
36+
interrupt-parent = <&gpio1>;
37+
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
38+
};

Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Required properties:
77
- "amlogic,meson-gxm-saradc" for GXM
88
along with the generic "amlogic,meson-saradc"
99
- reg: the physical base address and length of the registers
10+
- interrupts: the interrupt indicating end of sampling
1011
- clocks: phandle and clock identifier (see clock-names)
1112
- clock-names: mandatory clocks:
1213
- "clkin" for the reference clock (typically XTAL)
@@ -23,6 +24,7 @@ Example:
2324
compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc";
2425
#io-channel-cells = <1>;
2526
reg = <0x0 0x8680 0x0 0x34>;
27+
interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
2628
clocks = <&xtal>,
2729
<&clkc CLKID_SAR_ADC>,
2830
<&clkc CLKID_SANA>,
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Aspeed ADC
2+
3+
This device is a 10-bit converter for 16 voltage channels. All inputs are
4+
single ended.
5+
6+
Required properties:
7+
- compatible: Should be "aspeed,ast2400-adc" or "aspeed,ast2500-adc"
8+
- reg: memory window mapping address and length
9+
- clocks: Input clock used to derive the sample clock. Expected to be the
10+
SoC's APB clock.
11+
- #io-channel-cells: Must be set to <1> to indicate channels are selected
12+
by index.
13+
14+
Example:
15+
adc@1e6e9000 {
16+
compatible = "aspeed,ast2400-adc";
17+
reg = <0x1e6e9000 0xb0>;
18+
clocks = <&clk_apb>;
19+
#io-channel-cells = <1>;
20+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Motorola CPCAP PMIC ADC binding
2+
3+
Required properties:
4+
- compatible: Should be "motorola,cpcap-adc" or "motorola,mapphone-cpcap-adc"
5+
- interrupt-parent: The interrupt controller
6+
- interrupts: The interrupt number for the ADC device
7+
- interrupt-names: Should be "adcdone"
8+
- #io-channel-cells: Number of cells in an IIO specifier
9+
10+
Example:
11+
12+
cpcap_adc: adc {
13+
compatible = "motorola,mapphone-cpcap-adc";
14+
interrupt-parent = <&cpcap>;
15+
interrupts = <8 IRQ_TYPE_NONE>;
16+
interrupt-names = "adcdone";
17+
#io-channel-cells = <1>;
18+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* Linear Technology / Analog Devices LTC2497 ADC
2+
3+
Required properties:
4+
- compatible: Must be "lltc,ltc2497"
5+
- reg: Must contain the ADC I2C address
6+
- vref-supply: The regulator supply for ADC reference voltage
7+
8+
Example:
9+
ltc2497: adc@76 {
10+
compatible = "lltc,ltc2497";
11+
reg = <0x76>;
12+
vref-supply = <&ltc2497_reg>;
13+
};

0 commit comments

Comments
 (0)