From: Caleb James DeLisle Date: Mon, 25 May 2026 12:59:36 +0000 (+0000) Subject: econet: add GPIO/LEDs and mtd-concat support to EN751221 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da78b5a384216860d488f98efd9bf63a454f3aea;p=thirdparty%2Fopenwrt.git econet: add GPIO/LEDs and mtd-concat support to EN751221 In prep for more fully supporting EN751221, add GPIO, LED, and mtd-concat. Signed-off-by: Caleb James DeLisle Link: https://github.com/openwrt/openwrt/pull/23533 Signed-off-by: Jonas Jelonek --- diff --git a/target/linux/econet/Makefile b/target/linux/econet/Makefile index a895827ef97..d01b70e9cd6 100644 --- a/target/linux/econet/Makefile +++ b/target/linux/econet/Makefile @@ -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)) diff --git a/target/linux/econet/dts/en751221.dtsi b/target/linux/econet/dts/en751221.dtsi index 7b749f88af0..1941845e7ea 100644 --- a/target/linux/econet/dts/en751221.dtsi +++ b/target/linux/econet/dts/en751221.dtsi @@ -297,6 +297,26 @@ 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>; diff --git a/target/linux/econet/en751221/config-6.18 b/target/linux/econet/en751221/config-6.18 index 523f5454ddd..ae5449dd79c 100644 --- a/target/linux/econet/en751221/config-6.18 +++ b/target/linux/econet/en751221/config-6.18 @@ -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