From: John Crispin <john@phrozen.org>
To: "Lorenzo Bianconi" <lorenzo@kernel.org>,
"Lee Jones" <lee@kernel.org>, "Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Uwe Kleine-König" <ukleinek@kernel.org>
Cc: Christian Marangi <ansuelsmth@gmail.com>,
devicetree@vger.kernel.org, lei.dong@airoha.com,
Linqi.zhang@airoha.com, linux-kernel@vger.kernel.org,
linux-mediatek@lists.infradead.org, linux-pwm@vger.kernel.org,
mfd@lists.linux.dev, Rajeev.kumar@airoha.com,
upstream@airoha.com, Weifeng.xu@airoha.com,
zhengping.zhang@airoha.com
Subject: [PATCH 0/3] pwm: airoha: add AN7589 support
Date: Tue, 1 Dec 2026 20:44:31 +0100 [thread overview]
Message-ID: <20261201194434.3132187-1-john@phrozen.org> (raw)
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
next reply other threads:[~2026-12-01 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:44 John Crispin [this message]
2026-12-01 19:44 ` [PATCH 1/3] dt-bindings: mfd: airoha: add #pwm-cells to AN7589 gpio-sysctl John Crispin
2026-12-01 19:44 ` [PATCH 2/3] mfd: add Airoha GPIO system controller driver John Crispin
2026-12-01 19:44 ` [PATCH 3/3] pwm: airoha: add support for AN7589 John Crispin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201194434.3132187-1-john@phrozen.org \
--to=john@phrozen.org \
--cc=Linqi.zhang@airoha.com \
--cc=Rajeev.kumar@airoha.com \
--cc=Weifeng.xu@airoha.com \
--cc=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lei.dong@airoha.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-pwm@vger.kernel.org \
--cc=lorenzo@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=robh@kernel.org \
--cc=ukleinek@kernel.org \
--cc=upstream@airoha.com \
--cc=zhengping.zhang@airoha.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox