Skip to content

Commit 98c2f10

Browse files
committed
Merge tag 'iio-for-4.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
Jonathan writes: First round of IIO new device support, features and cleanups for the 4.14 cycle. 4 completely new drivers in this set and plenty of other stuff. One ABI change due to a silly mistake a long time back. Hopefully no one will notice. It effects the numerical order of consumer device channels which was the reverse of the obvious. It's going the slow way to allow us some margin to spot if we have broken userspace or not (seems unlikely) New Device Support * ccs811 - new driver for the Volatile Organic Compounds (VOC) sensor. * dln2 adc - new driver for the ADC on this flexible usb board. * EP93xx - new driver for this Cirrus logic SoC ADC. * ltc2471 - new ADC driver support the ltc2471 and ltc2473 * st_accel - add trivial table entries to support H3LIS331DL, LIS331DL, LIS3LV02DL. * st_gyro - add L3GD20H support (again) having fixed the various things that were broken in the first try. Includes devicetree binding. * stm32 dac - add support for the DACs in the STM32F4 series Features * Documentation - add missing power attribute documentation to the ABI docs. * at91-sama5d2 - add hardware trigger and buffered capture support with bindings. - suspend and resume functionality. * bmc150 - support for the BOSC0200 ACPI device id seen on some tablets. * hdc100x - devicetree bindings - document supported devices - match table and device ids. * hts221 - support active low interrupts (with bindings) - open drain mode with bindings. * htu21 - OF match table and bindings. * lsm6dsx - open drain mode with bindings * ltc2497 - add support for board file based consumer mapping. * ms5367 - OF match table and bindings. * mt7622 - binding document and OF match table. - suspend and resume support. * rpr0521 - triggered buffer support. * tsys01 - OF match table and bindings. Cleanups and minor fixes * core - fix ordering of IIO channels to entry numbers when using iio_map_array_register rather than reversing them. - use the new %pOF format specifier rather than full name for the device tree nodes. * ad7280a - fix potential issue with macro argument reuse. * ad7766 - drop a pointless NULL value check as it's done in the gpiod code. * adis16400 - unsigned -> unsigned int. * at91 adc - make some init data static to reduce code size. * at91-sama5d2 ADC - make some init data static to reduce code size. * da311 - make some init data static to reduce code size. * hid-sensor-rotation - drop an unnecessary static. * hts221 - refactor the write_with_mask code. - move the BDU configuration to probe time as there is no reason for it to change. - avoid overwriting reserved data during power-down. This is a fix, but the infrastructure need was too invasive to send it to mainline except in a merge window. It's not a regression as it was always wrong. - avoid reconfigure the sampling frequency multiple times by just doing it in the write_raw function directly. - refactor the power_on/off calls into a set_enable. - move the dry-enable logic into trig_set_state as that is the only place it was used. * ina219 - fix polling of ina226 conversion ready flag. * imx7d - add vendor name in kconfig for consistency with similar parts. * mcp3422 - Change initial channel to 0 as it feels more logical. - Check for some errors in probe. * meson-saradc - add a check of of_match_device return value. * mpu3050 - allow open drain for any interrupt type. * rockchip adc - add check on of_match_device return value. * sca3000 - drop a trailing whitespace. * stm32 adc - make array stm32h7_adc_ckmodes_spec static. * stm32 dac - fix an error message. * stm32 timers - fix clock name in docs to match reality after changes. * st_accel - explicit OF table (spi). - add missing entries to OF table (i2c). - rename of_device_id table to drop the part name. - adding missing lis3l02dq entry to bindings. - rename H3LIS331DL_DRIVER_NAME to line up with similar entries in driver. * st_gyro - explicit OF table (spi). * st_magn - explicit OF table (spi). - enable multiread for lis3mdl. * st_pressure - explicit OF table (spi). * st_sensors common. - move st_sensors_of_i2c_probe and rename to make it available for spi drivers. * tsc3472 - don't write an extra byte when writing the ATIME register. - add a link to the datasheet. * tsl2x7x - continued staging cleanups - add of_match_table. - drop redundant power_state sysfs attribute. - drop wrapper tsl2x7x_i2c_read. - clean up i2c calls made in tsl2x7x_als_calibrate. - refactor the read and write _event_value callbacks to handle additional elements. - use usleep_range instead of mdelay. - check return value from tsl2x7x_invoke_change. * zpa2326 - add some newline to the end of logging macros.
2 parents a29e249 + f3f0ae1 commit 98c2f10

74 files changed

Lines changed: 3098 additions & 479 deletions

Some content is hidden

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

‎Documentation/ABI/testing/sysfs-bus-iio‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ Description:
119119
unique to allow association with event codes. Units after
120120
application of scale and offset are milliamps.
121121

122+
What: /sys/bus/iio/devices/iio:deviceX/in_powerY_raw
123+
KernelVersion: 4.5
124+
Contact: linux-iio@vger.kernel.org
125+
Description:
126+
Raw (unscaled no bias removal etc.) power measurement from
127+
channel Y. The number must always be specified and
128+
unique to allow association with event codes. Units after
129+
application of scale and offset are milliwatts.
130+
122131
What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
123132
KernelVersion: 3.2
124133
Contact: linux-iio@vger.kernel.org

‎Documentation/devicetree/bindings/iio/adc/at91-sama5d2_adc.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Required properties:
1111
- atmel,min-sample-rate-hz: Minimum sampling rate, it depends on SoC.
1212
- atmel,max-sample-rate-hz: Maximum sampling rate, it depends on SoC.
1313
- atmel,startup-time-ms: Startup time expressed in ms, it depends on SoC.
14+
- atmel,trigger-edge-type: One of possible edge types for the ADTRG hardware
15+
trigger pin. When the specific edge type is detected, the conversion will
16+
start. Possible values are rising, falling, or both.
17+
This property uses the IRQ edge types values: IRQ_TYPE_EDGE_RISING ,
18+
IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH
1419

