From: Guodong Xu <guodong@riscstar.com>
To: ukleinek@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
dlan@gentoo.org, p.zabel@pengutronix.de, drew@pdp7.com,
inochiama@gmail.com, geert+renesas@glider.be, heylenay@4d2.org,
tglx@linutronix.de, hal.feng@starfivetech.com,
unicorn_wang@outlook.com, duje.mihanovic@skole.hr
Cc: elder@riscstar.com, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
guodong@riscstar.com
Subject: [PATCH v2 0/6] pwm: Update PWM_PXA driver for SpacemiT K1
Date: Sun, 20 Apr 2025 15:02:45 +0800 [thread overview]
Message-ID: <20250420070251.378950-1-guodong@riscstar.com> (raw)
This patchset adds support for the SpacemiT K1 SoC in the PWM_PXA driver
and updates related device tree bindings. The changes enable PWM
functionality on the K1 platform through driver enhancements,
configuration updates, and device tree additions.
Functionality has been verified on the Banana Pi BPI-F3 board using PWM14,
configured as a pwm-backlight. Per community feedback, the actual
pwm-backlight node is not included in this patchset but can be found in
patch 7 of the v1 series.
This patchset is based on the following dependencies:
1. Clock controller driver, posted by Heylen Chu (v8), with
most of it has been accepted:
https://lore.kernel.org/all/20250416135406.16284-1-heylenay@4d2.org/
2. Reset controller driver, posted by Alex Elder (v5):
https://lore.kernel.org/all/20250418145401.2603648-1-elder@riscstar.com/
Major differences between v2 and v1:
- Dropped the addition of spacemit,k1-pwm as a compatible string in the
PWM_PXA driver; instead, it now falls back to marvell,pxa910-pwm.
- Removed pinctrl settings for all PWM nodes (pwm0-pwm14); only the
pwm14_1 configuration is included in this version.
- Changed PWM_PXA from built-in to a loadable module (=m) in the
riscv defconfig.
V2 consists of the following patches:
Patch 1: Add spacemit,k1-pwm compatible string (with fallback to
marvell,pxa910-pwm) and support optional resets property.
Patch 2: Add reset controller support to the PWM_PXA driver.
Patch 3: Add device tree nodes for all 20 PWM instances on K1.
Patch 4: Add pinctrl settings for PWM14.
Patch 5: Add ARCH_SPACEMIT dependency to the PWM_PXA Kconfig entry.
Patch 6: Enable PWM and PWM_PXA in riscv defconfig for SpacemiT K1.
Best regards,
Guodong Xu
v1:
https://lore.kernel.org/all/20250411131423.3802611-1-guodong@riscstar.com/
Guodong Xu (6):
dt-bindings: pwm: marvell,pxa-pwm: Add SpacemiT K1 PWM support
pwm: pxa: add optional reset control
riscv: dts: spacemit: add PWM support for K1 SoC
riscv: dts: spacemit: add pwm14_1 pinctrl setting
pwm: Kconfig: add depends on ARCH_SPACEMIT to PWM_PXA
riscv: defconfig: Enable PWM support for SpacemiT K1 SoC
.../bindings/pwm/marvell,pxa-pwm.yaml | 17 +-
arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi | 7 +
arch/riscv/boot/dts/spacemit/k1.dtsi | 180 ++++++++++++++++++
arch/riscv/configs/defconfig | 2 +
drivers/pwm/Kconfig | 2 +-
drivers/pwm/pwm-pxa.c | 14 +-
6 files changed, 212 insertions(+), 10 deletions(-)
--
2.43.0
next reply other threads:[~2025-04-20 7:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-20 7:02 Guodong Xu [this message]
2025-04-20 7:02 ` [PATCH v2 1/6] dt-bindings: pwm: marvell,pxa-pwm: Add SpacemiT K1 PWM support Guodong Xu
2025-04-23 15:40 ` Rob Herring (Arm)
2025-04-20 7:02 ` [PATCH v2 2/6] pwm: pxa: add optional reset control Guodong Xu
2025-04-24 7:30 ` Uwe Kleine-König
2025-04-28 6:50 ` Guodong Xu
2025-04-20 7:02 ` [PATCH v2 3/6] riscv: dts: spacemit: add PWM support for K1 SoC Guodong Xu
2025-04-20 12:09 ` kernel test robot
2025-04-24 8:18 ` Uwe Kleine-König
2025-04-28 12:46 ` Guodong Xu
2025-04-28 16:32 ` Uwe Kleine-König
2025-04-29 0:41 ` Guodong Xu
2025-04-20 7:02 ` [PATCH v2 4/6] riscv: dts: spacemit: add pwm14_1 pinctrl setting Guodong Xu
2025-04-20 7:02 ` [PATCH v2 5/6] pwm: Kconfig: add depends on ARCH_SPACEMIT to PWM_PXA Guodong Xu
2025-04-20 7:02 ` [PATCH v2 6/6] riscv: defconfig: Enable PWM support for SpacemiT K1 SoC Guodong Xu
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=20250420070251.378950-1-guodong@riscstar.com \
--to=guodong@riscstar.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=drew@pdp7.com \
--cc=duje.mihanovic@skole.hr \
--cc=elder@riscstar.com \
--cc=geert+renesas@glider.be \
--cc=hal.feng@starfivetech.com \
--cc=heylenay@4d2.org \
--cc=inochiama@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=tglx@linutronix.de \
--cc=ukleinek@kernel.org \
--cc=unicorn_wang@outlook.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®