LM75 hwmon sensor
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/lm75.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jean Delvare <jdelvare@suse.com>", "Guenter Roeck <linux@roeck-us.net>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,adt75", "ams,as6200", "atmel,at30ts74", "dallas,ds1775", "dallas,ds75", "dallas,ds7505", "gmt,g751", "national,lm75", "national,lm75a", "national,lm75b", "maxim,max6625", "maxim,max6626", "maxim,max31725", "maxim,max31726", "maxim,mcp980x", "nxp,p3t1750", "nxp,p3t1755", "nxp,pct2075", "st,stds75", "st,stlm75", "microchip,tcn75", "ti,tmp1075", "ti,tmp100", "ti,tmp101", "ti,tmp105", "ti,tmp112", "ti,tmp175", "ti,tmp275", "ti,tmp75", "ti,tmp75b", "ti,tmp75c"
reg — required here #
Maximum number of items (maxItems): 1
vs-supply — not listed as required here #
phandle to the regulator that provides the +VS supply
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):hwmon-common.yaml#
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"ams,as6200","ti,tmp100","ti,tmp101","ti,tmp112","ti,tmp75"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required here
false— Not permitted by this property rule.
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@48 {
compatible = "st,stlm75";
reg = <0x48>;
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>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause