Path: blob/master/Documentation/devicetree/bindings/hwmon/national,lm90.yaml
53644 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,w83l7714647interrupts:48items:49- description: |50Single interrupt specifier which describes the LM90 "-ALERT" pin51output.5253reg:54maxItems: 15556"#thermal-sensor-cells":57const: 15859'#address-cells':60const: 16162'#size-cells':63const: 06465vcc-supply:66description: phandle to the regulator that provides the +VCC supply6768ti,extended-range-enable:69description: Set to enable extended range temperature.70type: boolean7172required:73- compatible74- reg7576patternProperties:77"^channel@([0-2])$":78type: object79description: Represents channels of the device and their specific configuration.8081properties:82reg:83description: The channel number. 0 is local channel, 1-2 are remote channels.84items:85minimum: 086maximum: 28788label:89description: A descriptive name for this channel, like "ambient" or "psu".9091temperature-offset-millicelsius:92description: Temperature offset to be added to or subtracted from remote temperature measurements.9394required:95- reg9697additionalProperties: false9899allOf:100- if:101not:102properties:103compatible:104contains:105enum:106- adi,adt7461107- adi,adt7461a108- adi,adt7481109- ti,tmp451110- ti,tmp461111then:112properties:113ti,extended-range-enable: false114115- if:116properties:117compatible:118contains:119enum:120- dallas,max6646121- dallas,max6647122- dallas,max6649123- dallas,max6654124- dallas,max6657125- dallas,max6658126- dallas,max6659127- dallas,max6695128- dallas,max6696129- nuvoton,nct7716130- nuvoton,nct7717131then:132patternProperties:133"^channel@([0-2])$":134properties:135temperature-offset-millicelsius: false136137- if:138properties:139compatible:140contains:141enum:142- adi,adt7461143- adi,adt7461a144- adi,adt7481145- onnn,nct72146- onnn,nct214147- onnn,nct218148- onnn,nct1008149then:150patternProperties:151"^channel@([0-2])$":152properties:153temperature-offset-millicelsius:154maximum: 127750155156- if:157properties:158compatible:159contains:160enum:161- adi,adm1032162- dallas,max6680163- dallas,max6681164- gmt,g781165- national,lm86166- national,lm89167- national,lm90168- national,lm99169- nuvoton,nct7718170- nxp,sa56004171- winbond,w83l771172then:173patternProperties:174"^channel@([0-2])$":175properties:176temperature-offset-millicelsius:177maximum: 127875178179- if:180properties:181compatible:182contains:183enum:184- ti,tmp451185- ti,tmp461186then:187patternProperties:188"^channel@([0-2])$":189properties:190temperature-offset-millicelsius:191maximum: 127937192193additionalProperties: false194195examples:196- |197#include <dt-bindings/interrupt-controller/irq.h>198199i2c {200#address-cells = <1>;201#size-cells = <0>;202203sensor@4c {204compatible = "onnn,nct1008";205reg = <0x4c>;206vcc-supply = <&palmas_ldo6_reg>;207interrupts = <4 IRQ_TYPE_LEVEL_LOW>;208#thermal-sensor-cells = <1>;209};210};211- |212i2c {213#address-cells = <1>;214#size-cells = <0>;215216sensor@4c {217compatible = "adi,adt7481";218reg = <0x4c>;219#address-cells = <1>;220#size-cells = <0>;221222channel@0 {223reg = <0x0>;224label = "local";225};226227channel@1 {228reg = <0x1>;229label = "front";230temperature-offset-millicelsius = <4000>;231};232233channel@2 {234reg = <0x2>;235label = "back";236temperature-offset-millicelsius = <750>;237};238};239};240241242