From: John Crispin <john@phrozen.org>
To: "Uwe Kleine-König" <ukleinek@kernel.org>
Cc: 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>,
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: Re: [PATCH 3/3] pwm: airoha: add support for AN7589
Date: Fri, 4 Dec 2026 20:07:33 +0100 [thread overview]
Message-ID: <22814a98-1beb-4763-baf6-753df1e02f33@phrozen.org> (raw)
In-Reply-To: <axE-SRESi4pZFykp@monoceros>
Hi Uwe,
On Thu, Dec 03, 2026 at 11:47:36AM +0100, Uwe Kleine-König wrote:
> > The AN7589 PWM controller has no device tree node of its own. The GPIO
> > system controller MFD driver registers it as a cell. Match the cell by
> > name and use the device tree node of the parent, which is the PWM
> > provider.
>
> Why do we have this difference? And why is the PWM's parent device the
> PWM provider?
This comes from the DT side. Conor did not want a child node for the
PWM since it has no resources of its own [1], and asked for #pwm-cells
on the system controller node with the driver probed through
mfd_add_devices() [2]. I put that into the commit message for v2.
[1] https://lore.kernel.org/r/20261113-fame-smock-6ea3b8fadcd0@spud
[2] https://lore.kernel.org/r/20261117-illicitly-translate-2d16b1279df9@spud
> > +#define AIROHA_PWM_GPIO_FLASH_SET_ID_WIDE GENMASK(3, 0)
>
> What is bit 3 for en7581? If it's reserved and reads as zero, you can
> set it to GENMASK(3, 0) unconditionally.
Sadly not, on the EN7581 bit 3 is the enable bit of the channel
(AIROHA_PWM_GPIO_FLASH_EN, one line above).
The rest is fixed in v2, which I will send tomorrow.
John
prev parent reply other threads:[~2026-12-04 19:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 19:44 [PATCH 0/3] pwm: airoha: add AN7589 support John Crispin
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-03 8:42 ` Uwe Kleine-König
2026-12-03 16:18 ` Lee Jones
2026-12-04 19:43 ` John Crispin
2026-12-01 19:44 ` [PATCH 3/3] pwm: airoha: add support for AN7589 John Crispin
2026-12-03 10:47 ` Uwe Kleine-König
2026-12-04 19:07 ` John Crispin [this message]
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=22814a98-1beb-4763-baf6-753df1e02f33@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
all inboxes | Powered by JetHome®