linux-yocto/drivers/iio
Angelo Dureghello b2d2be772d iio: dac: ad3552r-common: fix ad3541/2r ranges
[ Upstream commit 1e758b6132 ]

Fix ad3541/2r voltage ranges to be as per ad3542r datasheet,
rev. C, table 38 (page 57).

The wrong ad354xr ranges was generating erroneous Vpp output.

In more details:
- fix wrong number of ranges, they are 5 ranges, not 6,
- remove non-existent 0-3V range,
- adjust order, since ad3552r_find_range() get a wrong index,
  producing a wrong Vpp as output.

Retested all the ranges on real hardware, EVALAD3542RFMCZ:

adi,output-range-microvolt (fdt):
<(000000) (2500000)>;   ok (Rfbx1, switch 10)
<(000000) (5000000)>;   ok (Rfbx1, switch 10)
<(000000) (10000000)>;  ok (Rfbx1, switch 10)
<(-5000000) (5000000)>; ok (Rfbx2, switch +/- 5)
<(-2500000) (7500000)>; ok (Rfbx2, switch -2.5/7.5)

Fixes: 8f2b54824b ("drivers:iio:dac: Add AD3552R driver support")
Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250108-wip-bl-ad3552r-axi-v0-iio-testing-carlos-v2-1-2dac02f04638@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-06 11:01:49 +02:00
..
accel iio: accel: fxls8962af: Fix temperature calculation 2025-06-27 11:11:40 +01:00
adc iio: adc: ad_sigma_delta: Fix use of uninitialized status_pos 2025-07-06 11:01:35 +02:00
addac
afe
amplifiers
buffer
cdc
chemical iio: chemical: sps30: use aligned_s64 for timestamp 2025-05-22 14:29:37 +02:00
common
dac iio: dac: ad3552r-common: fix ad3541/2r ranges 2025-07-06 11:01:49 +02:00
dummy
filter iio: filter: admv8818: Support frequencies >= 2^32 2025-06-19 15:32:12 +02:00
frequency
gyro
health
humidity
imu iio: imu: inv_icm42600: Fix temperature calculation 2025-06-27 11:11:26 +01:00
light iio: light: opt3001: fix deadlock due to concurrent flag access 2025-05-22 14:29:53 +02:00
magnetometer
multiplexer
orientation
position
potentiometer
potentiostat
pressure iio: pressure: zpa2326: Use aligned_s64 for the timestamp 2025-07-06 11:01:34 +02:00
proximity
resolver
temperature iio: temp: maxim-thermocouple: Fix potential lack of DMA safe buffer. 2025-05-18 08:24:56 +02:00
test
trigger
iio_core_trigger.h
iio_core.h
industrialio-acpi.c
industrialio-backend.c iio: backend: make sure to NULL terminate stack buffer 2025-04-10 14:39:23 +02:00
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-gts-helper.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile
TODO