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

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) <robh@kernel.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Link: https://lore.kernel.org/r/20250629220757.936212-2-marek.vasut+renesas@mailbox.org
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Marek Vasut and committed by
Uwe Kleine-König
f6bd99a2 6fdd4d8c

+48
+48
Documentation/devicetree/bindings/pwm/argon40,fan-hat.yaml
··· 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 <marek.vasut+renesas@mailbox.org> 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 + };