From 91fc9698d9c5baad69e43ed16f4e61538e04d0a4 Mon Sep 17 00:00:00 2001 From: Petar Stepanovic Date: Mon, 21 Sep 2026 00:23:55 -0700 Subject: [PATCH] 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 Signed-off-by: Petar Stepanovic Link: https://patch.msgid.link/20260921-axiado-ax3000-pwm-fan-v3-1-3def8b6ffec9@axiado.com Signed-off-by: Guenter Roeck --- .../bindings/hwmon/axiado,ax3000-pwm-fan.yaml | 72 +++++++++++++++++++ MAINTAINERS | 8 +++ 2 files changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml diff --git a/Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml b/Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml new file mode 100644 index 000000000000..76a3e12fc656 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml @@ -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 + - Akhila Kavi + - Prasad Bolisetty + +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 + + fan-controller@33001400 { + compatible = "axiado,ax3000-pwm-fan"; + reg = <0x33001400 0x400>; + interrupts = ; + clocks = <&clk>; + + fan { + pwms = <&pwm0 0 400>; + pulses-per-revolution = <2>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 9712f007eac5..eb3cc6c81bcf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -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 +M: Akhila Kavi +M: Prasad Bolisetty +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 M: Tzu-Hao Wei