[openwrt/openwrt] kernel: modules: package userspace consumer regulator

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 12 16:04:06 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/e73570a113ca7a732a5edf9254b67ee3fd93c2e0

commit e73570a113ca7a732a5edf9254b67ee3fd93c2e0
Author: Tomasz Maciej Nowak <tmn505 at gmail.com>
AuthorDate: Thu May 29 22:15:15 2025 +0200

    kernel: modules: package userspace consumer regulator
    
    Allows to enable/disable attached regulators from userspace, i.e. by
    simply writing value to a sysfs exported state file. Useful in case of
    USB port VBUS toggled by GPIO.
    
    Signed-off-by: Tomasz Maciej Nowak <tmn505 at gmail.com>
    Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250529202033.28250-1-tmn505@terefe.re/
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/other.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 94731a5af5..53b1043a53 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -1063,3 +1063,20 @@ define KernelPackage/mhi-pci-generic/description
 endef
 
 $(eval $(call KernelPackage,mhi-pci-generic))
+
+
+define KernelPackage/regulator-userspace-consumer
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Userspace regulator consumer support
+  KCONFIG:=CONFIG_REGULATOR_USERSPACE_CONSUMER
+  FILES:=$(LINUX_DIR)/drivers/regulator/userspace-consumer.ko
+  AUTOLOAD:=$(call AutoLoad,10,userspace-consumer,1)
+endef
+
+define KernelPackage/regulator-userspace-consumer/description
+  There are some classes of devices that are controlled entirely
+  from user space. Userspace consumer driver provides ability to
+  control power supplies for such devices.
+endef
+
+$(eval $(call KernelPackage,regulator-userspace-consumer))




More information about the lede-commits mailing list