Path: blob/main/sys/contrib/device-tree/Bindings/hwmon/adt7475.yaml
48375 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/hwmon/adt7475.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ADT7475 hwmon sensor78maintainers:9- Jean Delvare <jdelvare@suse.com>1011description: |12The ADT7473, ADT7475, ADT7476, and ADT7490 are thermal monitors and multiple13PWN fan controllers.1415They support monitoring and controlling up to four fans (the ADT7490 can only16control up to three). They support reading a single on chip temperature17sensor and two off chip temperature sensors (the ADT7490 additionally18supports measuring up to three current external temperature sensors with19series resistance cancellation (SRC)).2021Datasheets:22https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF23https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF24https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF25https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF2627Description taken from onsemiconductors specification sheets, with minor28rephrasing.2930properties:31compatible:32enum:33- adi,adt747334- adi,adt747535- adi,adt747636- adi,adt74903738reg:39maxItems: 14041adi,pwm-active-state:42description: |43Integer array, represents the active state of the pwm outputs If set to 044the pwm uses a logic low output for 100% duty cycle. If set to 1 the pwm45uses a logic high output for 100% duty cycle.46$ref: /schemas/types.yaml#/definitions/uint32-array47deprecated: true48minItems: 349maxItems: 350items:51enum: [0, 1]52default: 15354"#pwm-cells":55const: 456description: |57Number of cells in a PWM specifier.58- 0: The PWM channel59- 1: The PWM period in nanoseconds60- 90909091 (11 Hz)61- 71428571 (14 Hz)62- 45454545 (22 Hz)63- 34482759 (29 Hz)64- 28571429 (35 Hz)65- 22727273 (44 Hz)66- 17241379 (58 Hz)67- 11363636 (88 Hz)68- 44444 (22 kHz)69- 2: PWM flags 0 or PWM_POLARITY_INVERTED70- 3: The default PWM duty cycle in nanoseconds7172patternProperties:73"^adi,bypass-attenuator-in[0-4]$":74description: |75Configures bypassing the individual voltage input attenuator. If76set to 1 the attenuator is bypassed if set to 0 the attenuator is77not bypassed. If the property is absent then the attenuator78retains its configuration from the bios/bootloader.79$ref: /schemas/types.yaml#/definitions/uint3280enum: [0, 1]8182"^adi,pin(5|10)-function$":83description: |84Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or85pin 10 on the adi,adt7476 and adi,adt7490.86$ref: /schemas/types.yaml#/definitions/string87enum:88- pwm289- smbalert#9091"^adi,pin(9|14)-function$":92description: |93Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or94pin 14 on the adi,adt7476 and adi,adt749095$ref: /schemas/types.yaml#/definitions/string96enum:97- tach498- therm#99- smbalert#100- gpio101102"^fan-[0-9]+$":103$ref: fan-common.yaml#104unevaluatedProperties: false105106required:107- compatible108- reg109110additionalProperties: false111112examples:113- |114#include <dt-bindings/pwm/pwm.h>115i2c {116#address-cells = <1>;117#size-cells = <0>;118119pwm: hwmon@2e {120compatible = "adi,adt7476";121reg = <0x2e>;122adi,bypass-attenuator-in0 = <1>;123adi,bypass-attenuator-in1 = <0>;124adi,pin10-function = "smbalert#";125adi,pin14-function = "tach4";126#pwm-cells = <4>;127128/* PWMs at 22.5 kHz frequency, 50% duty*/129fan-0 {130pwms = <&pwm 0 44444 0 22222>;131};132133fan-1 {134pwms = <&pwm 2 44444 0 22222>;135};136};137};138139140