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