Skip to content

Commit b290f90

Browse files
committed
Merge tag 'iio-for-5.10b-take2' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
Jonathan writes: Second set of features and cleanups for IIO in 5.10 We have a couple of changes that apply to large sets of drivers, so I have grouped those to keep this short. There are a few late breaking fixes in here that can wait for the merge window. dt yaml conversions ------------------- * adi,ad7768-1 * adi,ad7949 * aspeed,ast2400 * cosmic,10001-adc * dlg,da9150-gpadc * fsl,imx25-gcq * fsl,imx7d-adc * fsl,vf610 * holt,hi8435 * marvell,berlin2-adc * motorola,cpcap-adc * nuvoton,nau7802 * nuvoton,npcm750-adc * nxp,lpc1850-adc * nxp,lpc3220 * sprd,sc2720-adc * st,stmpe-adc * ti,adc12138 * ti,ads1015 * ti,ads7950 * ti,twl4030-madc Features -------- * adxrs290 - Add triggered buffer support and expose data ready signal as a possible trigger. Includes updating bindings. - Add debugfs hooks for register access. * mlx90632 - Add a clear user interface to override the measured ambient temperature. * vl53l0x - Add IRQ support including dt bindings. Cleanups and minor fixes ------------------------ (groups) Replace mlock with local lock: * adf4350 * exynos-adc * fls-imx25-gcq * stm32-dac devm use to simplify probe error handling and remove functions. * adis16201 * adis16203 * adis16209 * adis16240 * adis16136 * adis16260 * adis16400 * adis16460 * adis16480 * adis library - drop unused adis_setup_buffer_and_trigger() of_match_ptr removal and incorrect ACPI binding removal of_match_ptr() rarely makes sense in an IIO driver as space saving is trivial and it breaks ACPI PRP0001 based instantiation. Mostly this series is about removing examples that get copied into new drivers. * ad2s1200 * ad5272 * ad5446 * ad5592r * ad5593r * ad5703 * ak8974 * ak8975 * ams-iaq-core * as3935 * atlas-sensor * ds1803 * hdc100x * htu21 * icp10100 * lmp91000 * pulsedlight * max30102 * max5432 * max5481 * mcp4018 * mcp4131 * mcp4531 * mcp4725 * ms5611 * ms5637 * si7020 * sgp30 * ti-dac082s085 * ti-dac5571 * tmp007 * tsys01 * vz89x * zpa2326 kernel-doc fixes * iio-core * ad7303 * ad7947 * adis16080 * adis16400 * iio_dummy_evgen * sgp30 Fixes for buffer alignment when passed to iio_push_to_buffers_with_timestamp() This is a long running effort. There are a few more drivers to come. * inv_mpu6050 * itg3200 * si1145 * st_lsm6dsx * ti-adc0832 * ti-adc12138 (not driver focused) * MAINTAINERS - Consolidate Analog Device IIO entries whilst removing Beniamin Bia. - Remove Hartmut Knaack as a listed IIO maintainer as he hasn't been active for a long time and people are getting intermitted bounces. * Add __printf() markings to a few functions that were missing them. * drop some rotted documentation from staging. * rework buffer sysfs file creation (precursor to multiple buffer support) (individual drivers) * ad5592r - Fix use of true for IIO_SHARED_BY_TYPE - Tidy up locking and indentation. * ad9467 - Improve error message on chip-id missmatch. - Use more appropriate error value if chip-id not recognised. * adis-library - Simplify burst mode handling. * adxrs290 - Make sure to switch device to standby mode during remove. * as73211 - Increase measurement timeout as seems some devices are slower. * bma180 - Fix use of true fo IIO_SHARED_BY_TYPE * exynos_adc - Update binding to require second interrut with touch screen. - Update binding to not require syscon on S5Pv210 * hmc5843 - Fix use of true for IIO_SHARED_BY_TYPE * inv_mpu6050 - Use regmap_noinc_read() for fifo reading. * palmas_gpadc - Use module_platform_driver() to remove boilerplate. * meson-saradc - style consistency fixes * rockchip_saradc - Allow compile testing with !ARM. * st_lsm6dsx - Changing scaling factor to use IIO_VAL_INT_PLUS_NANO to improve precision. - Fix an issue with unchecked return value. * stm32-adc - Fix a missing return introduced in dev_err_probe() patch earlier in cycle. * sx9310 - Prefer async mode for probe as paticularly slow startup. * vcnl4000 - Add missing interrupt property to dt binding. * tag 'iio-for-5.10b-take2' of https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (126 commits) dt-bindings: iio: vishay,vcnl4000: add interrupts property iio:imu:inv_mpu6050: Use regmap_noinc_read for fifo reads. iio:imu:inv_mpu6050 Fix dma and ts alignment and data leak issues. iio:adc:ti-adc12138 Fix alignment issue with timestamp iio:adc:ti-adc0832 Fix alignment issue with timestamp iio:imu:st_lsm6dsx Fix alignment and data leak issues iio:light:si1145: Fix timestamp alignment and prevent data leak. iio:gyro:itg3200: Fix timestamp alignment and prevent data leak. iio:imu:st_lsm6dsx: check st_lsm6dsx_shub_read_output return iio: adc: exynos_adc: Replace indio_dev->mlock with own device lock dt-bindings:iio:adc:holt,hi8435 yaml conversion dt-bindings:iio:adc:adi,ad7768-1 yaml conversion dt-bindings:iio:adc:adi,ad7949 yaml conversion dt-bindings:iio:adc:dlg,da9150-gpadc yaml conversion dt-bindings:iio:adc:motorola,cpcap-adc yaml conversion dt-bindings:iio:adc:nxp,lpc3220-adc yaml conversion dt-bindings:iio:adc:nxp,lpc1850-adc yaml conversion dt-bindings:iio:adc:fsl,imx25-gcq yaml conversion dt-bindings:iio:adc:fsl,imx7d-adc yaml conversion dt-bindings:iio:adc:ti,ads1015 yaml conversion ...
2 parents 93b6154 + 596fd01 commit b290f90

