Path: blob/master/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
26308 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/national,lm90.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: LM90 series thermometer78maintainers:9- Jean Delvare <jdelvare@suse.com>10- Guenter Roeck <linux@roeck-us.net>1112properties:13compatible:14enum:15- adi,adm103216- adi,adt746117- adi,adt7461a18- adi,adt748119- dallas,max664620- dallas,max664721- dallas,max664922- dallas,max665423- dallas,max665724- dallas,max665825- dallas,max665926- dallas,max668027- dallas,max668128- dallas,max669529- dallas,max669630- gmt,g78131- national,lm8632- national,lm8933- national,lm9034- national,lm9935- nuvoton,nct771636- nuvoton,nct771737- nuvoton,nct771838- nxp,sa5600439- onnn,nct7240- onnn,nct21441- onnn,nct21842- onnn,nct100843- ti,tmp45144- ti,tmp46145- winbond,w83l771464748interrupts:49items:50- description: |51Single interrupt specifier which describes the LM90 "-ALERT" pin52output.5354reg:55maxItems: 15657"#thermal-sensor-cells":58const: 15960'#address-cells':61const: 16263'#size-cells':64const: 06566vcc-supply:67description: phandle to the regulator that provides the +VCC supply6869ti,extended-range-enable:70description: Set to enable extended range temperature.71type: boolean7273required:74- compatible75- reg7677patternProperties:78"^channel@([0-2])$":79type: object80description: Represents channels of the device and their specific configuration.8182properties:83reg:84description: The channel number. 0 is local channel, 1-2 are remote channels.85items:86minimum: 087maximum: 28889label:90description: A descriptive name for this channel, like "ambient" or "psu".9192temperature-offset-millicelsius:93description: Temperature offset to be added to or subtracted from remote temperature measurements.9495required:96- reg9798additionalProperties: false99100allOf:101- if:102not:103properties:104compatible:105contains:106enum:107- adi,adt7461108- adi,adt7461a109- adi,adt7481110- ti,tmp451111- ti,tmp461112then:113properties:114ti,extended-range-enable: false115116- if:117properties:118compatible:119contains:120enum:121- dallas,max6646122- dallas,max6647123- dallas,max6649124- dallas,max6654125- dallas,max6657126- dallas,max6658127- dallas,max6659128- dallas,max6695129- dallas,max6696130- nuvoton,nct7716131- nuvoton,nct7717132then:133patternProperties:134"^channel@([0-2])$":135properties:136temperature-offset-millicelsius: false137138- if:139properties:140compatible:141contains:142enum:143- adi,adt7461144- adi,adt7461a145- adi,adt7481146- onnn,nct72147- onnn,nct214148- onnn,nct218149- onnn,nct1008150then:151patternProperties:152"^channel@([0-2])$":153properties:154temperature-offset-millicelsius:155maximum: 127750156157- if:158properties:159compatible:160contains:161enum:162- adi,adm1032163- dallas,max6680164- dallas,max6681165- gmt,g781166- national,lm86167- national,lm89168- national,lm90169- national,lm99170- nuvoton,nct7718171- nxp,sa56004172- winbond,w83l771173then:174patternProperties:175"^channel@([0-2])$":176properties:177temperature-offset-millicelsius:178maximum: 127875179180- if:181properties:182compatible:183contains:184enum:185- ti,tmp451186- ti,tmp461187then:188patternProperties:189"^channel@([0-2])$":190properties:191temperature-offset-millicelsius:192maximum: 127937193194additionalProperties: false195196examples:197- |198#include <dt-bindings/interrupt-controller/irq.h>199200i2c {201#address-cells = <1>;202#size-cells = <0>;203204sensor@4c {205compatible = "onnn,nct1008";206reg = <0x4c>;207vcc-supply = <&palmas_ldo6_reg>;208interrupts = <4 IRQ_TYPE_LEVEL_LOW>;209#thermal-sensor-cells = <1>;210};211};212- |213i2c {214#address-cells = <1>;215#size-cells = <0>;216217sensor@4c {218compatible = "adi,adt7481";219reg = <0x4c>;220#address-cells = <1>;221#size-cells = <0>;222223channel@0 {224reg = <0x0>;225label = "local";226};227228channel@1 {229reg = <0x1>;230label = "front";231temperature-offset-millicelsius = <4000>;232};233234channel@2 {235reg = <0x2>;236label = "back";237temperature-offset-millicelsius = <750>;238};239};240};241242243