Skip to content

Commit 6d699ca

Browse files
committed
Merge tag 'iio-for-6.14a' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio into char-misc-next
Pull IIO updaate from Jonathan: IIO: 1st set of new device support, features and cleanup for 6.14 Fairly quiet cycle. Usual mix of new drivers, device support in existing drivers, features and more general rework and cleanup. There are a few late breaking or long standing but complex fixes in here as well. There is one expected merge conflict due to an upstream fix touching neighboring code in ti-ads1119. The trivial resolution is the right one with the result ending up as: struct { s16 sample; aligned_s64 timestamp; } scan; New device support ================== adi,ad4000 - Add support for many Pulsar ADC devices: AD7685, AD7686, AD7687, AD7688, AD7690, AD7691, AD7693, AD7942, AD7946, AD7980, AD7982, AD7983, AD7984, AD7988-1 and AD7988-5 ADCs. Generally similar to the AD4000 series but with lower sampling rates and no configuration registers. Includes addition of timestamp channels. adi,adis16480 - Add support for ADIS16486, ADIS16487 and ADIS16489 IMUs. Required a few tweaks to existing driver and addition of tables. kionix,kx022a - Add support for KX134ACR-LBZ accelerometer that is similar to the KX132ACR-LBZ but with a wider (+-64G) sensor range. - Add support for KX134-1211 accelerometer that is similar to the KX132-1211 but with a wider (+-16G) sensor range. nxp,fxls8962af - Add support for fxls8974cf and fxls8967af accelerometers, Both are compatible with fxls8962af but with different device IDs which are used in presence checks. renesas,rzg2l - Add support for Renesas RZ/GS3 SoC ADCs (various driver refactors precede this to allow for chip differences). rohm,bd79704 - New driver for this 6 channel DAC. st,mpu6050 - Support he IAM20380 which is effectively a cut down IAM20608 IMU with only a gyroscope (no accelerometer). st,stm-timmer-trigger - Add support for ADC trigger use case for the STM32MP25 SOC. Do not support the counter functionality in this driver as that is handled by the counter subsystem. ti,opt4060 - New driver for this RGBW color sensor. Driver drop =========== rohm,bu20008 - Drop as decision was made to not mass produce this light sensor after Matti had done all the work to get a driver upstream. Features ======== adi,ad_sigma_delta library + ad7124 - Allow for GPIO to check interrupt status, enabling this device on more platforms that don't obey prior (non general) assumptions on how the interrupt chips work. - Allow variation in reset sequence length allowing chip specific optimizations rather than always using worst case. adi,ad7124 - Add temperature channel support. adi,ad7173 - Add support calibration modes for this family of ADCs. adi,adxl345 - Binding update to allow specification of which interrupt line is connected (or none). - Support interrupts and FIFO based data capture. bosch,bme680 - Add regulators support. Note this required a new binding doc rather than use of trivial-devices - Runtime PM support. microchip,pac1921 - Add ACPI support including _DSM for shunt value and label. renesas,rzg2l - Enable runtime autosuspend. - Add suspend and resume support. tyhx,hx9023s - Add loading of a firmware file used to set defaults for some configuration registers. vishay,veml6030 - Support triggered buffers allowing efficient data capture at higher speeds. - Add regmap cache to reduce access to device. Cleanup and minor fixes ======================= cross-tree - Another batch of conversions to devm_regulator_get_enable_read_voltage() helper and related conversions to full devm that this enables. - Various patches using guard() to allow early returns and simpler code flow. - Various conversions from s64 timestamp __aligned(8) to aligned_s64 type. Includes a few cleanups where this unsigned and it should have been signed. - Fix up some missing types for drive-open-drain in dt-binding docs. core - Add missing documentation for iio_dmaengine_buffer_setup_ext() - Add check that all buffers passed to iio_read_channel_ext_info() and iio_read_channel_label() are page sized and page aligned. Done this way because the callbacks are almost always only used to fill sysfs attributes. The check covers the tiny percentage of cases where use is made of this data in a consumer driver. - Mark scan_timestamp memory of struct iio_dev private ensuring no drivers change the value which belongs to the IIO core. documentation - Various missing ABI docs added. - ABI docs made to use Y consistently as the wildcard for channel number. - Combine duplicate in_currentY_raw entries in ABI docs. iio-mux - Fix alignment of buffers passed to iio_channel_read_ext_info(). adi,ad_sigma_delta library - Respect keep_cs_asserted flag in read path. - Close a race condition around irq enabling and disabling. - Use explicit unsigned int in place of unsigned. adi,ad6695 - Move dt-binding header under adc sub-directory and fix include path in dt example. adi,ad7124 - Check number of channels in DT doesn't exceed what the driver can handle. - Check input specified in DT are possible. - Improved error reporting during probe. adi,ad7173 - Drop unused structure element. adi,ad7293 - Ensure power is turned on before resetting. adi,adxl345 - Some documentation simplification and parameter renames. - Add a function than unifies handling of power up and power down. - Add defines to have a complete set of registers defined. - Add missing \n to end of error messages. amlogic,meson_saradc - Simplify handling of the REG11 register access. awinic,aw96104 - Constify iio_info structure. bosch,bmp085 - Add to dt-binding to indicate devices support SPI. bosch,bmp280 - Use sizeof() to replace a somewhat magic 2. - Rename sleep related variables so the unit is included and use fsleep() to replace usleep_range() calls. bosch,bno055 - Constify struct bin_attribute capella,cm3232 - Reset device before checking hardware ID inline with suggested flow from datasheet. diolan,dln2 - Simplify zeroing of structure used to gather up data by just clearing the whole thing before writing rather than trying to clear out he padding after write. freescale,vf610 - Use devm_ and dev_error_probe() to simplify code and allow dropping of explicit remove() callback. invensense,timestamp library - Use a cast to remove possibility of integer overflow. kionix,kx022a - Increase reset delay a little. maxim,max1363 - Use a buffer of sufficient size in iio_priv() rather than allocating variable sized buffer at use time. microchip,mcp4725 - Replace of_property_read_bool() with of_property_present() for detecting presence of regulator which is obviously not a bool. nxp,fxls8962af - Add wakeup-source property to the dt binding to allow these sensors to wake the system up from suspend. - Enable finer grained build when not all bus types need to be supported. renesas,rzg2l - Use dev_err_probe(), improving handling of probe errors and simplifying code. - Convert to devm_ based cleanup. - Remove unnecessary runtime PM complexity as clocks are managed through PM domains. - Switch pm_ptr() removing need for __maybe_unused markings. - use read_poll_timeout() to replace open coded equivalent. samsung, ssp_sensors - Simplify code by always providing timestamp whether or not it is enabled. st,lsm6dsx - Avoid need to include linux/i3c/master by using i3cdev_to_dev() to get to the contained struct device. st,stm32-timer-trigger - Check for clk_enable() fails. vishay,veml6030 - Use new gts-helper functions and fix the _scale attribute to take into account changes in gain and integration time. Various other typo fixes in variable names + documentation and help text. A few whitespace cleanup patches. * tag 'iio-for-6.14a' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/jic23/iio: (142 commits) iio: iio-mux: kzalloc instead of devm_kzalloc to ensure page alignment iio: adc: ad7625: Add ending newlines to error messages iio: accel: adxl345: complete the list of defines iio: accel: adxl345: add FIFO with watermark events iio: accel: adxl345: initialize FIFO delay value for SPI iio: accel: adxl345: introduce interrupt handling iio: light: veml3235: fix scale to conform to ABI iio: gts-helper: add helpers to ease searches of gain_sel and new_gain iio: light: veml3235: extend regmap to add cache iio: light: veml3235: fix code style dt-bindings: iio: accel: adxl345: add interrupt-names dt-bindings: iio: accel: adxl345: make interrupts not a required property dt-bindings: iio: imu: bmi323: add boolean type for drive-open-drain dt-bindings: iio: imu: bmi270: add boolean type for drive-open-drain dt-bindings: iio: imu: bmi160: add boolean type for drive-open-drain iio: adc: meson: simplify MESON_SAR_ADC_REG11 register access iio: adc: meson: use tabs instead of spaces for some REG11 bit fields iio: adc: meson: fix voltage reference selection field name typo iio: adc: rockchip: correct alignment of timestamp iio: imu: inv_icm42600: switch timestamp type from int64_t __aligned(8) to aligned_s64 ...
2 parents b8ae08d + 577a66e commit 6d699ca

