Skip to content

Commit 8dd248f

Browse files
Holger Brunckgroeck
authored andcommitted
dt-bindings: hwmon: lm90: add ti,extended-range-enable property
Some devices can operate in an extended temperature mode. Therefore add a boolean ti,extended-range-enable to be able to select this feature in the device tree node. Also make sure that this feature can only be enabled for the devices supporting this feature. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220517135614.8185-1-holger.brunck@hitachienergy.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 67f6abc commit 8dd248f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Documentation/devicetree/bindings/hwmon/national,lm90.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,29 @@ properties:
5353
vcc-supply:
5454
description: phandle to the regulator that provides the +VCC supply
5555

56+
ti,extended-range-enable:
57+
description: Set to enable extended range temperature.
58+
type: boolean
59+
5660
required:
5761
- compatible
5862
- reg
5963

64+
allOf:
65+
- if:
66+
not:
67+
properties:
68+
compatible:
69+
contains:
70+
enum:
71+
- adi,adt7461
72+
- adi,adt7461a
73+
- ti,tmp451
74+
- ti,tmp461
75+
then:
76+
properties:
77+
ti,extended-range-enable: false
78+
6079
additionalProperties: false
6180

6281
examples:

0 commit comments

Comments
 (0)