brintos

brintos / linux-shallow public Read only

0
0
Text · 4.9 KiB · 6e59c8f Raw
228 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/hwmon/national,lm90.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: LM90 series thermometer8 9maintainers:10  - Jean Delvare <jdelvare@suse.com>11  - Guenter Roeck <linux@roeck-us.net>12 13properties:14  compatible:15    enum:16      - adi,adm103217      - adi,adt746118      - adi,adt7461a19      - adi,adt748120      - dallas,max664621      - dallas,max664722      - dallas,max664923      - dallas,max665724      - dallas,max665825      - dallas,max665926      - dallas,max668027      - dallas,max668128      - dallas,max669529      - dallas,max669630      - gmt,g78131      - national,lm8632      - national,lm8933      - national,lm9034      - national,lm9935      - nxp,sa5600436      - onnn,nct100837      - ti,tmp45138      - ti,tmp46139      - winbond,w83l77140 41 42  interrupts:43    items:44      - description: |45          Single interrupt specifier which describes the LM90 "-ALERT" pin46          output.47 48  reg:49    maxItems: 150 51  "#thermal-sensor-cells":52    const: 153 54  '#address-cells':55    const: 156 57  '#size-cells':58    const: 059 60  vcc-supply:61    description: phandle to the regulator that provides the +VCC supply62 63  ti,extended-range-enable:64    description: Set to enable extended range temperature.65    type: boolean66 67required:68  - compatible69  - reg70 71patternProperties:72  "^channel@([0-2])$":73    type: object74    description: Represents channels of the device and their specific configuration.75 76    properties:77      reg:78        description: The channel number. 0 is local channel, 1-2 are remote channels.79        items:80          minimum: 081          maximum: 282 83      label:84        description: A descriptive name for this channel, like "ambient" or "psu".85 86      temperature-offset-millicelsius:87        description: Temperature offset to be added to or subtracted from remote temperature measurements.88 89    required:90      - reg91 92    additionalProperties: false93 94allOf:95  - if:96      not:97        properties:98          compatible:99            contains:100              enum:101                - adi,adt7461102                - adi,adt7461a103                - adi,adt7481104                - ti,tmp451105                - ti,tmp461106    then:107      properties:108        ti,extended-range-enable: false109 110  - if:111      properties:112        compatible:113          contains:114            enum:115              - dallas,max6646116              - dallas,max6647117              - dallas,max6649118              - dallas,max6657119              - dallas,max6658120              - dallas,max6659121              - dallas,max6695122              - dallas,max6696123    then:124      patternProperties:125        "^channel@([0-2])$":126          properties:127            temperature-offset-millicelsius: false128 129  - if:130      properties:131        compatible:132          contains:133            enum:134              - adi,adt7461135              - adi,adt7461a136              - adi,adt7481137              - onnn,nct1008138    then:139      patternProperties:140        "^channel@([0-2])$":141          properties:142            temperature-offset-millicelsius:143              maximum: 127750144 145  - if:146      properties:147        compatible:148          contains:149            enum:150              - adi,adm1032151              - dallas,max6680152              - dallas,max6681153              - gmt,g781154              - national,lm86155              - national,lm89156              - national,lm90157              - national,lm99158              - nxp,sa56004159              - winbond,w83l771160    then:161      patternProperties:162        "^channel@([0-2])$":163          properties:164            temperature-offset-millicelsius:165              maximum: 127875166 167  - if:168      properties:169        compatible:170          contains:171            enum:172              - ti,tmp451173              - ti,tmp461174    then:175      patternProperties:176        "^channel@([0-2])$":177          properties:178            temperature-offset-millicelsius:179              maximum: 127937180 181additionalProperties: false182 183examples:184  - |185    #include <dt-bindings/interrupt-controller/irq.h>186 187    i2c {188        #address-cells = <1>;189        #size-cells = <0>;190 191        sensor@4c {192            compatible = "onnn,nct1008";193            reg = <0x4c>;194            vcc-supply = <&palmas_ldo6_reg>;195            interrupts = <4 IRQ_TYPE_LEVEL_LOW>;196            #thermal-sensor-cells = <1>;197        };198    };199  - |200    i2c {201        #address-cells = <1>;202        #size-cells = <0>;203 204        sensor@4c {205            compatible = "adi,adt7481";206            reg = <0x4c>;207            #address-cells = <1>;208            #size-cells = <0>;209 210            channel@0 {211                reg = <0x0>;212                label = "local";213            };214 215            channel@1 {216                reg = <0x1>;217                label = "front";218                temperature-offset-millicelsius = <4000>;219            };220 221            channel@2 {222                reg = <0x2>;223                label = "back";224                temperature-offset-millicelsius = <750>;225            };226        };227    };228