File tree

167 files changed

+4813
-3176
lines changed

Some content is hidden

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

167 files changed

+4813
-3176
lines changed

Documentation/ABI/testing/sysfs-bus-iio

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,6 @@ Description:
168168
is required is a consistent labeling. Units after application
169169
of scale and offset are millivolts.
170170

171-
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_raw
172-
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_supply_raw
173-
KernelVersion: 3.17
174-
175-
Description:
176-
Raw (unscaled no bias removal etc.) current measurement from
177-
channel Y. In special cases where the channel does not
178-
correspond to externally available input one of the named
179-
versions may be used. The number must always be specified and
180-
unique to allow association with event codes. Units after
181-
application of scale and offset are milliamps.
182-
183171
What: /sys/bus/iio/devices/iio:deviceX/in_powerY_raw
184172
KernelVersion: 4.5
185173
@@ -227,7 +215,7 @@ Description:
227215
same scaling as _raw.
228216

229217
What: /sys/bus/iio/devices/iio:deviceX/in_temp_raw
230-
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_raw
218+
What: /sys/bus/iio/devices/iio:deviceX/in_tempY_raw
231219
What: /sys/bus/iio/devices/iio:deviceX/in_temp_x_raw
232220
What: /sys/bus/iio/devices/iio:deviceX/in_temp_y_raw
233221
What: /sys/bus/iio/devices/iio:deviceX/in_temp_ambient_raw
@@ -416,11 +404,11 @@ Contact: [email protected]
416404
Description:
417405
Scaled humidity measurement in milli percent.
418406

