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