]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel/modules: add RV3028 I2C RTC kernel module support
authorMartin Schiller <ms@dev.tdt.de>
Mon, 13 Apr 2026 08:44:15 +0000 (10:44 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 1 Jun 2026 15:49:36 +0000 (17:49 +0200)
Add support for the Micro Crystal RV3028 I2C real-time clock chip.

Tested on a Kontron OSM-S/BL i.MX8MP eval board.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
package/kernel/linux/modules/rtc.mk

index dc7f0c78d4ddaba3a98c1b6ffdbd6f4c6a5f5ea4..1613f26e4fc1002438120317ec0331704d24e122 100644 (file)
@@ -221,6 +221,23 @@ endef
 
 $(eval $(call KernelPackage,rtc-rs5c372a))
 
+define KernelPackage/rtc-rv3028
+  SUBMENU:=$(RTC_MENU)
+  TITLE:=Micro Crystal RV3028
+  DEFAULT:=m if ALL_KMODS && RTC_SUPPORT
+  DEPENDS:=+kmod-i2c-core  +kmod-regmap-i2c
+  KCONFIG:=CONFIG_RTC_DRV_RV3028 \
+       CONFIG_RTC_CLASS=y
+  FILES:=$(LINUX_DIR)/drivers/rtc/rtc-rv3028.ko
+  AUTOLOAD:=$(call AutoLoad,50,rtc-rv3028,1)
+endef
+
+define KernelPackage/rtc-rv3028/description
+ Kernel module for Micro Crystal RV3028 I2C RTC chip
+endef
+
+$(eval $(call KernelPackage,rtc-rv3028))
+
 define KernelPackage/rtc-rx8025
   SUBMENU:=$(RTC_MENU)
   TITLE:=Epson RX-8025 / RX-8035