0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/hwmon/adt7475.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ADT7475 hwmon sensor
0008
0009 maintainers:
0010 - Jean Delvare <jdelvare@suse.com>
0011
0012 description: |
0013 The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple
0014 PWN fan controllers.
0015
0016 They support monitoring and controlling up to four fans (the ADT7490 can only
0017 control up to three). They support reading a single on chip temperature
0018 sensor and two off chip temperature sensors (the ADT7490 additionally
0019 supports measuring up to three current external temperature sensors with
0020 series resistance cancellation (SRC)).
0021
0022 Datasheets:
0023 https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF
0024 https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF
0025 https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF
0026 https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF
0027
0028 Description taken from onsemiconductors specification sheets, with minor
0029 rephrasing.
0030
0031 properties:
0032 compatible:
0033 enum:
0034 - adi,adt7473
0035 - adi,adt7475
0036 - adi,adt7476
0037 - adi,adt7490
0038
0039 reg:
0040 maxItems: 1
0041
0042 adi,pwm-active-state:
0043 description: |
0044 Integer array, represents the active state of the pwm outputs If set to 0
0045 the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm
0046 uses a logic high output for 100% duty cycle.
0047 $ref: /schemas/types.yaml#/definitions/uint32-array
0048 minItems: 3
0049 maxItems: 3
0050 items:
0051 enum: [0, 1]
0052 default: 1
0053
0054 patternProperties:
0055 "^adi,bypass-attenuator-in[0-4]$":
0056 description: |
0057 Configures bypassing the individual voltage input attenuator. If
0058 set to 1 the attenuator is bypassed if set to 0 the attenuator is
0059 not bypassed. If the property is absent then the attenuator
0060 retains its configuration from the bios/bootloader.
0061 $ref: /schemas/types.yaml#/definitions/uint32
0062 enum: [0, 1]
0063
0064 "adi,pin(5|10)-function":
0065 description: |
0066 Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or
0067 pin 10 on the adi,adt7476 and adi,adt7490.
0068 $ref: /schemas/types.yaml#/definitions/string
0069 enum:
0070 - pwm2
0071 - smbalert#
0072
0073 "adi,pin(9|14)-function":
0074 description: |
0075 Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or
0076 pin 14 on the adi,adt7476 and adi,adt7490
0077 $ref: /schemas/types.yaml#/definitions/string
0078 enum:
0079 - tach4
0080 - therm#
0081 - smbalert#
0082 - gpio
0083
0084 required:
0085 - compatible
0086 - reg
0087
0088 additionalProperties: false
0089
0090 examples:
0091 - |
0092 i2c {
0093 #address-cells = <1>;
0094 #size-cells = <0>;
0095
0096 hwmon@2e {
0097 compatible = "adi,adt7476";
0098 reg = <0x2e>;
0099 adi,bypass-attenuator-in0 = <1>;
0100 adi,bypass-attenuator-in1 = <0>;
0101 adi,pwm-active-state = <1 0 1>;
0102 adi,pin10-function = "smbalert#";
0103 adi,pin14-function = "tach4";
0104 };
0105 };