[PATCH 1/2] dt-bindings: hwmon: add Axiado AX3000 and AX3005 PWM fan controller
Petar Stepanovic <[email protected]> Thu, 06 Aug 2026 02:01:29 -0700
| Newsgroups | org.kernel.vger.linux-hwmon,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pwm |
|---|---|
| Message-ID | <[email protected]> |
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. Signed-off-by: Petar Stepanovic <[email protected]> --- .../bindings/hwmon/axiado,ax3000-pwm-fan.yaml | 68 ++++++++++++++++++++++ MAINTAINERS | 8 +++ 2 files changed, 76 insertions(+) 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..a985f49bbdcd --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml @@ -0,0 +1,68 @@ +# 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 <[email protected]> + - Akhila Kavi <[email protected]> + - Prasad Bolisetty <[email protected]> + +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 + + pwms: + maxItems: 1 + description: + PWM specifier used to control fan speed. + + pulses-per-revolution: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + default: 2 + description: + Number of tachometer pulses generated per fan revolution. + +required: + - compatible + - reg + - interrupts + - clocks + - pwms + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/arm-gic.h> + + fan@33001400 { + compatible = "axiado,ax3000-pwm-fan"; + reg = <0x0 0x33001400 0x0 0x400>; + interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk>; + pwms = <&pwm0 0 400>; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index a674e36529f7..f528b1a42e0f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4457,6 +4457,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 <[email protected]> +M: Akhila Kavi <[email protected]> +M: Prasad Bolisetty <[email protected]> +L: [email protected] +S: Supported +F: Documentation/devicetree/bindings/hwmon/axiado,ax3000-pwm-fan.yaml + AXIADO SPI DB DRIVER M: Vladimir Moravcevic <[email protected]> M: Tzu-Hao Wei <[email protected]> -- 2.34.1