Skip to content

Commit de9c603

Browse files
bobisnoobgroeck
authored andcommitted
dt-bindings: hwmon: (lm75) Add AMS AS6200 temperature sensor
as6200 is a temperature sensor with a range between -40°C to 125°C degrees and an accuracy of ±0.4°C degree between 0 and 65°C and ±1°C for the other ranges. Signed-off-by: Abdel Alkuor <alkuor@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/17ba2dfdb3d25bf1b5b4ed9f858b6e28902bedbe.1703127334.git.alkuor@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent cfe0956 commit de9c603

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

  • Documentation/devicetree/bindings/hwmon

Documentation/devicetree/bindings/hwmon/lm75.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
compatible:
1515
enum:
1616
- adi,adt75
17+
- ams,as6200
1718
- atmel,at30ts74
1819
- dallas,ds1775
1920
- dallas,ds75
@@ -48,10 +49,28 @@ properties:
4849
vs-supply:
4950
description: phandle to the regulator that provides the +VS supply
5051

52+
interrupts:
53+
maxItems: 1
54+
5155
required:
5256
- compatible
5357
- reg
5458

59+
allOf:
60+
- if:
61+
not:
62+
properties:
63+
compatible:
64+
contains:
65+
enum:
66+
- ams,as6200
67+
- ti,tmp100
68+
- ti,tmp101
69+
- ti,tmp112
70+
then:
71+
properties:
72+
interrupts: false
73+
5574
additionalProperties: false
5675

5776
examples:
@@ -66,3 +85,17 @@ examples:
6685
vs-supply = <&vs>;
6786
};
6887
};
88+
- |
89+
#include <dt-bindings/interrupt-controller/irq.h>
90+
i2c {
91+
#address-cells = <1>;
92+
#size-cells = <0>;
93+
94+
temperature-sensor@48 {
95+
compatible = "ams,as6200";
96+
reg = <0x48>;
97+
vs-supply = <&vs>;
98+
interrupt-parent = <&gpio1>;
99+
interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
100+
};
101+
};

0 commit comments

Comments
 (0)