dt-bindings: hwmon: add Axiado AX3000 and AX3005 PWM fan controller

Add a Devicetree binding for the PWM fan controller found on the
Axiado AX3000 and AX3005 SoCs.

The controller measures fan speed using a hardware tachometer block.
Fan speed is controlled through a PWM signal supplied by an external
PWM controller.

Add a MAINTAINERS entry for the binding.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Petar Stepanovic <pstepanovic@axiado.com>
Link: https://patch.msgid.link/20260921-axiado-ax3000-pwm-fan-v3-1-3def8b6ffec9@axiado.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Petar Stepanovic 2026-09-21 00:23:55 -07:00 committed by Guenter Roeck
parent 3f02ddc377
commit 91fc9698d9
2 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,72 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/hwmon/axiado,ax3000-pwm-fan.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Axiado AX3000 and AX3005 PWM Fan Controller
maintainers:
- Petar Stepanovic <pstepanovic@axiado.com>
- Akhila Kavi <akavi@axiado.com>
- Prasad Bolisetty <pbolisetty@axiado.com>
description:
The Axiado AX3000 and AX3005 fan controllers use a hardware tachometer
block to measure fan speed. Fan speed is controlled through a PWM signal
supplied by an external PWM controller.
properties:
compatible:
oneOf:
- const: axiado,ax3000-pwm-fan
- items:
- const: axiado,ax3005-pwm-fan
- const: axiado,ax3000-pwm-fan
reg:
maxItems: 1
interrupts:
maxItems: 1
clocks:
maxItems: 1
fan:
type: object
$ref: fan-common.yaml#
unevaluatedProperties: false
properties:
pulses-per-revolution:
minimum: 1
default: 2
required:
- pwms
required:
- compatible
- reg
- interrupts
- clocks
- fan
additionalProperties: false
examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
fan-controller@33001400 {
compatible = "axiado,ax3000-pwm-fan";
reg = <0x33001400 0x400>;
interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk>;
fan {
pwms = <&pwm0 0 400>;
pulses-per-revolution = <2>;
};
};
...

View File

@ -4497,6 +4497,14 @@ W: https://ez.analog.com/linux-software-drivers
F: Documentation/devicetree/bindings/pwm/adi,axi-pwmgen.yaml
F: drivers/pwm/pwm-axi-pwmgen.c
AXIADO PWM FAN CONTROLLER DRIVER
M: Petar Stepanovic <pstepanovic@axiado.com>
M: Akhila Kavi <akavi@axiado.com>
M: Prasad Bolisetty <pbolisetty@axiado.com>
L: linux-hwmon@vger.kernel.org
S: Supported
F: Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml
AXIADO SPI DB DRIVER
M: Vladimir Moravcevic <vmoravcevic@axiado.com>
M: Tzu-Hao Wei <twei@axiado.com>