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

dt-bindings: hwmon: g76x: Add support for g761

Add support for g761 PWM Fan controller. This is an exact copy of g763
with the difference that it does also support an internal clock
oscillator.

With clocks property not defined, the internal clock oscillator is used.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240604164348.542-2-ansuelsmth@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Christian Marangi and committed by
Guenter Roeck
302fdb16 3d8e2537

+26 -3
+26 -3
Documentation/devicetree/bindings/hwmon/gmt,g762.yaml
··· 4 4 $id: http://devicetree.org/schemas/hwmon/gmt,g762.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: GMT G762/G763 PWM Fan controller 7 + title: GMT G761/G762/G763 PWM Fan controller 8 8 9 9 maintainers: 10 10 - Christian Marangi <ansuelsmth@gmail.com> 11 11 12 12 description: | 13 - GMT G762/G763 PWM Fan controller. 13 + GMT G761/G762/G763 PWM Fan controller. 14 + 15 + G761 supports an internal-clock hence the clocks property is optional. 16 + If not defined, internal-clock will be used. (31KHz is the clock of 17 + the internal crystal oscillator) 14 18 15 19 If an optional property is not set in DT, then current value is kept 16 20 unmodified (e.g. bootloader installed value). ··· 26 22 properties: 27 23 compatible: 28 24 enum: 25 + - gmt,g761 29 26 - gmt,g762 30 27 - gmt,g763 31 28 ··· 56 51 required: 57 52 - compatible 58 53 - reg 59 - - clocks 54 + 55 + if: 56 + properties: 57 + compatible: 58 + contains: 59 + enum: 60 + - gmt,g762 61 + - gmt,g763 62 + then: 63 + required: 64 + - clocks 60 65 61 66 additionalProperties: false 62 67 ··· 80 65 compatible = "gmt,g762"; 81 66 reg = <0x3e>; 82 67 clocks = <&g762_clk>; 68 + fan_gear_mode = <0>; 69 + fan_startv = <1>; 70 + pwm_polarity = <0>; 71 + }; 72 + 73 + g761@1e { 74 + compatible = "gmt,g761"; 75 + reg = <0x1e>; 83 76 fan_gear_mode = <0>; 84 77 fan_startv = <1>; 85 78 pwm_polarity = <0>;