Skip to content

Commit f6bd99a

Browse files
Marek VasutUwe Kleine-König
authored andcommitted
dt-bindings: pwm: argon40,fan-hat: Document Argon40 Fan HAT
Document trivial PWM on Argon40 Fan HAT, which is a RaspberryPi blower fan hat which can be controlled over I2C. Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
1 parent 6fdd4d8 commit f6bd99a

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pwm/argon40,fan-hat.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Argon40 Fan HAT PWM controller
8+
9+
maintainers:
10+
- Marek Vasut <[email protected]>
11+
12+
description:
13+
The trivial PWM on Argon40 Fan HAT, which is a RaspberryPi blower fan
14+
hat which can be controlled over I2C, generates a fixed 30 kHz period
15+
PWM signal with configurable 0..100% duty cycle to control the fan
16+
speed.
17+
18+
allOf:
19+
- $ref: pwm.yaml#
20+
21+
properties:
22+
compatible:
23+
const: argon40,fan-hat
24+
25+
reg:
26+
maxItems: 1
27+
28+
"#pwm-cells":
29+
const: 3
30+
31+
required:
32+
- compatible
33+
- reg
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
i2c {
40+
#address-cells = <1>;
41+
#size-cells = <0>;
42+
43+
pwm@1a {
44+
compatible = "argon40,fan-hat";
45+
reg = <0x1a>;
46+
#pwm-cells = <3>;
47+
};
48+
};

0 commit comments

Comments
 (0)