adt7475.yaml (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | adt7475.yaml (6b1bb53579b0a46c7a2467fffcd23e54e844ff41) |
---|---|
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/hwmon/adt7475.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: ADT7475 hwmon sensor 8 --- 37 unchanged lines hidden (view full) --- 46 uses a logic high output for 100% duty cycle. 47 $ref: /schemas/types.yaml#/definitions/uint32-array 48 minItems: 3 49 maxItems: 3 50 items: 51 enum: [0, 1] 52 default: 1 53 | 1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/hwmon/adt7475.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: ADT7475 hwmon sensor 8 --- 37 unchanged lines hidden (view full) --- 46 uses a logic high output for 100% duty cycle. 47 $ref: /schemas/types.yaml#/definitions/uint32-array 48 minItems: 3 49 maxItems: 3 50 items: 51 enum: [0, 1] 52 default: 1 53 |
54 "#pwm-cells": 55 const: 4 56 description: | 57 Number of cells in a PWM specifier. 58 - 0: The PWM channel 59 - 1: The PWM period in nanoseconds 60 - 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_INVERTED 70 - 3: The default PWM duty cycle in nanoseconds 71 |
|
54patternProperties: 55 "^adi,bypass-attenuator-in[0-4]$": 56 description: | 57 Configures bypassing the individual voltage input attenuator. If 58 set to 1 the attenuator is bypassed if set to 0 the attenuator is 59 not bypassed. If the property is absent then the attenuator 60 retains its configuration from the bios/bootloader. 61 $ref: /schemas/types.yaml#/definitions/uint32 --- 14 unchanged lines hidden (view full) --- 76 pin 14 on the adi,adt7476 and adi,adt7490 77 $ref: /schemas/types.yaml#/definitions/string 78 enum: 79 - tach4 80 - therm# 81 - smbalert# 82 - gpio 83 | 72patternProperties: 73 "^adi,bypass-attenuator-in[0-4]$": 74 description: | 75 Configures bypassing the individual voltage input attenuator. If 76 set to 1 the attenuator is bypassed if set to 0 the attenuator is 77 not bypassed. If the property is absent then the attenuator 78 retains its configuration from the bios/bootloader. 79 $ref: /schemas/types.yaml#/definitions/uint32 --- 14 unchanged lines hidden (view full) --- 94 pin 14 on the adi,adt7476 and adi,adt7490 95 $ref: /schemas/types.yaml#/definitions/string 96 enum: 97 - tach4 98 - therm# 99 - smbalert# 100 - gpio 101 |
102 "^fan-[0-9]+$": 103 $ref: fan-common.yaml# 104 unevaluatedProperties: false 105 |
|
84required: 85 - compatible 86 - reg 87 88additionalProperties: false 89 90examples: 91 - | | 106required: 107 - compatible 108 - reg 109 110additionalProperties: false 111 112examples: 113 - | |
114 #include <dt-bindings/pwm/pwm.h> |
|
92 i2c { 93 #address-cells = <1>; 94 #size-cells = <0>; 95 | 115 i2c { 116 #address-cells = <1>; 117 #size-cells = <0>; 118 |
96 hwmon@2e { | 119 pwm: hwmon@2e { |
97 compatible = "adi,adt7476"; 98 reg = <0x2e>; 99 adi,bypass-attenuator-in0 = <1>; 100 adi,bypass-attenuator-in1 = <0>; 101 adi,pwm-active-state = <1 0 1>; 102 adi,pin10-function = "smbalert#"; 103 adi,pin14-function = "tach4"; | 120 compatible = "adi,adt7476"; 121 reg = <0x2e>; 122 adi,bypass-attenuator-in0 = <1>; 123 adi,bypass-attenuator-in1 = <0>; 124 adi,pwm-active-state = <1 0 1>; 125 adi,pin10-function = "smbalert#"; 126 adi,pin14-function = "tach4"; |
127 #pwm-cells = <4>; 128 129 /* PWMs at 22.5 kHz frequency, 50% duty*/ 130 fan-0 { 131 pwms = <&pwm 0 44444 0 22222>; 132 }; 133 134 fan-1 { 135 pwms = <&pwm 2 44444 0 22222>; 136 }; |
|
104 }; 105 }; | 137 }; 138 }; |