[PATCH v2 0/2] pwm: add Axiado AX3000 PWM support
Petar Stepanovic <[email protected]> Thu, 23 Jul 2026 02:32:17 -0700
| Newsgroups | org.kernel.vger.linux-pwm,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
This series adds support for the PWM controller found on Axiado AX3000 and AX3005 SoCs. A new driver is needed because this PWM controller is a SoC-specific hardware block used on Axiado SoCs. It has its own register layout, enable control, period configuration, duty-cycle configuration, and does not match any existing upstream PWM driver. The controller provides configurable PWM output signals. The driver exposes the controller through the Linux PWM framework and supports period and duty-cycle configuration. The driver converts the requested period and duty cycle from nanoseconds to hardware clock cycles based on the input clock rate. The datasheet is not publicly available. Public high-level product information is available at: https://axiado.com/products/#AX3080 The register definitions and programming sequence used by this driver are based on Axiado internal SoC documentation. Signed-off-by: Petar Stepanovic <[email protected]> --- Changes in v2: - Migrated the driver from the legacy apply/get_state API to the new waveform ops API (round_waveform_tohw/fromhw, read/write_waveform). - Cache the clock rate at probe and lock it with devm_clk_rate_exclusive_get() instead of reading it on every op. - Improved rounding: clamp period/duty to hardware limits, reject non-zero duty offset, preserve exact 100% duty, round sub-cycle duty up to the minimum. - Added a "Limitations" comment block documenting hardware constraints. - Renamed macros from AX_PWM_* to AXIADO_PWM_* and dropped unused ones. - DT binding: dropped clock-names, made #pwm-cells required, and updated the description and compatible list to cover both the AX3000 and AX3005 SoCs. - Added axiado,ax3005-pwm to the driver's OF device match table. - Link to v1: https://lore.kernel.org/r/[email protected] --- Petar Stepanovic (2): dt-bindings: pwm: add Axiado AX3000 PWM pwm: add Axiado AX3000 PWM driver .../devicetree/bindings/pwm/axiado,ax3000-pwm.yaml | 51 ++++ MAINTAINERS | 9 + drivers/pwm/Kconfig | 11 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-axiado.c | 272 +++++++++++++++++++++ 5 files changed, 344 insertions(+) --- base-commit: 368d34807e6d04bb2089918383b58abf40e720a0 change-id: 20260518-axiado-ax3000-pwm-cd7c346849f1 Best regards, -- Petar Stepanovic <[email protected]>