File Index
Files and directories
Sign in
FILE

national,lm90.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/hwmon/national,lm90.yaml YAML
  1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/hwmon/national,lm90.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: LM90 series thermometer
  8
  9maintainers:
 10  - Jean Delvare <jdelvare@suse.com>
 11  - Guenter Roeck <linux@roeck-us.net>
 12
 13properties:
 14  compatible:
 15    enum:
 16      - adi,adm1032
 17      - adi,adt7461
 18      - adi,adt7461a
 19      - adi,adt7481
 20      - dallas,max6646
 21      - dallas,max6647
 22      - dallas,max6649
 23      - dallas,max6654
 24      - dallas,max6657
 25      - dallas,max6658
 26      - dallas,max6659
 27      - dallas,max6680
 28      - dallas,max6681
 29      - dallas,max6695
 30      - dallas,max6696
 31      - gmt,g781
 32      - national,lm86
 33      - national,lm89
 34      - national,lm90
 35      - national,lm99
 36      - nuvoton,nct7716
 37      - nuvoton,nct7717
 38      - nuvoton,nct7718
 39      - nxp,sa56004
 40      - onnn,nct72
 41      - onnn,nct214
 42      - onnn,nct218
 43      - onnn,nct1008
 44      - ti,tmp451
 45      - ti,tmp461
 46      - winbond,w83l771
 47
 48  interrupts:
 49    items:
 50      - description: |
 51          Single interrupt specifier which describes the LM90 "-ALERT" pin
 52          output.
 53
 54  reg:
 55    maxItems: 1
 56
 57  "#thermal-sensor-cells":
 58    const: 1
 59
 60  '#address-cells':
 61    const: 1
 62
 63  '#size-cells':
 64    const: 0
 65
 66  vcc-supply:
 67    description: phandle to the regulator that provides the +VCC supply
 68
 69  ti,extended-range-enable:
 70    description: Set to enable extended range temperature.
 71    type: boolean
 72
 73required:
 74  - compatible
 75  - reg
 76
 77patternProperties:
 78  "^channel@([0-2])$":
 79    type: object
 80    description: Represents channels of the device and their specific configuration.
 81
 82    properties:
 83      reg:
 84        description: The channel number. 0 is local channel, 1-2 are remote channels.
 85        items:
 86          minimum: 0
 87          maximum: 2
 88
 89      label:
 90        description: A descriptive name for this channel, like "ambient" or "psu".
 91
 92      temperature-offset-millicelsius:
 93        description: Temperature offset to be added to or subtracted from remote temperature measurements.
 94
 95    required:
 96      - reg
 97
 98    additionalProperties: false
 99
100allOf:
101  - if:
102      not:
103        properties:
104          compatible:
105            contains:
106              enum:
107                - adi,adt7461
108                - adi,adt7461a
109                - adi,adt7481
110                - ti,tmp451
111                - ti,tmp461
112    then:
113      properties:
114        ti,extended-range-enable: false
115
116  - if:
117      properties:
118        compatible:
119          contains:
120            enum:
121              - dallas,max6646
122              - dallas,max6647
123              - dallas,max6649
124              - dallas,max6654
125              - dallas,max6657
126              - dallas,max6658
127              - dallas,max6659
128              - dallas,max6695
129              - dallas,max6696
130              - nuvoton,nct7716
131              - nuvoton,nct7717
132    then:
133      patternProperties:
134        "^channel@([0-2])$":
135          properties:
136            temperature-offset-millicelsius: false
137
138  - if:
139      properties:
140        compatible:
141          contains:
142            enum:
143              - adi,adt7461
144              - adi,adt7461a
145              - adi,adt7481
146              - onnn,nct72
147              - onnn,nct214
148              - onnn,nct218
149              - onnn,nct1008
150    then:
151      patternProperties:
152        "^channel@([0-2])$":
153          properties:
154            temperature-offset-millicelsius:
155              maximum: 127750
156
157  - if:
158      properties:
159        compatible:
160          contains:
161            enum:
162              - adi,adm1032
163              - dallas,max6680
164              - dallas,max6681
165              - gmt,g781
166              - national,lm86
167              - national,lm89
168              - national,lm90
169              - national,lm99
170              - nuvoton,nct7718
171              - nxp,sa56004
172              - winbond,w83l771
173    then:
174      patternProperties:
175        "^channel@([0-2])$":
176          properties:
177            temperature-offset-millicelsius:
178              maximum: 127875
179
180  - if:
181      properties:
182        compatible:
183          contains:
184            enum:
185              - ti,tmp451
186              - ti,tmp461
187    then:
188      patternProperties:
189        "^channel@([0-2])$":
190          properties:
191            temperature-offset-millicelsius:
192              maximum: 127937
193
194additionalProperties: false
195
196examples:
197  - |
198    #include <dt-bindings/interrupt-controller/irq.h>
199
200    i2c {
201        #address-cells = <1>;
202        #size-cells = <0>;
203
204        sensor@4c {
205            compatible = "onnn,nct1008";
206            reg = <0x4c>;
207            vcc-supply = <&palmas_ldo6_reg>;
208            interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
209            #thermal-sensor-cells = <1>;
210        };
211    };
212  - |
213    i2c {
214        #address-cells = <1>;
215        #size-cells = <0>;
216
217        sensor@4c {
218            compatible = "adi,adt7481";
219            reg = <0x4c>;
220            #address-cells = <1>;
221            #size-cells = <0>;
222
223            channel@0 {
224                reg = <0x0>;
225                label = "local";
226            };
227
228            channel@1 {
229                reg = <0x1>;
230                label = "front";
231                temperature-offset-millicelsius = <4000>;
232            };
233
234            channel@2 {
235                reg = <0x2>;
236                label = "back";
237                temperature-offset-millicelsius = <750>;
238            };
239        };
240    };
~/ Read-only file preview.