linux/drivers/iio
LI Qingwu 67ac266db8 iio: accel: bmi088: modified the device name
iio: accel: bmi088: modified the device name

It is possible to have multiple sensors connected on the same platform.
For support of different sensors, making it possible to obtain the
device name by reading the chip id. If the device was found in the
table but the device tree binding is different, the driver will carry
on with a warning. If no matching device was found, the driver load
the binding chip info.

Tested case, test with bmi085 and bmi090 patches applied:
connect 3 bmi090l to the system, and set device tree compatible:
spi2.0: compatible = "bosch,bmi090l-accel";
spi2.2: compatible = "bosch,bmi088-accel";
spi2.4: compatible = "bosch,bmi085-accel";

Get a warning for the mismatched devices:
bmi088_accel_spi spi2.2: unexpected chip id 0x1A
bmi088_accel_spi spi2.4: unexpected chip id 0x1A

Get the real present device name:
/sys/bus/iio/devices/iio:device1/name:bmi090l-accel
/sys/bus/iio/devices/iio:device3/name:bmi090l-accel
/sys/bus/iio/devices/iio:device5/name:bmi090l-accel

Signed-off-by: LI Qingwu <Qing-wu.Li@leica-geosystems.com.cn>
Link: https://lore.kernel.org/r/20220526133359.2261928-4-Qing-wu.Li@leica-geosystems.com.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-06-11 14:35:28 +01:00
..
accel iio: accel: bmi088: modified the device name 2022-06-11 14:35:28 +01:00
adc iio:adc:ti-ads1015: Improve error reporting for problems during .remove() 2022-06-11 14:35:27 +01:00
addac iio: addac: ad74413r: correct comparator gpio getters mask usage 2022-01-30 14:23:33 +00:00
afe iio: afe: rescale: Make use of device properties 2022-04-28 19:22:54 +01:00
amplifiers Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
buffer iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
cdc iio:cdc:ad7150: Fix use of uninitialized ret 2021-04-07 08:36:39 +01:00
chemical iio: chemical: bme680: fix typo in comment 2022-06-11 14:35:27 +01:00
common iio: common: cros_ec_sensors: Add label attribute 2022-06-11 14:35:26 +01:00
dac iio: dac: ti-dac5571: add support for ti,dac121c081 2022-06-11 14:35:27 +01:00
dummy Bitmap patches for 5.19-rc1 2022-06-04 14:04:27 -07:00
filter iio:filter:admv8818: select REGMAP_SPI for ADMV8818 2022-04-04 09:19:01 +01:00
frequency iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
gyro iio: gyro: mpu3050: Make mpu3050_common_remove() return void 2022-05-01 19:01:13 +01:00
health iio: health: afe4404: Remove duplicated error reporting in .remove() 2022-06-11 14:35:26 +01:00
humidity iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
imu iio: imu: st_lsm6dsx: Switch from of headers to mod_devicetable.h 2022-06-11 14:35:26 +01:00
light iio:light:vcnl4035: Improve error reporting for problems during .remove() 2022-06-11 14:35:27 +01:00
magnetometer iio:magnetometer:mbc150: Make bmc150_magn_remove() return void 2022-06-11 14:35:27 +01:00
multiplexer iio: multiplexer: Make use of device properties 2022-04-04 09:11:24 +01:00
orientation iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
position iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
potentiometer Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
potentiostat iio: lmp91000: Remove no-op trigger ops 2021-11-17 17:51:38 +00:00
pressure iio: common: cros_ec_sensors: Add label attribute 2022-06-11 14:35:26 +01:00
proximity proximity: vl53l0x: Handle the reset GPIO 2022-06-11 14:35:28 +01:00
resolver iio:resolver:ad2s1200: Drop of_match_ptr protection 2020-09-21 18:41:31 +01:00
temperature iio: temperature: max31865: Make use of device properties 2022-04-28 19:30:19 +01:00
test iio: test: add basic tests for the iio-rescale driver 2022-02-28 10:22:24 +00:00
trigger iio: trigger: stm32-lptimer-trigger: Make use of device properties 2022-06-11 14:35:25 +01:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
iio_core.h iio: Mark iio_device_type as const 2021-11-17 17:51:35 +00:00
industrialio-buffer.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: Convert to use firmware node handle instead of OF node 2022-04-28 19:22:55 +01:00
industrialio-event.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: core: Move the currentmode entry to the opaque structure 2022-04-10 16:23:01 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c iio: inkern: make a best effort on offset calculation 2022-01-30 14:38:03 +00:00
Kconfig iio: add filter subfolder 2021-12-16 17:29:46 +00:00
Makefile iio: add filter subfolder 2021-12-16 17:29:46 +00:00
TODO