419-
What: /sys/bus/iio/devices/iio:deviceX/in_X_mean_raw
407+
What: /sys/bus/iio/devices/iio:deviceX/in_Y_mean_raw
420408
KernelVersion: 3.5
421409
422410
Description:
423-
Averaged raw measurement from channel X. The number of values
411+
Averaged raw measurement from channel Y. The number of values
424412
used for averaging is device specific. The converting rules for
425413
normal raw values also applies to the averaged raw values.
426414

@@ -448,7 +436,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_humidityrelative_offset
448436
What: /sys/bus/iio/devices/iio:deviceX/in_magn_offset
449437
What: /sys/bus/iio/devices/iio:deviceX/in_rot_offset
450438
What: /sys/bus/iio/devices/iio:deviceX/in_angl_offset
451-
What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceX_offset
439+
What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_offset
452440
KernelVersion: 2.6.35
453441
454442
Description:
@@ -508,6 +496,9 @@ What: /sys/bus/iio/devices/iio:deviceX/in_angl_scale
508496
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_x_scale
509497
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_y_scale
510498
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_z_scale
499+
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_red_scale
500+
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_green_scale
501+
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_blue_scale
511502
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_scale
512503
KernelVersion: 2.6.35
513504
@@ -660,10 +651,10 @@ What: /sys/.../iio:deviceX/in_magn_scale_available
660651
What: /sys/.../iio:deviceX/in_illuminance_scale_available
661652
What: /sys/.../iio:deviceX/in_intensity_scale_available
662653
What: /sys/.../iio:deviceX/in_proximity_scale_available
663-
What: /sys/.../iio:deviceX/in_voltageX_scale_available
654+
What: /sys/.../iio:deviceX/in_voltageY_scale_available
664655
What: /sys/.../iio:deviceX/in_voltage-voltage_scale_available
665-
What: /sys/.../iio:deviceX/out_voltageX_scale_available
666-
What: /sys/.../iio:deviceX/out_altvoltageX_scale_available
656+
What: /sys/.../iio:deviceX/out_voltageY_scale_available
657+
What: /sys/.../iio:deviceX/out_altvoltageY_scale_available
667658
What: /sys/.../iio:deviceX/in_capacitance_scale_available
668659
What: /sys/.../iio:deviceX/in_pressure_scale_available
669660
What: /sys/.../iio:deviceX/in_pressureY_scale_available
@@ -681,6 +672,7 @@ What: /sys/bus/iio/devices/iio:deviceX/in_intensity_red_hardwaregain
681672
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_green_hardwaregain
682673
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_blue_hardwaregain
683674
What: /sys/bus/iio/devices/iio:deviceX/in_intensity_clear_hardwaregain
675+
What: /sys/bus/iio/devices/iio:deviceX/in_illuminance_hardwaregain
684676
KernelVersion: 2.6.35
685677
686678
Description:
@@ -1562,7 +1554,7 @@ Description:
15621554
This attribute is used to read the amount of quadrature error
15631555
present in the device at a given time.
15641556

