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: dac: maxim,ds4424: add maxim,rfs-ohms property

The Maxim DS4422/DS4424 and DS4402/DS4404 current DACs determine their
full-scale output current via external resistors (Rfs) connected to the
FSx pins. Without knowing these values, the full-scale range of the
hardware is undefined.

Add the 'maxim,rfs-ohms' property to describe these physical components.
This property is required to provide a complete description of the
hardware configuration.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Oleksij Rempel and committed by
Jonathan Cameron
f789b8cc cfeae3ce

+35
+35
Documentation/devicetree/bindings/iio/dac/maxim,ds4424.yaml
··· 27 27 28 28 vcc-supply: true 29 29 30 + maxim,rfs-ohms: 31 + description: | 32 + Array of resistance values in Ohms for the external Rfs resistors 33 + connected to the FS pins. These values determine the full-scale 34 + output current. The actual resistance depends on the chip variant 35 + and specific hardware design requirements. 36 + minItems: 2 37 + maxItems: 4 38 + 30 39 required: 31 40 - compatible 32 41 - reg 42 + - maxim,rfs-ohms 43 + 44 + allOf: 45 + - if: 46 + properties: 47 + compatible: 48 + contains: 49 + enum: 50 + - maxim,ds4402 51 + - maxim,ds4422 52 + then: 53 + properties: 54 + maxim,rfs-ohms: 55 + maxItems: 2 56 + - if: 57 + properties: 58 + compatible: 59 + contains: 60 + enum: 61 + - maxim,ds4404 62 + - maxim,ds4424 63 + then: 64 + properties: 65 + maxim,rfs-ohms: 66 + minItems: 4 33 67 34 68 additionalProperties: false 35 69 ··· 77 43 compatible = "maxim,ds4424"; 78 44 reg = <0x10>; /* When A0, A1 pins are ground */ 79 45 vcc-supply = <&vcc_3v3>; 46 + maxim,rfs-ohms = <40000>, <40000>, <40000>, <40000>; 80 47 }; 81 48 }; 82 49 ...