xref: /freebsd/sys/contrib/device-tree/Bindings/hwmon/ti,lm87.yaml (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
1*7d0873ebSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*7d0873ebSEmmanuel Vadot%YAML 1.2
3*7d0873ebSEmmanuel Vadot---
4*7d0873ebSEmmanuel Vadot
5*7d0873ebSEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/ti,lm87.yaml#
6*7d0873ebSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
7*7d0873ebSEmmanuel Vadot
8*7d0873ebSEmmanuel Vadottitle: Texas Instruments LM87 Hardware Monitor
9*7d0873ebSEmmanuel Vadot
10*7d0873ebSEmmanuel Vadotmaintainers:
11*7d0873ebSEmmanuel Vadot  - Javier Carrasco <javier.carrasco.cruz@gmail.com>
12*7d0873ebSEmmanuel Vadot
13*7d0873ebSEmmanuel Vadotdescription: |
14*7d0873ebSEmmanuel Vadot  The LM87 is a serial interface system hardware monitor
15*7d0873ebSEmmanuel Vadot  with remote diode temperature sensing.
16*7d0873ebSEmmanuel Vadot
17*7d0873ebSEmmanuel Vadot  Datasheets:
18*7d0873ebSEmmanuel Vadot    https://www.ti.com/product/LM87
19*7d0873ebSEmmanuel Vadot
20*7d0873ebSEmmanuel Vadotproperties:
21*7d0873ebSEmmanuel Vadot  compatible:
22*7d0873ebSEmmanuel Vadot    const: ti,lm87
23*7d0873ebSEmmanuel Vadot
24*7d0873ebSEmmanuel Vadot  reg:
25*7d0873ebSEmmanuel Vadot    maxItems: 1
26*7d0873ebSEmmanuel Vadot
27*7d0873ebSEmmanuel Vadot  has-temp3:
28*7d0873ebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
29*7d0873ebSEmmanuel Vadot    description:
30*7d0873ebSEmmanuel Vadot      This configures pins 18 and 19 to be used as a second
31*7d0873ebSEmmanuel Vadot      remote temperature sensing channel. By default the pins
32*7d0873ebSEmmanuel Vadot      are configured as voltage input pins in0 and in5.
33*7d0873ebSEmmanuel Vadot
34*7d0873ebSEmmanuel Vadot  has-in6:
35*7d0873ebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
36*7d0873ebSEmmanuel Vadot    description:
37*7d0873ebSEmmanuel Vadot      When set, pin 5 is configured to be used as voltage input
38*7d0873ebSEmmanuel Vadot      in6. Otherwise the pin is set as FAN1 input.
39*7d0873ebSEmmanuel Vadot
40*7d0873ebSEmmanuel Vadot  has-in7:
41*7d0873ebSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
42*7d0873ebSEmmanuel Vadot    description:
43*7d0873ebSEmmanuel Vadot      When set, pin 6 is configured to be used as voltage input
44*7d0873ebSEmmanuel Vadot      in7. Otherwise the pin is set as FAN2 input.
45*7d0873ebSEmmanuel Vadot
46*7d0873ebSEmmanuel Vadot  vcc-supply:
47*7d0873ebSEmmanuel Vadot    description:
48*7d0873ebSEmmanuel Vadot      Regulator supplying power, can be configured to measure
49*7d0873ebSEmmanuel Vadot      5.0V power supply. Default is 3.3V.
50*7d0873ebSEmmanuel Vadot
51*7d0873ebSEmmanuel Vadotrequired:
52*7d0873ebSEmmanuel Vadot  - compatible
53*7d0873ebSEmmanuel Vadot  - reg
54*7d0873ebSEmmanuel Vadot
55*7d0873ebSEmmanuel VadotadditionalProperties: false
56*7d0873ebSEmmanuel Vadot
57*7d0873ebSEmmanuel Vadotexamples:
58*7d0873ebSEmmanuel Vadot  - |
59*7d0873ebSEmmanuel Vadot    i2c {
60*7d0873ebSEmmanuel Vadot        #address-cells = <1>;
61*7d0873ebSEmmanuel Vadot        #size-cells = <0>;
62*7d0873ebSEmmanuel Vadot
63*7d0873ebSEmmanuel Vadot        hwmon@2e {
64*7d0873ebSEmmanuel Vadot            compatible = "ti,lm87";
65*7d0873ebSEmmanuel Vadot            reg = <0x2e>;
66*7d0873ebSEmmanuel Vadot            has-temp3;
67*7d0873ebSEmmanuel Vadot            vcc-supply = <&reg_5v0>;
68*7d0873ebSEmmanuel Vadot        };
69*7d0873ebSEmmanuel Vadot    };
70