1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/hwmon/maxim,max6639.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Maxim max6639 8 9maintainers: 10 - Naresh Solanki <naresh.solanki@9elements.com> 11 12description: | 13 The MAX6639 is a 2-channel temperature monitor with dual, automatic, PWM 14 fan-speed controller. It monitors its own temperature and one external 15 diode-connected transistor or the temperatures of two external diode-connected 16 transistors, typically available in CPUs, FPGAs, or GPUs. 17 18 Datasheets: 19 https://datasheets.maximintegrated.com/en/ds/MAX6639-MAX6639F.pdf 20 21properties: 22 compatible: 23 enum: 24 - maxim,max6639 25 26 reg: 27 maxItems: 1 28 29 '#address-cells': 30 const: 1 31 32 '#size-cells': 33 const: 0 34 35 '#pwm-cells': 36 const: 3 37 38required: 39 - compatible 40 - reg 41 42patternProperties: 43 "^fan@[0-1]$": 44 type: object 45 description: 46 Represents the two fans and their specific configuration. 47 48 $ref: fan-common.yaml# 49 50 unevaluatedProperties: false 51 52 properties: 53 reg: 54 description: 55 The fan number. 56 57 required: 58 - reg 59 60additionalProperties: false 61 62examples: 63 - | 64 i2c { 65 #address-cells = <1>; 66 #size-cells = <0>; 67 68 fan1: fan-controller@10 { 69 compatible = "maxim,max6639"; 70 reg = <0x10>; 71 #address-cells = <1>; 72 #size-cells = <0>; 73 #pwm-cells = <3>; 74 75 fan@0 { 76 reg = <0x0>; 77 pulses-per-revolution = <2>; 78 max-rpm = <4000>; 79 target-rpm = <1000>; 80 pwms = <&fan1 0 25000 0>; 81 }; 82 83 fan@1 { 84 reg = <0x1>; 85 pulses-per-revolution = <2>; 86 max-rpm = <8000>; 87 pwms = <&fan1 1 25000 0>; 88 }; 89 }; 90 }; 91... 92