[PATCH 0/3] pwm: airoha: add AN7589 support

From: John Crispin

Date: Tue Dec 01 2026 - 14:45:12 EST


The AN7589 PWM block is the EN7581 one with two differences: the flash
set-id of a channel is 4 bits wide instead of 3, and the channel enable
moved into a register of its own with one bit per channel.

The PWM controller lives in the GPIO system controller next to the pin
controller. It has no resources of its own, so following Conor's
comment on the pinctrl binding [1] it gets no child node and the system
controller node itself carries #pwm-cells.

Patch 1 adds #pwm-cells to the system controller binding. Patch 2 adds
a small MFD driver that registers the PWM controller as a cell, and
patch 3 teaches the PWM driver the AN7589 layout and lets it probe as
that cell.

Based on next-20261201, which has the AN7589 pinctrl series and with it
the GPIO system controller binding.

[1] https://lore.kernel.org/r/20261117-illicitly-translate-2d16b1279df9@spud

John Crispin (3):
dt-bindings: mfd: airoha: add #pwm-cells to AN7589 gpio-sysctl
mfd: add Airoha GPIO system controller driver
pwm: airoha: add support for AN7589

.../mfd/airoha,an7589-gpio-sysctl.yaml | 6 +-
MAINTAINERS | 1 +
drivers/mfd/Kconfig | 11 ++
drivers/mfd/Makefile | 1 +
drivers/mfd/airoha-gpio-sysctl.c | 43 +++++++
drivers/pwm/pwm-airoha.c | 116 ++++++++++++++++--
6 files changed, 165 insertions(+), 13 deletions(-)
create mode 100644 drivers/mfd/airoha-gpio-sysctl.c


base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
--
2.34.1