1520
Example:
1621

@@ -25,4 +30,5 @@ adc: adc@fc030000 {
2530
atmel,startup-time-ms = <4>;
2631
vddana-supply = <&vdd_3v3_lp_reg>;
2732
vref-supply = <&vdd_3v3_lp_reg>;
33+
atmel,trigger-edge-type = <IRQ_TYPE_EDGE_BOTH>;
2834
}

‎Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ for the Thermal Controller which holds a phandle to the AUXADC.
1212
Required properties:
1313
- compatible: Should be one of:
1414
- "mediatek,mt2701-auxadc": For MT2701 family of SoCs
15+
- "mediatek,mt7622-auxadc": For MT7622 family of SoCs
1516
- "mediatek,mt8173-auxadc": For MT8173 family of SoCs
1617
- reg: Address range of the AUXADC unit.
1718
- clocks: Should contain a clock specifier for each entry in clock-names

‎Documentation/devicetree/bindings/iio/dac/st,stm32-dac.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ current.
1010
Contents of a stm32 dac root node:
1111
-----------------------------------
1212
Required properties:
13-
- compatible: Must be "st,stm32h7-dac-core".
13+
- compatible: Should be one of:
14+
"st,stm32f4-dac-core"
15+
"st,stm32h7-dac-core"
1416
- reg: Offset and length of the device's register set.
1517
- clocks: Must contain an entry for pclk (which feeds the peripheral bus
1618
interface)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
* HDC100x temperature + humidity sensors
2+
3+
Required properties:
4+
- compatible: Should contain one of the following:
5+
ti,hdc1000
6+
ti,hdc1008
7+
ti,hdc1010
8+
ti,hdc1050
9+
ti,hdc1080
10+
- reg: i2c address of the sensor
11+
12+
Example:
13+
14+
hdc100x@40 {
15+
compatible = "ti,hdc1000";
16+
reg = <0x40>;
17+
};

‎Documentation/devicetree/bindings/iio/humidity/hts221.txt‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ Required properties:
55
- reg: i2c address of the sensor / spi cs line
66

77
Optional properties:
8+
- drive-open-drain: the interrupt/data ready line will be configured
9+
as open drain, which is useful if several sensors share the same
10+
interrupt line. This is a boolean property.
11+
If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or
12+
IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line
13+
when it is not active, whereas a pull-up one is needed when interrupt
14+
line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING.
15+
Refer to pinctrl/pinctrl-bindings.txt for the property description.
816
- interrupt-parent: should be the phandle for the interrupt controller
917
- interrupts: interrupt mapping for IRQ. It should be configured with
10-
flags IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING.
18+
flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
19+
IRQ_TYPE_EDGE_FALLING.
1120

1221
Refer to interrupt-controller/interrupts.txt for generic interrupt
1322
client node bindings.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*HTU21 - Measurement-Specialties htu21 temperature & humidity sensor and humidity part of MS8607 sensor
2+
3+
Required properties:
4+
5+
- compatible: should be "meas,htu21" or "meas,ms8607-humidity"
6+
- reg: I2C address of the sensor
7+
8+
Example:
9+
10+
htu21@40 {
11+
compatible = "meas,htu21";
12+
reg = <0x40>;
13+
};

‎Documentation/devicetree/bindings/iio/imu/st_lsm6dsx.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ Required properties:
1111
Optional properties:
1212
- st,drdy-int-pin: the pin on the package that will be used to signal
1313
"data ready" (valid values: 1 or 2).
14+
- drive-open-drain: the interrupt/data ready line will be configured
15+
as open drain, which is useful if several sensors share the same
16+
interrupt line. This is a boolean property.
17+
(This binding is taken from pinctrl/pinctrl-bindings.txt)
18+
If the requested interrupt is configured as IRQ_TYPE_LEVEL_HIGH or
19+
IRQ_TYPE_EDGE_RISING a pull-down resistor is needed to drive the line
20+
when it is not active, whereas a pull-up one is needed when interrupt
21+
line is configured as IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_EDGE_FALLING.
1422
- interrupt-parent: should be the phandle for the interrupt controller
1523
- interrupts: interrupt mapping for IRQ. It should be configured with
1624
flags IRQ_TYPE_LEVEL_HIGH, IRQ_TYPE_EDGE_RISING, IRQ_TYPE_LEVEL_LOW or
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
* MS5637 - Measurement-Specialties MS5637, MS5805, MS5837 and MS8607 pressure & temperature sensor
2+
3+
Required properties:
4+
5+
-compatible: should be one of the following
6+
meas,ms5637
7+
meas,ms5805
8+
meas,ms5837
9+
meas,ms8607-temppressure
10+
-reg: I2C address of the sensor
11+
12+
Example:
13+
14+
ms5637@76 {
15+
compatible = "meas,ms5637";
16+
reg = <0x76>;
17+
};

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ Accelerometers:
4545
- st,lis2dh12-accel
4646
- st,h3lis331dl-accel
4747
- st,lng2dm-accel
48+
- st,lis3l02dq
4849

4950
Gyroscopes:
5051
- st,l3g4200d-gyro
5152
- st,lsm330d-gyro
5253
- st,lsm330dl-gyro
5354
- st,lsm330dlc-gyro
5455
- st,l3gd20-gyro
56+
- st,l3gd20h-gyro
5557
- st,l3g4is-gyro
5658
- st,lsm330-gyro
5759
- st,lsm9ds0-gyro

0 commit comments

Comments
 (0)