144 files changed

Lines changed: 2382 additions & 1818 deletions

File tree

Some content is hidden

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

‎CREDITS‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,10 @@ S: Post Office Box 611311
19421942
S: San Jose, California 95161-1311
19431943
S: USA
19441944

1945+
N: Hartmut Knaack
1946+
E: knaack.h@gmx.de
1947+
D: IIO subsystem and drivers
1948+
19451949
N: Thorsten Knabe
19461950
E: Thorsten Knabe <tek@rbg.informatik.tu-darmstadt.de>
19471951
E: Thorsten Knabe <tek01@hrzpub.tu-darmstadt.de>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,14 @@ Contact: linux-iio@vger.kernel.org
17581758
Description:
17591759
One of the following thermocouple types: B, E, J, K, N, R, S, T.
17601760

1761+
What: /sys/bus/iio/devices/iio:deviceX/in_temp_object_calibambient
1762+
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_object_calibambient
1763+
KernelVersion: 5.10
1764+
Contact: linux-iio@vger.kernel.org
1765+
Description:
1766+
Calibrated ambient temperature for object temperature
1767+
calculation in milli degrees Celsius.
1768+
17611769
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_x_raw
17621770
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_y_raw
17631771
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_z_raw

drivers/staging/iio/Documentation/light/sysfs-bus-iio-light-tsl2x7x renamed to Documentation/ABI/testing/sysfs-bus-iio-light-tsl2772

