xref: /freebsd/sys/contrib/device-tree/Bindings/hwmon/ti,tmp421.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/ti,tmp421.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: TMP42x/TMP44x temperature sensor
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - Guenter Roeck <linux@roeck-us.net>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotdescription: |
138cc087a1SEmmanuel Vadot  ±1°C Remote and Local temperature sensor
148cc087a1SEmmanuel Vadot  https://www.ti.com/lit/ds/symlink/tmp422.pdf
158cc087a1SEmmanuel Vadot
168cc087a1SEmmanuel Vadotproperties:
178cc087a1SEmmanuel Vadot  compatible:
188cc087a1SEmmanuel Vadot    enum:
198cc087a1SEmmanuel Vadot      - ti,tmp421
208cc087a1SEmmanuel Vadot      - ti,tmp422
218cc087a1SEmmanuel Vadot      - ti,tmp423
228cc087a1SEmmanuel Vadot      - ti,tmp441
238cc087a1SEmmanuel Vadot      - ti,tmp442
248cc087a1SEmmanuel Vadot  reg:
258cc087a1SEmmanuel Vadot    maxItems: 1
268cc087a1SEmmanuel Vadot
278cc087a1SEmmanuel Vadot  '#address-cells':
288cc087a1SEmmanuel Vadot    const: 1
298cc087a1SEmmanuel Vadot
308cc087a1SEmmanuel Vadot  '#size-cells':
318cc087a1SEmmanuel Vadot    const: 0
328cc087a1SEmmanuel Vadot
338cc087a1SEmmanuel Vadotrequired:
348cc087a1SEmmanuel Vadot  - compatible
358cc087a1SEmmanuel Vadot  - reg
368cc087a1SEmmanuel Vadot
378cc087a1SEmmanuel VadotadditionalProperties: false
388cc087a1SEmmanuel Vadot
398cc087a1SEmmanuel VadotpatternProperties:
408cc087a1SEmmanuel Vadot  "^channel@([0-3])$":
418cc087a1SEmmanuel Vadot    type: object
428cc087a1SEmmanuel Vadot    description: |
438cc087a1SEmmanuel Vadot      Represents channels of the device and their specific configuration.
448cc087a1SEmmanuel Vadot
458cc087a1SEmmanuel Vadot    properties:
468cc087a1SEmmanuel Vadot      reg:
478cc087a1SEmmanuel Vadot        description: |
488cc087a1SEmmanuel Vadot          The channel number. 0 is local channel, 1-3 are remote channels
498cc087a1SEmmanuel Vadot        items:
508cc087a1SEmmanuel Vadot          minimum: 0
518cc087a1SEmmanuel Vadot          maximum: 3
528cc087a1SEmmanuel Vadot
538cc087a1SEmmanuel Vadot      label:
548cc087a1SEmmanuel Vadot        description: |
558cc087a1SEmmanuel Vadot          A descriptive name for this channel, like "ambient" or "psu".
568cc087a1SEmmanuel Vadot
578cc087a1SEmmanuel Vadot      ti,n-factor:
588cc087a1SEmmanuel Vadot        description: |
598cc087a1SEmmanuel Vadot          The value (two's complement) to be programmed in the channel specific N correction register.
608cc087a1SEmmanuel Vadot          For remote channels only.
61*c9ccf3a3SEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/int32
62*c9ccf3a3SEmmanuel Vadot        minimum: -128
63*c9ccf3a3SEmmanuel Vadot        maximum: 127
648cc087a1SEmmanuel Vadot
658cc087a1SEmmanuel Vadot    required:
668cc087a1SEmmanuel Vadot      - reg
678cc087a1SEmmanuel Vadot
688cc087a1SEmmanuel Vadot    additionalProperties: false
698cc087a1SEmmanuel Vadot
708cc087a1SEmmanuel Vadotexamples:
718cc087a1SEmmanuel Vadot  - |
728cc087a1SEmmanuel Vadot    i2c {
738cc087a1SEmmanuel Vadot      #address-cells = <1>;
748cc087a1SEmmanuel Vadot      #size-cells = <0>;
758cc087a1SEmmanuel Vadot
768cc087a1SEmmanuel Vadot      sensor@4c {
778cc087a1SEmmanuel Vadot        compatible = "ti,tmp422";
788cc087a1SEmmanuel Vadot        reg = <0x4c>;
798cc087a1SEmmanuel Vadot      };
808cc087a1SEmmanuel Vadot    };
818cc087a1SEmmanuel Vadot  - |
828cc087a1SEmmanuel Vadot    i2c {
838cc087a1SEmmanuel Vadot      #address-cells = <1>;
848cc087a1SEmmanuel Vadot      #size-cells = <0>;
858cc087a1SEmmanuel Vadot
868cc087a1SEmmanuel Vadot      sensor@4c {
878cc087a1SEmmanuel Vadot        compatible = "ti,tmp422";
888cc087a1SEmmanuel Vadot        reg = <0x4c>;
898cc087a1SEmmanuel Vadot        #address-cells = <1>;
908cc087a1SEmmanuel Vadot        #size-cells = <0>;
918cc087a1SEmmanuel Vadot
928cc087a1SEmmanuel Vadot        channel@0 {
938cc087a1SEmmanuel Vadot          reg = <0x0>;
948cc087a1SEmmanuel Vadot          ti,n-factor = <0x1>;
958cc087a1SEmmanuel Vadot          label = "local";
968cc087a1SEmmanuel Vadot        };
978cc087a1SEmmanuel Vadot
988cc087a1SEmmanuel Vadot        channel@1 {
998cc087a1SEmmanuel Vadot          reg = <0x1>;
1008cc087a1SEmmanuel Vadot          ti,n-factor = <0x0>;
1018cc087a1SEmmanuel Vadot          label = "somelabel";
1028cc087a1SEmmanuel Vadot        };
1038cc087a1SEmmanuel Vadot
1048cc087a1SEmmanuel Vadot        channel@2 {
1058cc087a1SEmmanuel Vadot          reg = <0x2>;
1068cc087a1SEmmanuel Vadot          status = "disabled";
1078cc087a1SEmmanuel Vadot        };
1088cc087a1SEmmanuel Vadot      };
1098cc087a1SEmmanuel Vadot    };
110