Messages in this thread |  | | From | Guodong Xu <> | | Subject | [PATCH 0/9] pwm: Update PWM_PXA driver for SpacemiT K1 | | Date | Fri, 11 Apr 2025 21:14:14 +0800 |
| |
This patchset updates the PWM_PXA driver and related device tree bindings to support the SpacemiT K1 SoC. The changes include modifications to driver support, configuration options, and device tree bindings, enabling PWM functionality on the SpacemiT K1 platform.
It has been verified on the Banana Pi BPI-F3 board using PWM14, which is specified as a pwm-backlight. The related device tree nodes are set to "disabled" in patch 7, as a reference for future use when the display driver is upstreamed and can be enabled all-together.
It is built upon: 1) the clock controller driver that Haylen Chu currently has sent out for review at v6: https://lore.kernel.org/lkml/20250401172434.6774-1-heylenay@4d2.org/ 2) the reset controller driver that Alex Elder currently has sent for review at v3: https://lore.kernel.org/lkml/20250409211741.1171584-1-elder@riscstar.com/
It consists of the following patches: Patch 1: Add optional resets property to PXA PWM bindings. Patch 2: Add reset control support in the PXA PWM driver. Patch 3: Add spacemit,k1-pwm compatible string to DT bindings. Patch 4: Extend PXA PWM driver to support SpacemiT K1. Patch 5: Add 20 PWM nodes for K1 in the device tree. Patch 6: Add pinctrl settings for PWM0 to PWM19. Patch 7: Add PWM14 backlight support for BPI-F3 board. Patch 8: Add ARCH_SPACEMIT dependency to PWM_PXA Kconfig. Patch 9: Enable PWM and PWM_PXA in riscv defconfig for SpacemiT K1.
- Guodong Xu
Guodong Xu (9): dt-bindings: pwm: marvell,pxa: add optional property resets pwm: pxa: add optional reset control dt-bindings: pwm: marvell,pxa: add support to spacemit K1 pwm: pxa: add support for spacemit K1 riscv: dts: spacemit: add PWM support for K1 SoC riscv: dts: spacemit: Add pinctrl configurations for PWM0-PWM19 riscv: dts: spacemit: Add PWM14 backlight support for BPI-F3 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 | 4 + .../boot/dts/spacemit/k1-bananapi-f3.dts | 32 ++ arch/riscv/boot/dts/spacemit/k1-pinctrl.dtsi | 315 ++++++++++++++++++ arch/riscv/boot/dts/spacemit/k1.dtsi | 180 ++++++++++ arch/riscv/configs/defconfig | 2 + drivers/pwm/Kconfig | 2 +- drivers/pwm/pwm-pxa.c | 16 +- 7 files changed, 546 insertions(+), 5 deletions(-)
-- 2.43.0
|  |