File renamed without changes.

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

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.txt‎

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices AD7768-1 ADC device driver
8+
9+
maintainers:
10+
- Michael Hennerich <michael.hennerich@analog.com>
11+
12+
description: |
13+
Datasheet at:
14+
https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
15+
16+
properties:
17+
compatible:
18+
const: adi,ad7768-1
19+
20+
reg:
21+
maxItems: 1
22+
23+
clocks:
24+
maxItems: 1
25+
26+
clock-names:
27+
const: mclk
28+
29+
interrupts:
30+
maxItems: 1
31+
32+
vref-supply:
33+
description:
34+
ADC reference voltage supply
35+
36+
adi,sync-in-gpios:
37+
description:
38+
Enables synchronization of multiple devices that require simultaneous
39+
sampling. A pulse is always required if the configuration is changed
40+
in any way, for example if the filter decimation rate changes.
41+
As the line is active low, it should be marked GPIO_ACTIVE_LOW.
42+
43+
reset-gpios:
44+
maxItems: 1
45+
46+
spi-max-frequency: true
47+
48+
spi-cpol: true
49+
spi-cpha : true
50+
51+
"#io-channel-cells":
52+
const: 1
53+
54+
required:
55+
- compatible
56+
- reg
57+
- clocks
58+
- clock-names
59+
- vref-supply
60+
- spi-cpol
61+
- spi-cpha
62+
- adi,sync-in-gpios
63+
64+
additionalProperties: false
65+
66+
examples:
67+
- |
68+
#include <dt-bindings/interrupt-controller/irq.h>
69+
#include <dt-bindings/gpio/gpio.h>
70+
spi {
71+
#address-cells = <1>;
72+
#size-cells = <0>;
73+
74+
adc@0 {
75+
compatible = "adi,ad7768-1";
76+
reg = <0>;
77+
spi-max-frequency = <2000000>;
78+
spi-cpol;
79+
spi-cpha;
80+
vref-supply = <&adc_vref>;
81+
interrupts = <25 IRQ_TYPE_EDGE_RISING>;
82+
interrupt-parent = <&gpio>;
83+
adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
84+
reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
85+
clocks = <&ad7768_mclk>;
86+
clock-names = "mclk";
87+
};
88+
};
89+
...
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/adc/adi,ad7949.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Analog Devices AD7949/AD7682/AD7689 analog to digital converters
8+
9+
maintainers:
10+
- Charles-Antoine Couret <charles-antoine.couret@essensium.com>
11+
12+
description: |
13+
Specifications on the converters can be found at:
14+
AD7949:
15+
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
16+
AD7682/AD7698:
17+
https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- adi,ad7682
23+
- adi,ad7689
24+
- adi,ad7949
25+
26+
reg:
27+
maxItems: 1
28+
29+
vref-supply:
30+
description:
31+
ADC reference voltage supply
32+
33+
spi-max-frequency: true
34+
35+
"#io-channel-cells":
36+
const: 1
37+
38+
required:
39+
- compatible
40+
- reg
41+
- vref-supply
42+
43+
additionalProperties: false
44+
45+
examples:
46+
- |
47+
spi {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
adc@0 {
52+
compatible = "adi,ad7949";
53+
reg = <0>;
54+
vref-supply = <&vdd_supply>;
55+
};
56+
};
57+
...

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

Lines changed: 0 additions & 73 deletions
This file was deleted.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/adc/aspeed,ast2400-adc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: ADC that forms part of an ASPEED server management processor.
8+
9+
maintainers:
10+
- Joel Stanley <joel@jms.id.au>
11+
12+
description:
13+
This device is a 10-bit converter for 16 voltage channels. All inputs are
14+
single ended.
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- aspeed,ast2400-adc
20+
- aspeed,ast2500-adc
21+
22+
reg:
23+
maxItems: 1
24+
25+
clocks:
26+
description:
27+
Input clock used to derive the sample clock. Expected to be the
28+
SoC's APB clock.
29+
30+
resets:
31+
maxItems: 1
32+
33+
"#io-channel-cells":
34+
const: 1
35+
36+
required:
37+
- compatible
38+
- reg
39+
- clocks
40+
- resets
41+
- "#io-channel-cells"
42+
43+
additionalProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/clock/aspeed-clock.h>
48+
adc@1e6e9000 {
49+
compatible = "aspeed,ast2400-adc";
50+
reg = <0x1e6e9000 0xb0>;
51+
clocks = <&syscon ASPEED_CLK_APB>;
52+
resets = <&syscon ASPEED_RESET_ADC>;
53+
#io-channel-cells = <1>;
54+
};
55+
...

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

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)