[openwrt/openwrt] bmips: sercomm,h500-s: add Quantenna gpio switch

LEDE Commits lede-commits at lists.infradead.org
Tue Mar 28 12:06:19 PDT 2023


noltari pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/741780bd938e39a69d757e82d7474ed004dfe9fc

commit 741780bd938e39a69d757e82d7474ed004dfe9fc
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Sun Mar 26 14:38:41 2023 +0200

    bmips: sercomm,h500-s: add Quantenna gpio switch
    
    Sercomm H500-s has a Quantenna SoC for external wifi which can be activated or
    deactivated through GPIO #20.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 .../bmips/nand/base-files/etc/board.d/03_gpio_switches   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches b/target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches
new file mode 100644
index 0000000000..75ac111b0c
--- /dev/null
+++ b/target/linux/bmips/nand/base-files/etc/board.d/03_gpio_switches
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+sercomm,h500-s-lowi |\
+sercomm,h500-s-vfes)
+	ucidef_add_gpio_switch "qtn_power" "Quantenna Module Power" "480" "1"
+	;;
+esac
+
+board_config_flush
+
+exit 0




More information about the lede-commits mailing list