Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: adt7475: Allow and recommend #pwm-cells = <3>

To make this binding match what is usally used for PWMs, deprecate 4
cells and allow 3 instead.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/77895aec937b6217f513d3b12e7945f1707fd906.1750361514.git.u.kleine-koenig@baylibre.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Uwe Kleine-König and committed by
Guenter Roeck
05a0ffe3 50f16073

+9 -6
+9 -6
Documentation/devicetree/bindings/hwmon/adt7475.yaml
··· 53 53 default: 1 54 54 55 55 "#pwm-cells": 56 - const: 4 56 + oneOf: 57 + - const: 3 58 + - const: 4 59 + deprecated: true 57 60 description: | 58 61 Number of cells in a PWM specifier. 59 62 - 0: The PWM channel ··· 71 68 - 11363636 (88 Hz) 72 69 - 44444 (22 kHz) 73 70 - 2: PWM flags 0 or PWM_POLARITY_INVERTED 74 - - 3: The default PWM duty cycle in nanoseconds 71 + - 3: The default PWM duty cycle in nanoseconds, defaults to period. 75 72 76 73 patternProperties: 77 74 "^adi,bypass-attenuator-in[0-4]$": ··· 127 124 adi,bypass-attenuator-in1 = <0>; 128 125 adi,pin10-function = "smbalert#"; 129 126 adi,pin14-function = "tach4"; 130 - #pwm-cells = <4>; 127 + #pwm-cells = <3>; 131 128 132 - /* PWMs at 22.5 kHz frequency, 50% duty*/ 129 + /* PWMs at 22.5 kHz frequency */ 133 130 fan-0 { 134 - pwms = <&pwm 0 44444 0 22222>; 131 + pwms = <&pwm 0 44444 0>; 135 132 }; 136 133 137 134 fan-1 { 138 - pwms = <&pwm 2 44444 0 22222>; 135 + pwms = <&pwm 2 44444 0>; 139 136 }; 140 137 }; 141 138 };