1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28cc087a1SEmmanuel Vadot%YAML 1.2 38cc087a1SEmmanuel Vadot--- 48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/national,lm90.yaml# 58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 68cc087a1SEmmanuel Vadot 78cc087a1SEmmanuel Vadottitle: LM90 series thermometer 88cc087a1SEmmanuel Vadot 98cc087a1SEmmanuel Vadotmaintainers: 108cc087a1SEmmanuel Vadot - Jean Delvare <jdelvare@suse.com> 118cc087a1SEmmanuel Vadot - Guenter Roeck <linux@roeck-us.net> 128cc087a1SEmmanuel Vadot 138cc087a1SEmmanuel Vadotproperties: 148cc087a1SEmmanuel Vadot compatible: 158cc087a1SEmmanuel Vadot enum: 168cc087a1SEmmanuel Vadot - adi,adm1032 178cc087a1SEmmanuel Vadot - adi,adt7461 188cc087a1SEmmanuel Vadot - adi,adt7461a 19b97ee269SEmmanuel Vadot - adi,adt7481 208cc087a1SEmmanuel Vadot - dallas,max6646 218cc087a1SEmmanuel Vadot - dallas,max6647 228cc087a1SEmmanuel Vadot - dallas,max6649 238cc087a1SEmmanuel Vadot - dallas,max6657 248cc087a1SEmmanuel Vadot - dallas,max6658 258cc087a1SEmmanuel Vadot - dallas,max6659 268cc087a1SEmmanuel Vadot - dallas,max6680 278cc087a1SEmmanuel Vadot - dallas,max6681 288cc087a1SEmmanuel Vadot - dallas,max6695 298cc087a1SEmmanuel Vadot - dallas,max6696 308cc087a1SEmmanuel Vadot - gmt,g781 318cc087a1SEmmanuel Vadot - national,lm86 328cc087a1SEmmanuel Vadot - national,lm89 338cc087a1SEmmanuel Vadot - national,lm90 348cc087a1SEmmanuel Vadot - national,lm99 358cc087a1SEmmanuel Vadot - nxp,sa56004 368cc087a1SEmmanuel Vadot - onnn,nct1008 378cc087a1SEmmanuel Vadot - ti,tmp451 38d5b0e70fSEmmanuel Vadot - ti,tmp461 398cc087a1SEmmanuel Vadot - winbond,w83l771 408cc087a1SEmmanuel Vadot 418cc087a1SEmmanuel Vadot 428cc087a1SEmmanuel Vadot interrupts: 438cc087a1SEmmanuel Vadot items: 448cc087a1SEmmanuel Vadot - description: | 458cc087a1SEmmanuel Vadot Single interrupt specifier which describes the LM90 "-ALERT" pin 468cc087a1SEmmanuel Vadot output. 478cc087a1SEmmanuel Vadot 488cc087a1SEmmanuel Vadot reg: 498cc087a1SEmmanuel Vadot maxItems: 1 508cc087a1SEmmanuel Vadot 518cc087a1SEmmanuel Vadot "#thermal-sensor-cells": 528cc087a1SEmmanuel Vadot const: 1 538cc087a1SEmmanuel Vadot 54b97ee269SEmmanuel Vadot '#address-cells': 55b97ee269SEmmanuel Vadot const: 1 56b97ee269SEmmanuel Vadot 57b97ee269SEmmanuel Vadot '#size-cells': 58b97ee269SEmmanuel Vadot const: 0 59b97ee269SEmmanuel Vadot 608cc087a1SEmmanuel Vadot vcc-supply: 618cc087a1SEmmanuel Vadot description: phandle to the regulator that provides the +VCC supply 628cc087a1SEmmanuel Vadot 63d5b0e70fSEmmanuel Vadot ti,extended-range-enable: 64d5b0e70fSEmmanuel Vadot description: Set to enable extended range temperature. 65d5b0e70fSEmmanuel Vadot type: boolean 66d5b0e70fSEmmanuel Vadot 678cc087a1SEmmanuel Vadotrequired: 688cc087a1SEmmanuel Vadot - compatible 698cc087a1SEmmanuel Vadot - reg 708cc087a1SEmmanuel Vadot 71b97ee269SEmmanuel VadotpatternProperties: 72b97ee269SEmmanuel Vadot "^channel@([0-2])$": 73b97ee269SEmmanuel Vadot type: object 74b97ee269SEmmanuel Vadot description: Represents channels of the device and their specific configuration. 75b97ee269SEmmanuel Vadot 76b97ee269SEmmanuel Vadot properties: 77b97ee269SEmmanuel Vadot reg: 78b97ee269SEmmanuel Vadot description: The channel number. 0 is local channel, 1-2 are remote channels. 79b97ee269SEmmanuel Vadot items: 80b97ee269SEmmanuel Vadot minimum: 0 81b97ee269SEmmanuel Vadot maximum: 2 82b97ee269SEmmanuel Vadot 83b97ee269SEmmanuel Vadot label: 84b97ee269SEmmanuel Vadot description: A descriptive name for this channel, like "ambient" or "psu". 85b97ee269SEmmanuel Vadot 86b97ee269SEmmanuel Vadot temperature-offset-millicelsius: 87b97ee269SEmmanuel Vadot description: Temperature offset to be added to or subtracted from remote temperature measurements. 88b97ee269SEmmanuel Vadot 89b97ee269SEmmanuel Vadot required: 90b97ee269SEmmanuel Vadot - reg 91b97ee269SEmmanuel Vadot 92b97ee269SEmmanuel Vadot additionalProperties: false 93b97ee269SEmmanuel Vadot 94d5b0e70fSEmmanuel VadotallOf: 95d5b0e70fSEmmanuel Vadot - if: 96d5b0e70fSEmmanuel Vadot not: 97d5b0e70fSEmmanuel Vadot properties: 98d5b0e70fSEmmanuel Vadot compatible: 99d5b0e70fSEmmanuel Vadot contains: 100d5b0e70fSEmmanuel Vadot enum: 101d5b0e70fSEmmanuel Vadot - adi,adt7461 102d5b0e70fSEmmanuel Vadot - adi,adt7461a 103b97ee269SEmmanuel Vadot - adi,adt7481 104d5b0e70fSEmmanuel Vadot - ti,tmp451 105d5b0e70fSEmmanuel Vadot - ti,tmp461 106d5b0e70fSEmmanuel Vadot then: 107d5b0e70fSEmmanuel Vadot properties: 108d5b0e70fSEmmanuel Vadot ti,extended-range-enable: false 109d5b0e70fSEmmanuel Vadot 110b97ee269SEmmanuel Vadot - if: 111b97ee269SEmmanuel Vadot properties: 112b97ee269SEmmanuel Vadot compatible: 113b97ee269SEmmanuel Vadot contains: 114b97ee269SEmmanuel Vadot enum: 115b97ee269SEmmanuel Vadot - dallas,max6646 116b97ee269SEmmanuel Vadot - dallas,max6647 117b97ee269SEmmanuel Vadot - dallas,max6649 118b97ee269SEmmanuel Vadot - dallas,max6657 119b97ee269SEmmanuel Vadot - dallas,max6658 120b97ee269SEmmanuel Vadot - dallas,max6659 121b97ee269SEmmanuel Vadot - dallas,max6695 122b97ee269SEmmanuel Vadot - dallas,max6696 123b97ee269SEmmanuel Vadot then: 124b97ee269SEmmanuel Vadot patternProperties: 125b97ee269SEmmanuel Vadot "^channel@([0-2])$": 126b97ee269SEmmanuel Vadot properties: 127b97ee269SEmmanuel Vadot temperature-offset-millicelsius: false 128b97ee269SEmmanuel Vadot 129b97ee269SEmmanuel Vadot - if: 130b97ee269SEmmanuel Vadot properties: 131b97ee269SEmmanuel Vadot compatible: 132b97ee269SEmmanuel Vadot contains: 133b97ee269SEmmanuel Vadot enum: 134b97ee269SEmmanuel Vadot - adi,adt7461 135b97ee269SEmmanuel Vadot - adi,adt7461a 136b97ee269SEmmanuel Vadot - adi,adt7481 137b97ee269SEmmanuel Vadot - onnn,nct1008 138b97ee269SEmmanuel Vadot then: 139b97ee269SEmmanuel Vadot patternProperties: 140b97ee269SEmmanuel Vadot "^channel@([0-2])$": 141b97ee269SEmmanuel Vadot properties: 142b97ee269SEmmanuel Vadot temperature-offset-millicelsius: 143b97ee269SEmmanuel Vadot maximum: 127750 144b97ee269SEmmanuel Vadot 145b97ee269SEmmanuel Vadot - if: 146b97ee269SEmmanuel Vadot properties: 147b97ee269SEmmanuel Vadot compatible: 148b97ee269SEmmanuel Vadot contains: 149b97ee269SEmmanuel Vadot enum: 150b97ee269SEmmanuel Vadot - adi,adm1032 151b97ee269SEmmanuel Vadot - dallas,max6680 152b97ee269SEmmanuel Vadot - dallas,max6681 153b97ee269SEmmanuel Vadot - gmt,g781 154b97ee269SEmmanuel Vadot - national,lm86 155b97ee269SEmmanuel Vadot - national,lm89 156b97ee269SEmmanuel Vadot - national,lm90 157b97ee269SEmmanuel Vadot - national,lm99 158b97ee269SEmmanuel Vadot - nxp,sa56004 159b97ee269SEmmanuel Vadot - winbond,w83l771 160b97ee269SEmmanuel Vadot then: 161b97ee269SEmmanuel Vadot patternProperties: 162b97ee269SEmmanuel Vadot "^channel@([0-2])$": 163b97ee269SEmmanuel Vadot properties: 164b97ee269SEmmanuel Vadot temperature-offset-millicelsius: 165b97ee269SEmmanuel Vadot maximum: 127875 166b97ee269SEmmanuel Vadot 167b97ee269SEmmanuel Vadot - if: 168b97ee269SEmmanuel Vadot properties: 169b97ee269SEmmanuel Vadot compatible: 170b97ee269SEmmanuel Vadot contains: 171b97ee269SEmmanuel Vadot enum: 172b97ee269SEmmanuel Vadot - ti,tmp451 173b97ee269SEmmanuel Vadot - ti,tmp461 174b97ee269SEmmanuel Vadot then: 175b97ee269SEmmanuel Vadot patternProperties: 176b97ee269SEmmanuel Vadot "^channel@([0-2])$": 177b97ee269SEmmanuel Vadot properties: 178b97ee269SEmmanuel Vadot temperature-offset-millicelsius: 179b97ee269SEmmanuel Vadot maximum: 127937 180b97ee269SEmmanuel Vadot 1818cc087a1SEmmanuel VadotadditionalProperties: false 1828cc087a1SEmmanuel Vadot 1838cc087a1SEmmanuel Vadotexamples: 1848cc087a1SEmmanuel Vadot - | 1858cc087a1SEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 1868cc087a1SEmmanuel Vadot 1878cc087a1SEmmanuel Vadot i2c { 1888cc087a1SEmmanuel Vadot #address-cells = <1>; 1898cc087a1SEmmanuel Vadot #size-cells = <0>; 1908cc087a1SEmmanuel Vadot 1918cc087a1SEmmanuel Vadot sensor@4c { 1928cc087a1SEmmanuel Vadot compatible = "onnn,nct1008"; 1938cc087a1SEmmanuel Vadot reg = <0x4c>; 1948cc087a1SEmmanuel Vadot vcc-supply = <&palmas_ldo6_reg>; 195c9ccf3a3SEmmanuel Vadot interrupts = <4 IRQ_TYPE_LEVEL_LOW>; 1968cc087a1SEmmanuel Vadot #thermal-sensor-cells = <1>; 1978cc087a1SEmmanuel Vadot }; 1988cc087a1SEmmanuel Vadot }; 199b97ee269SEmmanuel Vadot - | 200b97ee269SEmmanuel Vadot i2c { 201b97ee269SEmmanuel Vadot #address-cells = <1>; 202b97ee269SEmmanuel Vadot #size-cells = <0>; 203b97ee269SEmmanuel Vadot 204b97ee269SEmmanuel Vadot sensor@4c { 205b97ee269SEmmanuel Vadot compatible = "adi,adt7481"; 206b97ee269SEmmanuel Vadot reg = <0x4c>; 207b97ee269SEmmanuel Vadot #address-cells = <1>; 208b97ee269SEmmanuel Vadot #size-cells = <0>; 209b97ee269SEmmanuel Vadot 210b97ee269SEmmanuel Vadot channel@0 { 211b97ee269SEmmanuel Vadot reg = <0x0>; 212b97ee269SEmmanuel Vadot label = "local"; 213b97ee269SEmmanuel Vadot }; 214b97ee269SEmmanuel Vadot 215b97ee269SEmmanuel Vadot channel@1 { 216b97ee269SEmmanuel Vadot reg = <0x1>; 217b97ee269SEmmanuel Vadot label = "front"; 218b97ee269SEmmanuel Vadot temperature-offset-millicelsius = <4000>; 219b97ee269SEmmanuel Vadot }; 220b97ee269SEmmanuel Vadot 221b97ee269SEmmanuel Vadot channel@2 { 222b97ee269SEmmanuel Vadot reg = <0x2>; 223b97ee269SEmmanuel Vadot label = "back"; 224b97ee269SEmmanuel Vadot temperature-offset-millicelsius = <750>; 225b97ee269SEmmanuel Vadot }; 226b97ee269SEmmanuel Vadot }; 227b97ee269SEmmanuel Vadot }; 228