Skip to content

Commit

Permalink
dt-bindings: hwmon: g76x: Add support for g761
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
Ansuel authored and groeck committed Jun 4, 2024
1 parent 3d8e253 commit 302fdb1
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions Documentation/devicetree/bindings/hwmon/gmt,g762.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
$id: http://devicetree.org/schemas/hwmon/gmt,g762.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: GMT G762/G763 PWM Fan controller
title: GMT G761/G762/G763 PWM Fan controller

maintainers:
- Christian Marangi <[email protected]>

description: |
GMT G762/G763 PWM Fan controller.
GMT G761/G762/G763 PWM Fan controller.
G761 supports an internal-clock hence the clocks property is optional.
If not defined, internal-clock will be used. (31KHz is the clock of
the internal crystal oscillator)
If an optional property is not set in DT, then current value is kept
unmodified (e.g. bootloader installed value).
Expand All @@ -22,6 +26,7 @@ description: |
properties:
compatible:
enum:
- gmt,g761
- gmt,g762
- gmt,g763

Expand Down Expand Up @@ -51,7 +56,17 @@ properties:
required:
- compatible
- reg
- clocks

if:
properties:
compatible:
contains:
enum:
- gmt,g762
- gmt,g763
then:
required:
- clocks

additionalProperties: false

Expand All @@ -69,4 +84,12 @@ examples:
fan_startv = <1>;
pwm_polarity = <0>;
};
g761@1e {
compatible = "gmt,g761";
reg = <0x1e>;
fan_gear_mode = <0>;
fan_startv = <1>;
pwm_polarity = <0>;
};
};

0 comments on commit 302fdb1

Please sign in to comment.