]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
econet: add GPIO/LEDs and mtd-concat support to EN751221
authorCaleb James DeLisle <cjd@cjdns.fr>
Mon, 25 May 2026 12:59:36 +0000 (12:59 +0000)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Wed, 22 Jul 2026 15:11:23 +0000 (17:11 +0200)
In prep for more fully supporting EN751221, add GPIO, LED, and
mtd-concat.

Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr>
Link: https://github.com/openwrt/openwrt/pull/23533
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/econet/Makefile
target/linux/econet/dts/en751221.dtsi
target/linux/econet/en751221/config-6.18

index a895827ef971196e63bf103c8e2d9e88ecbaa1a7..d01b70e9cd6a5e47626f9bac604df06f085eb6d2 100644 (file)
@@ -19,6 +19,9 @@ endef
 include $(INCLUDE_DIR)/target.mk
 
 # nand-utils is used by base-files/sbin/en75_chboot
-DEFAULT_PACKAGES += nand-utils kmod-econet-eth
+DEFAULT_PACKAGES += nand-utils \
+       kmod-econet-eth \
+       kmod-leds-gpio \
+       gpio-button-hotplug
 
 $(eval $(call BuildTarget))
index 7b749f88af08c42919f49f643f71ff2685c57ec7..1941845e7ea49873539430073ce18a1223dcdec1 100644 (file)
                clock-frequency = <1843200>;
        };
 
+       gpio0: gpio@1fbf0200 {
+               compatible = "airoha,en7523-gpio";
+               reg = <0x1fbf0204 0x4>,
+                     <0x1fbf0200 0x4>,
+                     <0x1fbf0220 0x4>,
+                     <0x1fbf0214 0x4>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
+       gpio1: gpio@1fbf0270 {
+               compatible = "airoha,en7523-gpio";
+               reg = <0x1fbf0270 0x4>,
+                     <0x1fbf0260 0x4>,
+                     <0x1fbf0264 0x4>,
+                     <0x1fbf0278 0x4>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
+
        timer_hpt: timer@1fbf0400 {
                compatible = "econet,en751221-timer";
                reg = <0x1fbf0400 0x100>;
index 523f5454ddd20e573bbd2e5fdd729286eef5b3f6..ae5449dd79c4573dc2ac56cd9325db72248fb225 100644 (file)
@@ -73,8 +73,10 @@ CONFIG_GENERIC_PHY=y
 CONFIG_GENERIC_SCHED_CLOCK=y
 CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_GENERIC_TIME_VSYSCALL=y
+CONFIG_GPIOLIB_IRQCHIP=y
 CONFIG_GPIO_CDEV=y
-# CONFIG_GPIO_EN7523 is not set
+CONFIG_GPIO_EN7523=y
+CONFIG_GPIO_GENERIC=y
 CONFIG_HARDWARE_WATCHPOINTS=y
 CONFIG_HAS_DMA=y
 CONFIG_HAS_IOMEM=y
@@ -115,6 +117,7 @@ CONFIG_MTD_UBI=y
 CONFIG_MTD_UBI_BEB_LIMIT=13
 CONFIG_MTD_UBI_BLOCK=y
 CONFIG_MTD_UBI_WL_THRESHOLD=4096
+CONFIG_MTD_VIRT_CONCAT=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NEED_SRCU_NMI_SAFE=y
 CONFIG_NET_EGRESS=y