Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: iio: adc: adi,ad7606: add gain calibration support

Add gain calibration support by a per-channel resistor value.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250606-wip-bl-ad7606-calibration-v9-4-6e014a1f92a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Angelo Dureghello and committed by
Jonathan Cameron
e986466a 48d487dc

+29
+29
Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml
··· 204 204 considered a bipolar differential channel. Otherwise it is bipolar 205 205 single-ended. 206 206 207 + adi,rfilter-ohms: 208 + description: 209 + For ADCs that supports gain calibration, this property must be set to 210 + the value of the external RFilter resistor. Proper gain error 211 + correction is applied based on this value. 212 + default: 0 213 + minimum: 0 214 + maximum: 64512 215 + 207 216 required: 208 217 - reg 209 218 - bipolar ··· 264 255 then: 265 256 properties: 266 257 adi,oversampling-ratio-gpios: false 258 + 259 + - if: 260 + properties: 261 + compatible: 262 + contains: 263 + enum: 264 + - adi,ad7605-4 265 + - adi,ad7606-4 266 + - adi,ad7606-6 267 + - adi,ad7606-8 268 + - adi,ad7607 269 + - adi,ad7608 270 + - adi,ad7609 271 + - adi,ad7616 272 + then: 273 + patternProperties: 274 + "^channel@[0-9a-f]+$": 275 + properties: 276 + adi,rfilter-ohms: false 267 277 268 278 - if: 269 279 properties: ··· 426 398 reg = <8>; 427 399 diff-channels = <8 8>; 428 400 bipolar; 401 + adi,rfilter-ohms = <2048>; 429 402 }; 430 403 431 404 };