diff options
author | Cosmin Tanislav <cosmin.tanislav@analog.com> | 2022-11-03 14:00:35 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-11-23 20:54:00 +0100 |
commit | b3805fc3dcf35512266bddf8c785eb82a24325bc (patch) | |
tree | b0a95dd89ee0996521ab4fab7abc497282d6b6f0 /Documentation/devicetree/bindings/iio/temperature | |
parent | dt-bindings: iio: temperature: ltc2983: require custom sensor tables (diff) | |
download | linux-b3805fc3dcf35512266bddf8c785eb82a24325bc.tar.xz linux-b3805fc3dcf35512266bddf8c785eb82a24325bc.zip |
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>
Diffstat (limited to 'Documentation/devicetree/bindings/iio/temperature')
-rw-r--r-- | Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml b/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml index bbac5f5cfbb3..b603219fb0c9 100644 --- a/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml +++ b/Documentation/devicetree/bindings/iio/temperature/adi,ltc2983.yaml @@ -230,13 +230,6 @@ patternProperties: resistor is used for multiple 2-, 3-, and/or 4-wire RTDs. type: boolean - adi,current-rotate: - description: - Boolean property which enables excitation current rotation to - automatically remove parasitic thermocouple effects. Note that - this property is not allowed for 2- and 3-wire RTDs. - type: boolean - adi,excitation-current-microamp: description: This property controls the magnitude of the excitation current @@ -269,12 +262,24 @@ patternProperties: required: - adi,rsense-handle - dependencies: - adi,current-rotate: [ "adi,rsense-share" ] - allOf: - if: properties: + adi,number-of-wires: + const: 4 + then: + properties: + adi,current-rotate: + description: + Whether to enable excitation current rotation to automatically + remove parasitic thermocouple effects. + type: boolean + + dependencies: + adi,current-rotate: [ "adi,rsense-share" ] + + - if: + properties: adi,sensor-type: const: 18 then: |