mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 16:35:44 +00:00
ramips: add ZBT-WE826 32MB variant
The ZBT-WG826 is available with 16 or 32 MByte of flash. Split the device tree source file, rename the currently supported 16 MByte version and add the 32 MByte variant. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
parent
3cfc909c54
commit
2ddaf96a77
@ -395,10 +395,11 @@ zbt-wa05)
|
|||||||
zbt-we2026)
|
zbt-we2026)
|
||||||
set_wifi_led "$board:green:wlan"
|
set_wifi_led "$board:green:wlan"
|
||||||
;;
|
;;
|
||||||
zbt-we826)
|
zbt-we826-16M|\
|
||||||
ucidef_set_led_default "power" "power" "$board:green:power" "1"
|
zbt-we826-32M)
|
||||||
set_wifi_led "$board:green:wifi"
|
ucidef_set_led_default "power" "power" "zbt-we826:green:power" "1"
|
||||||
set_usb_led "$board:green:usb"
|
set_wifi_led "zbt-we826:green:wifi"
|
||||||
|
set_usb_led "zbt-we826:green:usb"
|
||||||
;;
|
;;
|
||||||
zbt-wr8305rt)
|
zbt-wr8305rt)
|
||||||
ucidef_set_led_default "power" "power" "$board:green:sys" "1"
|
ucidef_set_led_default "power" "power" "$board:green:sys" "1"
|
||||||
|
@ -112,7 +112,8 @@ ramips_setup_interfaces()
|
|||||||
youku-yk1|\
|
youku-yk1|\
|
||||||
zbt-ape522ii|\
|
zbt-ape522ii|\
|
||||||
zbt-we1326|\
|
zbt-we1326|\
|
||||||
zbt-we826|\
|
zbt-we826-16M|\
|
||||||
|
zbt-we826-32M|\
|
||||||
zbt-wg2626|\
|
zbt-wg2626|\
|
||||||
zbt-wg3526-16M|\
|
zbt-wg3526-16M|\
|
||||||
zbt-wg3526-32M|\
|
zbt-wg3526-32M|\
|
||||||
|
@ -189,8 +189,7 @@ get_status_led() {
|
|||||||
status_led="$board:amber:system"
|
status_led="$board:amber:system"
|
||||||
;;
|
;;
|
||||||
oy-0001|\
|
oy-0001|\
|
||||||
sl-r7205|\
|
sl-r7205)
|
||||||
zbt-we826)
|
|
||||||
status_led="$board:green:wifi"
|
status_led="$board:green:wifi"
|
||||||
;;
|
;;
|
||||||
psr-680w)
|
psr-680w)
|
||||||
@ -273,6 +272,10 @@ get_status_led() {
|
|||||||
zbt-cpe102)
|
zbt-cpe102)
|
||||||
status_led="$board:green:4g-0"
|
status_led="$board:green:4g-0"
|
||||||
;;
|
;;
|
||||||
|
zbt-we826-16M|\
|
||||||
|
zbt-we826-32M)
|
||||||
|
status_led="zbt-we826:green:wifi"
|
||||||
|
;;
|
||||||
zbt-wg3526-16M|\
|
zbt-wg3526-16M|\
|
||||||
zbt-wg3526-32M)
|
zbt-wg3526-32M)
|
||||||
status_led="zbt-wg3526:green:status"
|
status_led="zbt-wg3526:green:status"
|
||||||
|
@ -652,8 +652,11 @@ ramips_board_detect() {
|
|||||||
*"ZBT-WE2026")
|
*"ZBT-WE2026")
|
||||||
name="zbt-we2026"
|
name="zbt-we2026"
|
||||||
;;
|
;;
|
||||||
*"ZBT-WE826")
|
*"ZBT-WE826 (16M)")
|
||||||
name="zbt-we826"
|
name="zbt-we826-16M"
|
||||||
|
;;
|
||||||
|
*"ZBT-WE826 (32M)")
|
||||||
|
name="zbt-we826-32M"
|
||||||
;;
|
;;
|
||||||
*"ZBT-WG2626")
|
*"ZBT-WG2626")
|
||||||
name="zbt-wg2626"
|
name="zbt-wg2626"
|
||||||
|
@ -193,7 +193,8 @@ platform_check_image() {
|
|||||||
zbt-wa05|\
|
zbt-wa05|\
|
||||||
zbt-we1326|\
|
zbt-we1326|\
|
||||||
zbt-we2026|\
|
zbt-we2026|\
|
||||||
zbt-we826|\
|
zbt-we826-16M|\
|
||||||
|
zbt-we826-32M|\
|
||||||
zbt-wg2626|\
|
zbt-wg2626|\
|
||||||
zbt-wg3526-16M|\
|
zbt-wg3526-16M|\
|
||||||
zbt-wg3526-32M|\
|
zbt-wg3526-32M|\
|
||||||
|
12
target/linux/ramips/dts/ZBT-WE826-16M.dts
Normal file
12
target/linux/ramips/dts/ZBT-WE826-16M.dts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "ZBT-WG3526.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "zbtlink,zbt-we826-16m", "zbtlink,zbt-we826", "ralink,mt7620a-soc";
|
||||||
|
model = "ZBT-WE826 (16M)";
|
||||||
|
};
|
||||||
|
|
||||||
|
&firmware {
|
||||||
|
reg = <0x50000 0xfb0000>;
|
||||||
|
};
|
12
target/linux/ramips/dts/ZBT-WE826-32M.dts
Normal file
12
target/linux/ramips/dts/ZBT-WE826-32M.dts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "ZBT-WG3526.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "zbtlink,zbt-we826-32m", "zbtlink,zbt-we826", "ralink,mt7620a-soc";
|
||||||
|
model = "ZBT-WE826 (32M)";
|
||||||
|
};
|
||||||
|
|
||||||
|
&firmware {
|
||||||
|
reg = <0x50000 0x1fb0000>;
|
||||||
|
};
|
@ -5,9 +5,6 @@
|
|||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
|
|
||||||
model = "ZBT-WE826";
|
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
bootargs = "console=ttyS0,115200";
|
bootargs = "console=ttyS0,115200";
|
||||||
};
|
};
|
||||||
@ -81,9 +78,8 @@
|
|||||||
read-only;
|
read-only;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@50000 {
|
firmware: partition@50000 {
|
||||||
label = "firmware";
|
label = "firmware";
|
||||||
reg = <0x50000 0xfb0000>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -484,13 +484,22 @@ define Device/zbt-we2026
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += zbt-we2026
|
TARGET_DEVICES += zbt-we2026
|
||||||
|
|
||||||
define Device/zbt-we826
|
define Device/zbt-we826-16M
|
||||||
DTS := ZBT-WE826
|
DTS := ZBT-WE826-16M
|
||||||
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
||||||
DEVICE_TITLE := Zbtlink ZBT-WE826
|
SUPPORTED_DEVICES += zbt-we826
|
||||||
|
DEVICE_TITLE := Zbtlink ZBT-WE826 (16M)
|
||||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
|
||||||
endef
|
endef
|
||||||
TARGET_DEVICES += zbt-we826
|
TARGET_DEVICES += zbt-we826-16M
|
||||||
|
|
||||||
|
define Device/zbt-we826-32M
|
||||||
|
DTS := ZBT-WE826-32M
|
||||||
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
||||||
|
DEVICE_TITLE := Zbtlink ZBT-WE826 (32M)
|
||||||
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += zbt-we826-32M
|
||||||
|
|
||||||
define Device/zbt-wr8305rt
|
define Device/zbt-wr8305rt
|
||||||
DTS := ZBT-WR8305RT
|
DTS := ZBT-WR8305RT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user