1565-
What: /sys/.../iio:deviceX/in_accelX_power_mode
1557+
What: /sys/.../iio:deviceX/in_accelY_power_mode
15661558
KernelVersion: 3.11
15671559
15681560
Description:
@@ -1633,6 +1625,10 @@ What: /sys/.../iio:deviceX/in_intensityY_uv_raw
16331625
What: /sys/.../iio:deviceX/in_intensityY_uva_raw
16341626
What: /sys/.../iio:deviceX/in_intensityY_uvb_raw
16351627
What: /sys/.../iio:deviceX/in_intensityY_duv_raw
1628+
What: /sys/.../iio:deviceX/in_intensity_red_raw
1629+
What: /sys/.../iio:deviceX/in_intensity_green_raw
1630+
What: /sys/.../iio:deviceX/in_intensity_blue_raw
1631+
What: /sys/.../iio:deviceX/in_intensity_clear_raw
16361632
KernelVersion: 3.4
16371633
16381634
Description:
@@ -1691,16 +1687,19 @@ Description:
16911687
Raw value of rotation from true/magnetic north measured with
16921688
or without compensation from tilt sensors.
16931689

1694-
What: /sys/bus/iio/devices/iio:deviceX/in_currentX_raw
1695-
What: /sys/bus/iio/devices/iio:deviceX/in_currentX_i_raw
1696-
What: /sys/bus/iio/devices/iio:deviceX/in_currentX_q_raw
1697-
KernelVersion: 3.18
1690+
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_raw
1691+
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_supply_raw
1692+
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_i_raw
1693+
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_q_raw
1694+
KernelVersion: 3.17
16981695
16991696
Description:
1700-
Raw current measurement from channel X. Units are in milliamps
1697+
Raw current measurement from channel Y. Units are in milliamps
17011698
after application of scale and offset. If no offset or scale is
17021699
present, output should be considered as processed with the
1703-
unit in milliamps.
1700+
unit in milliamps. In special cases where the channel does not
1701+
correspond to externally available input one of the named
1702+
versions may be used.
17041703

17051704
Channels with 'i' and 'q' modifiers always exist in pairs and both
17061705
channels refer to the same signal. The 'i' channel contains the in-phase
@@ -1864,9 +1863,9 @@ Description:
18641863
hardware fifo watermark level.
18651864

18661865
What: /sys/bus/iio/devices/iio:deviceX/in_temp_calibemissivity
1867-
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_calibemissivity
1866+
What: /sys/bus/iio/devices/iio:deviceX/in_tempY_calibemissivity
18681867
What: /sys/bus/iio/devices/iio:deviceX/in_temp_object_calibemissivity
1869-
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_object_calibemissivity
1868+
What: /sys/bus/iio/devices/iio:deviceX/in_tempY_object_calibemissivity
18701869
KernelVersion: 4.1
18711870
18721871
Description:
@@ -1887,27 +1886,27 @@ Description:
18871886
is considered as one sample for <type>[_name]_sampling_frequency.
18881887

18891888
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_raw
1890-
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_raw
1889+
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationY_raw
18911890
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_co2_raw
1892-
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_co2_raw
1891+
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationY_co2_raw
18931892
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_ethanol_raw
1894-
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_ethanol_raw
1893+
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationY_ethanol_raw
18951894
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_h2_raw
1896-
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_h2_raw
1895+
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationY_h2_raw
18971896
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_o2_raw
1898-
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_o2_raw
1897+
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationY_o2_raw
18991898
What: /sys/bus/iio/devices/iio:deviceX/in_concentration_voc_raw
1900-
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationX_voc_raw
1899+
What: /sys/bus/iio/devices/iio:deviceX/in_concentrationY_voc_raw
19011900
KernelVersion: 4.3
19021901
19031902
Description:
19041903
Raw (unscaled no offset etc.) reading of a substance. Units
19051904
after application of scale and offset are percents.
19061905

