--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "mt7620a_zbtlink_zbt-we1026-h.dtsi"
+
+/ {
+ compatible = "zbtlink,zbt-we1026-h-32m", "zbtlink,zbt-we1026-h",
+ "zbtlink,zbt-we1026", "ralink,mt7620a-soc";
+ model = "Zbtlink ZBT-WE1026-H (32M)";
+};
+
+&firmware {
+ reg = <0x50000 0x1fb0000>;
+};
--- /dev/null
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/dts-v1/;
+
+#include "mt7620a_zbtlink_zbt-we1026.dtsi"
+
+/ {
+ compatible = "zbtlink,zbt-we1026-h", "zbtlink,zbt-we1026",
+ "ralink,mt7620a-soc";
+
+ leds {
+ compatible = "gpio-leds";
+
+ usb {
+ label = "we1026-h:green:usb";
+ gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
+ };
+
+ lan {
+ label = "we1026-h:green:lan";
+ gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
+ };
+
+ wan {
+ label = "we1026-h:green:wan";
+ gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
+ };
+
+ wifi {
+ label = "we1026-h:green:wifi";
+ gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+ };
+ };
+};
endef
TARGET_DEVICES += zbtlink_zbt-we1026-5g-16m
+define Device/zbtlink_zbt-we1026-h-32m
+ MTK_SOC := mt7620a
+ IMAGE_SIZE := 32448k
+ DEVICE_VENDOR := Zbtlink
+ DEVICE_MODEL := ZBT-WE1026-H
+ DEVICE_VARIANT := 32M
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 \
+ kmod-ledtrig-netdev
+endef
+TARGET_DEVICES += zbtlink_zbt-we1026-h-32m
+
define Device/zbtlink_zbt-we2026
MTK_SOC := mt7620n
IMAGE_SIZE := 7552k
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
set_wifi_led "we1026-5g:green:wifi"
;;
+zbtlink,zbt-we1026-h-32m)
+ set_wifi_led "we1026-h:green:wifi"
+ ucidef_set_led_switch "lan" "lan" "we1026-h:green:lan" "switch0" "0x8"
+ ucidef_set_led_switch "wan" "wan" "we1026-h:green:wan" "switch0" "0x10"
+ ;;
zbtlink,zbt-we2026)
set_wifi_led "$boardname:green:wlan"
;;
ucidef_add_switch "switch0" \
"0:lan" "6t@eth0"
;;
+ zbtlink,zbt-we1026-h-32m)
+ ucidef_add_switch "switch0" \
+ "3:lan" "4:wan" "6@eth0"
+ ;;
zbtlink,zbt-we2026)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6@eth0"
zbtlink,zbt-we1026-5g-16m)
label_mac=$(cat /sys/class/ieee80211/phy1/macaddress)
;;
+ zbtlink,zbt-we1026-h-32m)
+ wan_mac=$(mtd_get_mac_binary factory 0x2e)
+ label_mac=$(cat /sys/class/ieee80211/phy0/macaddress)
+ ;;
zyxel,keenetic-omni|\
zyxel,keenetic-omni-ii|\
zyxel,keenetic-viva)