[openwrt/openwrt] kernel: modules: add PWM GPIO module

LEDE Commits lede-commits at lists.infradead.org
Thu Sep 25 12:53:57 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/7f08a9c1db29be4d36ec83c09a1f8cab5f433654

commit 7f08a9c1db29be4d36ec83c09a1f8cab5f433654
Author: Robert Marko <robert.marko at sartura.hr>
AuthorDate: Thu Sep 25 11:18:56 2025 +0200

    kernel: modules: add PWM GPIO module
    
    Package the generic kernel PWM GPIO driver as module to avoid the need
    to build it into the kernel.
    
    Signed-off-by: Robert Marko <robert.marko at sartura.hr>
    Link: https://github.com/openwrt/openwrt/pull/20160
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/linux/modules/gpio.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/gpio.mk b/package/kernel/linux/modules/gpio.mk
index fc6ab66ba8..11a92192f6 100644
--- a/package/kernel/linux/modules/gpio.mk
+++ b/package/kernel/linux/modules/gpio.mk
@@ -137,3 +137,20 @@ define KernelPackage/gpio-pcf857x/description
 endef
 
 $(eval $(call KernelPackage,gpio-pcf857x))
+
+
+define KernelPackage/gpio-pwm
+  SUBMENU:=$(GPIO_MENU)
+  DEPENDS:=@GPIO_SUPPORT @PWM_SUPPORT
+  TITLE:=PWM GPIO support
+  KCONFIG:=CONFIG_PWM_GPIO
+  FILES:=$(LINUX_DIR)/drivers/pwm/pwm-gpio.ko
+  AUTOLOAD:=$(call AutoProbe,pwm-gpio)
+endef
+
+define KernelPackage/gpio-pwm/description
+ Generic PWM framework driver for software PWM toggling a GPIO pin from
+ kernel high-resolution timers.
+endef
+
+$(eval $(call KernelPackage,gpio-pwm))




More information about the lede-commits mailing list