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 <cjd@cjdns.fr>
Link: https://github.com/openwrt/openwrt/pull/23533
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Caleb James DeLisle 2026-05-25 12:59:36 +00:00 committed by Jonas Jelonek
parent bd7188a81e
commit da78b5a384
No known key found for this signature in database
3 changed files with 28 additions and 2 deletions

View 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))

View file

@ -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>;

View 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