[PATCH 1/2] kernel: modules: package userspace consumer regulator
Tomasz Maciej Nowak
tmn505 at terefe.re
Sun Feb 2 07:10:27 PST 2025
From: Tomasz Maciej Nowak <tmn505 at gmail.com>
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>
---
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 7b64985fd69e..c7c96e9adfdf 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -1152,3 +1152,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 AutoProbe,userspace-consumer)
+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))
--
2.48.1
More information about the openwrt-devel
mailing list