Path: blob/master/Documentation/devicetree/bindings/hwmon/adt7475.yaml
26308 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":55oneOf:56- const: 357- const: 458deprecated: true59description: |60Number of cells in a PWM specifier.61- 0: The PWM channel62- 1: The PWM period in nanoseconds63- 90909091 (11 Hz)64- 71428571 (14 Hz)65- 45454545 (22 Hz)66- 34482759 (29 Hz)67- 28571429 (35 Hz)68- 22727273 (44 Hz)69- 17241379 (58 Hz)70- 11363636 (88 Hz)71- 44444 (22 kHz)72- 2: PWM flags 0 or PWM_POLARITY_INVERTED73- 3: The default PWM duty cycle in nanoseconds, defaults to period.7475patternProperties:76"^adi,bypass-attenuator-in[0-4]$":77description: |78Configures bypassing the individual voltage input attenuator. If79set to 1 the attenuator is bypassed if set to 0 the attenuator is80not bypassed. If the property is absent then the attenuator81retains its configuration from the bios/bootloader.82$ref: /schemas/types.yaml#/definitions/uint3283enum: [0, 1]8485"^adi,pin(5|10)-function$":86description: |87Configures the function for pin 5 on the adi,adt7473 and adi,adt7475. Or88pin 10 on the adi,adt7476 and adi,adt7490.89$ref: /schemas/types.yaml#/definitions/string90enum:91- pwm292- smbalert#9394"^adi,pin(9|14)-function$":95description: |96Configures the function for pin 9 on the adi,adt7473 and adi,adt7475. Or97pin 14 on the adi,adt7476 and adi,adt749098$ref: /schemas/types.yaml#/definitions/string99enum:100- tach4101- therm#102- smbalert#103- gpio104105"^fan-[0-9]+$":106$ref: fan-common.yaml#107unevaluatedProperties: false108109required:110- compatible111- reg112113additionalProperties: false114115examples:116- |117#include <dt-bindings/pwm/pwm.h>118i2c {119#address-cells = <1>;120#size-cells = <0>;121122pwm: hwmon@2e {123compatible = "adi,adt7476";124reg = <0x2e>;125adi,bypass-attenuator-in0 = <1>;126adi,bypass-attenuator-in1 = <0>;127adi,pin10-function = "smbalert#";128adi,pin14-function = "tach4";129#pwm-cells = <3>;130131/* PWMs at 22.5 kHz frequency */132fan-0 {133pwms = <&pwm 0 44444 0>;134};135136fan-1 {137pwms = <&pwm 2 44444 0>;138};139};140};141142143