Uwe Kleine-König
d59ecbc48a
iio: adc: max9611: Convert to i2c's .probe_new()
...
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Acked-by: Jacopo Mondi <jacopo@jmondi.org >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-68-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
a69e45a411
iio: adc: max1363: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-67-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
3a79844428
iio: adc: ltc2497: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-66-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
11e67cc967
iio: adc: ltc2485: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-65-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
7b8c4fa435
iio: adc: ltc2471: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-64-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
203a5e83dd
iio: adc: ina2xx-adc: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-63-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
28ae41885a
iio: adc: ad799x: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-62-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
3ff5dd78f6
iio: adc: ad7291: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-61-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
fe44f0738d
iio: adc: ad7091r5: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-60-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
50434e4605
iio: accel: mma9553: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-59-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
6dae5d11e2
iio: accel: mma9551: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-58-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
226d6dbac8
iio: accel: mma8452: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Hans de Goede <hdegoede@redhat.com >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-57-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:39 +00:00
Uwe Kleine-König
17b9a72f4a
iio: accel: mma7455_i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-56-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Uwe Kleine-König
09cec08352
iio: accel: kxcjk-1013: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-55-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Uwe Kleine-König
a8fab44897
iio: accel: da280: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-54-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Uwe Kleine-König
a141d225f6
iio: accel: bmc150: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-53-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Uwe Kleine-König
e599500f96
iio: accel: bma400: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-52-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Uwe Kleine-König
c476246bd5
iio: accel: bma180: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-51-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Uwe Kleine-König
2c5c45e236
iio: accel: adxl372_i2c: Convert to i2c's .probe_new()
...
.probe_new() doesn't get the i2c_device_id * parameter, so determine
that explicitly in the probe function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/20221118224540.619276-50-uwe@kleine-koenig.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Angel Iglesias
12491d3555
iio: pressure: bmp280: convert to i2c's .probe_new()
...
Use i2c_client_get_device_id() to get the i2c_device_id* parameter in the
.new_probe() callback.
Signed-off-by: Angel Iglesias <ang.iglesiasg@gmail.com >
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Link: https://lore.kernel.org/r/5dcaa389ea2ffe7050091b07a3bc4b0c1c9d586b.1668361368.git.ang.iglesiasg@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:01:38 +00:00
Jonathan Cameron
b15654dd11
Merge remote-tracking branch 'i2c/i2c/client_device_id_helper-immutable' into togreg
2022-11-23 20:01:38 +00:00
Lorenzo Bianconi
d94fbd9231
iio: imu: st_lsm6dsx: fix LSM6DSV sensor description
...
Fix sensor ODR description for LSM6DSV/LSM6DSVX
Fixes: a1c6d631ff ("iio: imu: st_lsm6dsx: add support to LSM6DSV")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org >
Link: https://lore.kernel.org/r/653e14bf79bb88d8581d2bc42da2f784caaf3776.1668417770.git.lorenzo@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 20:00:46 +00:00
Cosmin Tanislav
10c4539d1d
iio: adc: ad4130: depend on GPIOLIB
...
Fixes undefined references to 'gpiochip_get_data' and
'devm_gpiochip_add_data_with_key'.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reported-by: kernel test robot <lkp@intel.com >
Fixes: 62094060cf ("iio: adc: ad4130: add AD4130 driver")
Link: https://lore.kernel.org/r/20221114133649.1737027-1-cosmin.tanislav@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:59:16 +00:00
Deepak R Varma
572cc583c9
staging: iio: meter: replace ternary operator by if condition
...
Replace ternary operator by simple if based evaluation of the return
value. Issue identified using coccicheck.
Signed-off-by: Deepak R Varma <drv@mailo.com >
Link: https://lore.kernel.org/r/Y3CAdCa17WdWDYUa@qemulion
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Subhajit Ghosh
5ae34494cf
iio: light: apds9960: Fix iio_event_spec structures
...
There is only one interrupt enable option for both ALS low and high
thresholds, and one for both Proximity low and high thresholds.
Signed-off-by: Subhajit Ghosh <subhajit.ghosh@vixtechnology.com >
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com >
Link: https://lore.kernel.org/r/20221110101241.10576-1-subhajit.ghosh@vixtechnology.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Jay Greco
7b4452381a
dt-bindings: iio: imu: Add inv_icm42600 documentation
...
Update the required documentation for the icm42631.
Signed-off-by: Jay Greco <grecojay@amazon.com >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com >
Link: https://lore.kernel.org/r/20221110192933.13616-3-grecojay@amazon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Jay Greco
c896b9f092
iio: imu: inv_icm42600: Add support for icm42631
...
Add the required WHOAMI and device_id definitions to support the
icm42631.
Signed-off-by: Jay Greco <grecojay@amazon.com >
Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com >
Link: https://lore.kernel.org/r/20221110192933.13616-2-grecojay@amazon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Jagan Teki
6809ec9768
dt-bindings: iio: adc: rockchip-saradc: Add saradc for rv1126
...
Add saradc compatible string for rockchip rv1126.
Cc: linux-iio@vger.kernel.org
Cc: Jonathan Cameron <jic23@kernel.org >
Signed-off-by: Jagan Teki <jagan@edgeble.ai >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/20221108041400.157052-4-jagan@edgeble.ai
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Rob Herring
84aea36299
dt-bindings: iio: dac: adi,ad5758: Drop 'contains' from 'adi,dc-dc-mode'
...
'contains' applies to arrays, but 'adi,dc-dc-mode' is a scalar. So drop
'contains' from the 'if' schema.
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221111212846.4104059-1-robh@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Lorenzo Bianconi
03e8373c07
dt-bindings: iio: imu: st_lsm6dsx: add lsm6dsv16x
...
Add device bindings for lsm6dsv16x IMU sensor.
Use lsm6dsv as fallback device for lsm6dsv16x since it implements all the
features currently supported by lsm6dsv16x.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://lore.kernel.org/r/8d10a63ec6abd22863ab25addd8c2f578dbc9cd9.1667745215.git.lorenzo@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:45 +00:00
Lorenzo Bianconi
46975081f7
iio: imu: st_lsm6dsx: add support to LSM6DSV16X
...
Add support to STM LSM6DSV16X (accelerometer and gyroscope) Mems sensor.
The LSM6DSV16X sensor can use LSM6DSV as fallback device since it
implements all the LSM6DSV16X features currently implemented in
st_lsm6dsx.
Datasheet: https://www.st.com/resource/en/datasheet/lsm6dsv16x.pdf
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org >
Link: https://lore.kernel.org/r/284b251f861dff30c399e5736a843c8e3a497249.1667745215.git.lorenzo@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:44 +00:00
Gwendal Grignou
c486b70193
iio: proximity: sx9360: Add a new ACPI hardware ID
...
From
https://treexy.com/products/driver-fusion/database/sensors/semtech/sx9360-proximity/
sx9360 SAR sensor can be presented with ACPI ID SAMM0208.
Whilst this does not appear to be an official ACPI ID, it is in the wild
(perhaps due to a typo on the SAM PnP ID).
Reported-by: Jordi Torres <majosamaso@gmail.com >
Signed-off-by: Gwendal Grignou <gwendal@chromium.org >
Link: https://lore.kernel.org/r/20221105225157.10081-1-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:58:44 +00:00
Jonathan Cameron
99043ba702
iio: temperature: mlx90632: Add missing static marking on devm_pm_ops
...
Only used within this file, so should be marked static.
Fixes: 2aebc223fc ("iio: temperature: mlx90632 Add runtime powermanagement modes")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Acked-off-by: Crt Mori <cmo@melexis.com >
Link: https://lore.kernel.org/r/20221105125108.383193-3-jic23@kernel.org
2022-11-23 19:58:18 +00:00
Jonathan Cameron
bcf22afd2c
iio: temperature: mlx90632: Add error handling for devm_pm_runtime_enable()
...
This call can fail so handling is necessary even if it is very unlikely.
Reported-by: coverity-bot <keescook+coverity-bot@chromium.org >
Addresses-Coverity-ID: 1527134 ("Error handling issues")
Fixes: 2aebc223fc ("iio: temperature: mlx90632 Add runtime powermanagement modes")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Acked-off-by: Crt Mori <cmo@melexis.com >
Link: https://lore.kernel.org/r/20221105125108.383193-2-jic23@kernel.org
2022-11-23 19:57:12 +00:00
Cosmin Tanislav
6f7cadcf66
iio: temperature: ltc2983: support more parts
...
Add support for the following parts:
* LTC2984
* LTC2986
* LTM2985
The LTC2984 is a variant of the LTC2983 with EEPROM.
The LTC2986 is a variant of the LTC2983 with only 10 channels,
EEPROM and support for active analog temperature sensors.
The LTM2985 is software-compatible with the LTC2986.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Link: https://lore.kernel.org/r/20221103130041.2153295-14-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
d240526950
dt-bindings: iio: temperature: ltc2983: support more parts
...
Add support for the following parts:
* LTC2984
* LTC2986
* LTM2985
The LTC2984 is a variant of the LTC2983 with EEPROM.
The LTC2986 is a variant of the LTC2983 with only 10 channels,
EEPROM and support for active analog temperature sensors.
The LTM2985 is software-compatible with the LTC2986.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-13-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
cf738c544d
dt-bindings: iio: temperature: ltc2983: use generic node name in example
...
Examples should use the generic IIO node name of temperature-sensor.
Fix it.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Link: https://lore.kernel.org/r/20221103130041.2153295-12-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
93144097f5
dt-bindings: iio: temperature: ltc2983: describe broken mux delay property
...
The 'adi,mux-delay-config-us' property is broken. It was supposed to
be in us, but the value is actually written directly to the register.
Describe the fact that it is broken and how it actually works.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-11-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
95027f5b39
dt-bindings: iio: temperature: ltc2983: refine descriptions
...
Some descriptions are too verbose, while others are too succint.
Rewrite them all.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-10-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
ee7e336c48
dt-bindings: iio: temperature: ltc2983: change default excitation for custom thermistors
...
Excitation cannot be set to auto-range when using a custom thermistor
or Steinhart sensor type. Default it to 1000nA to match the driver
and remove the auto-range value from the enum.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-9-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
b3805fc3dc
dt-bindings: iio: temperature: ltc2983: require 4 wire rtd for current rotate
...
The driver will error out when current rotation is enabled but the RTD
is not 4-wire. Require it in the binding too.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-8-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
a2ebc8d281
dt-bindings: iio: temperature: ltc2983: require custom sensor tables
...
The driver will error out when a custom sensor type is used but a
custom sensor table is not provided. Require it in the binding too.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-7-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
6cf75e90c5
dt-bindings: iio: temperature: ltc2983: describe matrix items
...
Give a little bit of information on what each item in the matrix is
supposed to be.
Also, some matrices put the 'minItems' and 'maxItems' keywords in the
wrong level. They should be on the same level as the 'items' keyword.
Fix it.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-6-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
828a6c2252
dt-bindings: iio: temperature: ltc2983: remove qutations from phandle ref
...
Not needed, so why have them?
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-5-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
d449fb5146
dt-bindings: iio: temperature: ltc2983: use hex for sensor address
...
Addresses should be in hex, fix it.
Although the driver initially specified 1-20, it can be made free-range
since the address is supposed to match reg, onto which we can impose
restrictions based on the compatible property value.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-4-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:54:00 +00:00
Cosmin Tanislav
4ecee36077
dt-bindings: iio: temperature: ltc2983: add default values
...
Binding properties should have default values to let the reader
know if they should change it. Add them based on driver logic.
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221103130041.2153295-3-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:53:59 +00:00
Cosmin Tanislav
5e01762139
iio: temperature: ltc2983: make bulk write buffer DMA-safe
...
regmap_bulk_write() does not guarantee implicit DMA-safety,
even though the current implementation duplicates the given
buffer. Do not rely on it.
Fixes: f110f3188e ("iio: temperature: Add support for LTC2983")
Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com >
Link: https://lore.kernel.org/r/20221103130041.2153295-2-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:53:59 +00:00
Bagas Sanjaya
ed81d3de8e
Documentation: ad4130: format list of in_voltage-voltage_filter_mode_available modes
...
Sphinx reports two warnings on sysfs documentation for AD4130 driver:
Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130:2: WARNING: Unexpected indentation.
Documentation/ABI/testing/sysfs-bus-iio-adc-ad4130:2: WARNING: Block quote ends without a blank line; unexpected unindent.
These are due to misformatting of sinc* modes list. Format it with bullet
list. Since each entry spans multiple lines, separate each with a blank
line.
Fixes: 62094060cf ("iio: adc: ad4130: add AD4130 driver")
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com >
Link: https://lore.kernel.org/r/20221106140233.74112-1-bagasdotme@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:52:55 +00:00
Ramona Bolboaca
d3532d6975
drivers: iio: accel: Add support for ADXL359 device
...
Add support for ADXL359 device in already existing ADXL355 driver.
Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/adxl359.pdf
Signed-off-by: Ramona Bolboaca <ramona.bolboaca@analog.com >
Link: https://lore.kernel.org/r/20221031105129.47740-4-ramona.bolboaca@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:44:04 +00:00
Ramona Bolboaca
b311d2e170
dt-bindings: iio: accel: Add docs for ADXL359
...
Update ADXL355 existing documentation with documentation
for ADXL359 device.
Signed-off-by: Ramona Bolboaca <ramona.bolboaca@analog.com >
Acked-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20221031105129.47740-3-ramona.bolboaca@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2022-11-23 19:44:04 +00:00