19071906
What: /sys/bus/iio/devices/iio:deviceX/in_resistance_raw
1908-
What: /sys/bus/iio/devices/iio:deviceX/in_resistanceX_raw
1907+
What: /sys/bus/iio/devices/iio:deviceX/in_resistanceY_raw
19091908
What: /sys/bus/iio/devices/iio:deviceX/out_resistance_raw
1910-
What: /sys/bus/iio/devices/iio:deviceX/out_resistanceX_raw
1909+
What: /sys/bus/iio/devices/iio:deviceX/out_resistanceY_raw
19111910
KernelVersion: 4.3
19121911
19131912
Description:
@@ -2096,7 +2095,7 @@ Description:
20962095
One of the following thermocouple types: B, E, J, K, N, R, S, T.
20972096

20982097
What: /sys/bus/iio/devices/iio:deviceX/in_temp_object_calibambient
2099-
What: /sys/bus/iio/devices/iio:deviceX/in_tempX_object_calibambient
2098+
What: /sys/bus/iio/devices/iio:deviceX/in_tempY_object_calibambient
21002099
KernelVersion: 5.10
21012100
21022101
Description:
@@ -2172,9 +2171,9 @@ Description:
21722171

21732172
- a range specified as "[min step max]"
21742173

2175-
What: /sys/bus/iio/devices/iio:deviceX/in_voltageX_sampling_frequency
2174+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_sampling_frequency
21762175
What: /sys/bus/iio/devices/iio:deviceX/in_powerY_sampling_frequency
2177-
What: /sys/bus/iio/devices/iio:deviceX/in_currentZ_sampling_frequency
2176+
What: /sys/bus/iio/devices/iio:deviceX/in_currentY_sampling_frequency
21782177
KernelVersion: 5.20
21792178
21802179
Description:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_sys_calibration
2+
KernelVersion: 5.5
3+
4+
Description:
5+
This attribute, if available, initiates the system calibration procedure. This is done on a
6+
single channel at a time. Write '1' to start the calibration.
7+
8+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_sys_calibration_mode_available
9+
KernelVersion: 5.5
10+
11+
Description:
12+
This attribute, if available, returns a list with the possible calibration modes.
13+
There are two available options:
14+
"zero_scale" - calibrate to zero scale
15+
"full_scale" - calibrate to full scale
16+
17+
What: /sys/bus/iio/devices/iio:deviceX/in_voltageY_sys_calibration_mode
18+
KernelVersion: 5.5
19+
20+
Description:
21+
This attribute, if available, sets up the calibration mode used in the system calibration
22+
procedure. Reading returns the current calibration mode.
23+
Writing sets the system calibration mode.

