Skip to content

iio: updates

Steve Best requested to merge sfbest/centos-stream-9:2071780 into main

Description: Updates for iio. We'll turn the iio on as we need them for RHEL for Edge ARM. This just basically brings iio up to 5.17 level.

Bugzilla: http://bugzilla.redhat.com/2071780

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=45797510

Changes which happen to touch the drivers but are tree-wide are selectively
pulled in, where relevant. The following commits have been ommitted.

Omitted-fix: b7cb7bf11817 mfd: ti_am335x_tscadc: Use BIT(), GENMASK() and FIELD_PREP() when relevant this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: e967b60eb511 mfd: ti_am335x_tscadc: Clarify the maximum values for DT entries this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: c3e36b5d0692 mfd: ti_am335x_tscadc: Rename the subsystem enable macro this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: 8bed0166c65b iio: adc: ti_am335x_adc: Wait the idle state to avoid stalls this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: aaf7120003f3 iio: adc: ti_am335x_adc: Replace license text with SPDX tag this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: 9cac0a02266a iio: adc: ti_am335x_adc: Fix style this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: 16e8f8fed48e iio: adc: ti_am335x_adc: Get rid of useless gotos this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: b61a9d32d2d7 iio: adc: ti_am335x_adc: Gather the checks on the delays this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: 789e5ebcc61b iio: adc: ti_am335x_adc: Add a unit to the timeout delay this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: 3af993549905 iio: adc: ti_am335x_adc: Add the scale information this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: e7c8a5fe82ff iio: adc: ti_am335x_adc: Add the am437x compatible this driver has both iio and mfd, currently neither is built for RHEL, out of scope for this update Omitted-fix: c3154def82fc iio: core: Use sysfs_emit() out of scope for this update Omitted-fix: a0386bba7093 spi: make remove callback a void function out of scope for this update

The following 12 fixes from 5.18 are included

6270bf1f0197 iio: imu: st_lsm6dsx: use dev_to_iio_dev() to get iio_dev struct c87b7b12f48d iio: accel: mma8452: use the correct logic to get mma8452_data 1f21a4157806 iio: adc: xilinx-ams: Fixed missing PS channels d5d786fb5316 iio: adc: xilinx-ams: Fixed wrong sequencer register settings 0bf126163c3e iio: adc: xilinx-ams: Fix single channel switching sequence 460bfa65b0de iio: dac: ad3552r: fix signedness bug in ad3552r_reset() f50232193e61 iio: scd4x: check return of scd4x_write_and_fetch d85cce86a867 iio:filter:admv8818: select REGMAP_SPI for ADMV8818 74a53a959028 iio:proximity:sx_common: Fix device property parsing on DT systems 108e4d4de2b5 iio:proximity:sx9324: Fix hardware gain read/write d79478a79cfa iio: sx9324: Fix default precharge internal resistance register de3b9fe9609a iio:dac:ad3552r: Fix an IS_ERR() vs NULL check

Tested: I did sanity iio testing using (intel-alderlake-01) system. we only configure iio on x86-64 currently and the modules that we build on x86_64 are as follows: [root@intel-alderlake-01 iio]# pwd /usr/lib/modules/5.14.0-105.bz2071780.el9.x86_64/kernel/drivers/iio [root@intel-alderlake-01 iio]# ls -R .: accel common humidity light orientation temperature buffer gyro industrialio.ko.xz magnetometer pressure

./accel: hid-sensor-accel-3d.ko.xz

./buffer: industrialio-triggered-buffer.ko.xz kfifo_buf.ko.xz

./common/hid-sensors: hid-sensor-iio-common.ko.xz hid-sensor-trigger.ko.xz

./gyro: hid-sensor-gyro-3d.ko.xz

./humidity: hid-sensor-humidity.ko.xz

./light: hid-sensor-als.ko.xz hid-sensor-prox.ko.xz

./magnetometer: hid-sensor-magn-3d.ko.xz

./orientation: hid-sensor-incl-3d.ko.xz hid-sensor-rotation.ko.xz

./pressure: hid-sensor-press.ko.xz

./temperature: hid-sensor-temperature.ko.xz

Signed-off-by: Steve Best sbest@redhat.com

Edited by Steve Best

Merge request reports