xref: /linux/Documentation/devicetree/bindings/hwmon/adt7475.yaml (revision 3d21a46093352f7802b9c66c7cce35cd02a50e53)
1b56400b9SLogan Shaw# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2b56400b9SLogan Shaw%YAML 1.2
3b56400b9SLogan Shaw---
4ce81bd69SRob Herring$id: http://devicetree.org/schemas/hwmon/adt7475.yaml#
5b56400b9SLogan Shaw$schema: http://devicetree.org/meta-schemas/core.yaml#
6b56400b9SLogan Shaw
7b56400b9SLogan Shawtitle: ADT7475 hwmon sensor
8b56400b9SLogan Shaw
9b56400b9SLogan Shawmaintainers:
10b56400b9SLogan Shaw  - Jean Delvare <jdelvare@suse.com>
11b56400b9SLogan Shaw
12b56400b9SLogan Shawdescription: |
13b56400b9SLogan Shaw  The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple
14b56400b9SLogan Shaw  PWN fan controllers.
15b56400b9SLogan Shaw
16b56400b9SLogan Shaw  They support monitoring and controlling up to four fans (the ADT7490 can only
17b56400b9SLogan Shaw  control up to three). They support reading a single on chip temperature
18b56400b9SLogan Shaw  sensor and two off chip temperature sensors (the ADT7490 additionally
19b56400b9SLogan Shaw  supports measuring up to three current external temperature sensors with
20b56400b9SLogan Shaw  series resistance cancellation (SRC)).
21b56400b9SLogan Shaw
22b56400b9SLogan Shaw  Datasheets:
23b56400b9SLogan Shaw  https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF
24b56400b9SLogan Shaw  https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF
25b56400b9SLogan Shaw  https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF
26b56400b9SLogan Shaw  https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF
27b56400b9SLogan Shaw
28b56400b9SLogan Shaw  Description taken from onsemiconductors specification sheets, with minor
29b56400b9SLogan Shaw  rephrasing.
30b56400b9SLogan Shaw
31b56400b9SLogan Shawproperties:
32b56400b9SLogan Shaw  compatible:
33b56400b9SLogan Shaw    enum:
34b56400b9SLogan Shaw      - adi,adt7473
35b56400b9SLogan Shaw      - adi,adt7475
36b56400b9SLogan Shaw      - adi,adt7476
37b56400b9SLogan Shaw      - adi,adt7490
38b56400b9SLogan Shaw
39b56400b9SLogan Shaw  reg:
40b56400b9SLogan Shaw    maxItems: 1
41b56400b9SLogan Shaw
42f8372ec4SLogan ShawpatternProperties:
43f8372ec4SLogan Shaw  "^adi,bypass-attenuator-in[0-4]$":
44f8372ec4SLogan Shaw    description: |
45f8372ec4SLogan Shaw      Configures bypassing the individual voltage input attenuator. If
46f8372ec4SLogan Shaw      set to 1 the attenuator is bypassed if set to 0 the attenuator is
47f8372ec4SLogan Shaw      not bypassed. If the property is absent then the attenuator
48f8372ec4SLogan Shaw      retains it's configuration from the bios/bootloader.
49*3d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
50*3d21a460SRob Herring    enum: [0, 1]
51f8372ec4SLogan Shaw
52ed39ff50SChris Packham  "^adi,pwm-active-state$":
53ed39ff50SChris Packham    description: |
54ed39ff50SChris Packham      Integer array, represents the active state of the pwm outputs If set to 0
55ed39ff50SChris Packham      the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
56ed39ff50SChris Packham      uses a logic high output for 100% duty cycle.
57*3d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32-array
58*3d21a460SRob Herring    minItems: 3
59ed39ff50SChris Packham    maxItems: 3
60ed39ff50SChris Packham    items:
61ed39ff50SChris Packham      enum: [0, 1]
62ed39ff50SChris Packham      default: 1
63ed39ff50SChris Packham
64b56400b9SLogan Shawrequired:
65b56400b9SLogan Shaw  - compatible
66b56400b9SLogan Shaw  - reg
67b56400b9SLogan Shaw
68b56400b9SLogan Shawexamples:
69b56400b9SLogan Shaw  - |
70b56400b9SLogan Shaw    i2c {
71b56400b9SLogan Shaw      #address-cells = <1>;
72b56400b9SLogan Shaw      #size-cells = <0>;
73b56400b9SLogan Shaw
74b56400b9SLogan Shaw      hwmon@2e {
75b56400b9SLogan Shaw        compatible = "adi,adt7476";
76b56400b9SLogan Shaw        reg = <0x2e>;
77f8372ec4SLogan Shaw        adi,bypass-attenuator-in0 = <1>;
78f8372ec4SLogan Shaw        adi,bypass-attenuator-in1 = <0>;
79ed39ff50SChris Packham        adi,pwm-active-state = <1 0 1>;
80b56400b9SLogan Shaw      };
81b56400b9SLogan Shaw    };
82b56400b9SLogan Shaw
83