Documentation/ABI/testing/sysfs-bus-iio-adc-ad7192

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,9 @@ Description:
1919
the bridge can be disconnected (when it is not being used
2020
using the bridge_switch_en attribute.
2121

22-
What: /sys/bus/iio/devices/iio:deviceX/in_voltagex_sys_calibration
23-
KernelVersion:
24-
25-
Description:
26-
Initiates the system calibration procedure. This is done on a
27-
single channel at a time. Write '1' to start the calibration.
28-
2922
What: /sys/bus/iio/devices/iio:deviceX/in_voltage2-voltage2_shorted_raw
3023
KernelVersion:
3124
3225
Description:
3326
Measure voltage from AIN2 pin connected to AIN(+)
3427
and AIN(-) shorted.
35-
36-
What: /sys/bus/iio/devices/iio:deviceX/in_voltagex_sys_calibration_mode_available
37-
KernelVersion:
38-
39-
Description:
40-
Reading returns a list with the possible calibration modes.
41-
There are two available options:
42-
"zero_scale" - calibrate to zero scale
43-
"full_scale" - calibrate to full scale
44-
45-
What: /sys/bus/iio/devices/iio:deviceX/in_voltagex_sys_calibration_mode
46-
KernelVersion:
47-
48-
Description:
49-
Sets up the calibration mode used in the system calibration
50-
procedure. Reading returns the current calibration mode.
51-
Writing sets the system calibration mode.

Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,17 @@ properties:
3737
interrupts:
3838
maxItems: 1
3939

40+
interrupt-names:
41+
items:
42+
- enum: [INT1, INT2]
43+
44+
dependencies:
45+
interrupts: [ interrupt-names ]
46+
interrupt-names: [ interrupts ]
47+
4048
required:
4149
- compatible
4250
- reg
43-
- interrupts
4451

4552
allOf:
4653
- $ref: /schemas/spi/spi-peripheral-props.yaml#
@@ -61,6 +68,7 @@ examples:
6168
reg = <0x2a>;
6269
interrupt-parent = <&gpio0>;
6370
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
71+
interrupt-names = "INT1";
6472
};
6573
};
6674
- |
@@ -79,5 +87,6 @@ examples:
7987
spi-cpha;
8088
interrupt-parent = <&gpio0>;
8189
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
90+
interrupt-names = "INT2";
8291
};
8392
};

Documentation/devicetree/bindings/iio/accel/kionix,kx022a.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,26 @@
44
$id: http://devicetree.org/schemas/iio/accel/kionix,kx022a.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: ROHM/Kionix KX022A, KX132-1211 and KX132ACR-LBZ Accelerometers
7+
title: ROHM/Kionix KX022A, KX132/134-1211 and KX132/134ACR-LBZ Accelerometers
88

99
maintainers:
1010
- Matti Vaittinen <[email protected]>
1111

1212
description: |
1313
KX022A, KX132ACR-LBZ and KX132-1211 are 3-axis accelerometers supporting
14-
+/- 2G, 4G, 8G and 16G ranges, variable output data-rates and a
15-
hardware-fifo buffering. These accelerometers can be accessed either
16-
via I2C or SPI.
14+
+/- 2G, 4G, 8G and 16G ranges. The KX134ACR-LBZ and KX134-1211 support
15+
+/- 8G, 16G, 32G and 64G. All the sensors also have variable output
16+
data-rates and a hardware-fifo buffering. These accelerometers can be
17+
accessed either via I2C or SPI.
1718
1819
properties:
1920
compatible:
2021
enum:
2122
- kionix,kx022a
2223
- kionix,kx132-1211
24+
- kionix,kx134-1211
2325
- rohm,kx132acr-lbz
26+
- rohm,kx134acr-lbz
2427

2528
reg:
2629
maxItems: 1

Documentation/devicetree/bindings/iio/accel/nxp,fxls8962af.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,20 @@ description: |
1414
SPI and I2C interface.
1515
https://www.nxp.com/docs/en/data-sheet/FXLS8962AF.pdf
1616
https://www.nxp.com/docs/en/data-sheet/FXLS8964AF.pdf
17+
https://www.nxp.com/docs/en/data-sheet/FXLS8967AF.pdf
18+
https://www.nxp.com/docs/en/data-sheet/FXLS8974CF.pdf
1719
1820
properties:
1921
compatible:
20-
enum:
21-
- nxp,fxls8962af
22-
- nxp,fxls8964af
22+
oneOf:
23+
- enum:
24+
- nxp,fxls8962af
25+
- nxp,fxls8964af
26+
- items:
27+
- enum:
28+
- nxp,fxls8967af
29+
- nxp,fxls8974cf
30+
- const: nxp,fxls8962af
2331

2432
reg:
2533
maxItems: 1
@@ -38,6 +46,11 @@ properties:
3846
drive-open-drain:
3947
type: boolean
4048

49+
wakeup-source:
50+
$ref: /schemas/types.yaml#/definitions/flag
51+
description:
52+
Enable wake on accelerometer event
53+
4154
required:
4255
- compatible
4356
- reg
@@ -61,6 +74,7 @@ examples:
6174
interrupt-parent = <&gpio0>;
6275
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
6376
interrupt-names = "INT1";
77+
wakeup-source;
6478
};
6579
};
6680
- |

0 commit comments

Comments
 (0)