mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
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>
This commit is contained in:
parent
cfe0956446
commit
de9c6033fb
@ -14,6 +14,7 @@ properties:
|
||||
compatible:
|
||||
enum:
|
||||
- adi,adt75
|
||||
- ams,as6200
|
||||
- atmel,at30ts74
|
||||
- dallas,ds1775
|
||||
- dallas,ds75
|
||||
@ -48,10 +49,28 @@ properties:
|
||||
vs-supply:
|
||||
description: phandle to the regulator that provides the +VS supply
|
||||
|
||||
interrupts:
|
||||
maxItems: 1
|
||||
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
|
||||
allOf:
|
||||
- if:
|
||||
not:
|
||||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
enum:
|
||||
- ams,as6200
|
||||
- ti,tmp100
|
||||
- ti,tmp101
|
||||
- ti,tmp112
|
||||
then:
|
||||
properties:
|
||||
interrupts: false
|
||||
|
||||
additionalProperties: false
|
||||
|
||||
examples:
|
||||
@ -66,3 +85,17 @@ examples:
|
||||
vs-supply = <&vs>;
|
||||
};
|
||||
};
|
||||
- |
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
i2c {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
temperature-sensor@48 {
|
||||
compatible = "ams,as6200";
|
||||
reg = <0x48>;
|
||||
vs-supply = <&vs>;
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user