Currently, Buffalo wzr-hp-g300nh uses a driver that is developed specificly for NXP 74HC153 dual 4-way multiplexer. It's being used for several different buttons on the device casing. Replace that driver with a generic gpio-cascade driver that is in the process of being upstreamed.
All comments are welcome but I would need someone to have a look at the AUTOLOAD clauses in the kernel package makefiles. The way they are specified currently allows loading modules early enough for using the reset key for entering the failsafe. Nevertheless, it's a copypaste without much understanding what goes where and there could be room for improvements. Thanks, Mauri Mauri Sandberg (6): kernel: 5.4: backport gpio-cascade and config symbols kernel: 5.10: backport gpio-cascade and related symbols kernel: add package kmod-multiplexer kernel: add package kmod-gpio-cascade ath79: use gpio-cascade for Buffalo WZR-HP-G300NH gpio-nxp-74hc153: remove package package/kernel/gpio-nxp-74hc153/Makefile | 35 --- package/kernel/gpio-nxp-74hc153/src/Makefile | 1 - .../gpio-nxp-74hc153/src/gpio-nxp-74hc153.c | 291 ------------------ package/kernel/linux/modules/gpio-cascade.mk | 20 ++ package/kernel/linux/modules/multiplexer.mk | 34 ++ .../dts/ar9132_buffalo_wzr-hp-g300nh.dtsi | 41 ++- target/linux/ath79/image/generic.mk | 2 +- target/linux/generic/config-5.10 | 6 + target/linux/generic/config-5.4 | 6 + ...pio-cascade-add-generic-GPIO-cascade.patch | 232 ++++++++++++++ ...pio-cascade-add-generic-GPIO-cascade.patch | 241 +++++++++++++++ 11 files changed, 571 insertions(+), 338 deletions(-) delete mode 100644 package/kernel/gpio-nxp-74hc153/Makefile delete mode 100644 package/kernel/gpio-nxp-74hc153/src/Makefile delete mode 100644 package/kernel/gpio-nxp-74hc153/src/gpio-nxp-74hc153.c create mode 100644 package/kernel/linux/modules/gpio-cascade.mk create mode 100644 package/kernel/linux/modules/multiplexer.mk create mode 100644 target/linux/generic/pending-5.10/801-gpio-gpio-cascade-add-generic-GPIO-cascade.patch create mode 100644 target/linux/generic/pending-5.4/801-gpio-gpio-cascade-add-generic-GPIO-cascade.patch base-commit: db34b93331e91bdb2cbc15d17632aaaab7217a6d -- 2.25.1 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel