ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
set_wifi_led "asl26555:green:wlan"
;;
+bdcom,wap2100-sk|\
+hiwifi,hc5861b)
+ set_wifi_led "$boardname:green:wlan2g"
+ ;;
broadway)
set_wifi_led "$boardname:red:wps_active"
;;
set_wifi_led "$boardname:green:wlan"
ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
;;
-hiwifi,hc5861b)
- set_wifi_led "$boardname:green:wlan2g"
- ;;
hpm)
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
set_wifi_led "$boardname:green:wifi"
w502u)
set_wifi_led "rt2800pci-phy0::radio"
;;
-wap2100-sk)
- set_usb_led "$boardname:green:usb"
- set_wifi_led "$boardname:green:wlan2g"
- ;;
we1026-5g-16m)
ucidef_set_led_netdev "lan" "LAN" "we1026-5g:green:lan" "eth0"
set_wifi_led "we1026-5g:green:wifi"
#include <dt-bindings/input/input.h>
/ {
- compatible = "bdcom,bdcom-wap2100-sk", "ralink,mt7620a-soc";
+ compatible = "bdcom,wap2100-sk", "ralink,mt7620a-soc";
model = "BDCOM WAP2100-SK";
+ aliases {
+ led-boot = &led_power;
+ led-failsafe = &led_power;
+ };
+
chosen {
bootargs = "console=ttyS0,115200";
};
usb {
label = "wap2100-sk:green:usb";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&ohci_port1>, <&ehci_port1>;
+ linux,default-trigger = "usbport";
};
- wps {
+ led_power: wps {
label = "wap2100-sk:green:wps";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
gpio-keys-polled {
compatible = "gpio-keys-polled";
- #address-cells = <1>;
- #size-cells = <0>;
poll-interval = <20>;
wps {
&spi0 {
status = "okay";
- en25q128@0 {
- #address-cells = <1>;
- #size-cells = <1>;
+ flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x30000>;
- read-only;
- };
-
- partition@30000 {
- label = "u-boot-env";
- reg = <0x30000 0x10000>;
- read-only;
- };
-
- factory: partition@40000 {
- label = "factory";
- reg = <0x40000 0x10000>;
- read-only;
- };
-
- firmware: partition@50000 {
- label = "firmware";
- reg = <0x50000 0xf70000>;
+ partitions {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x0 0x30000>;
+ read-only;
+ };
+
+ partition@30000 {
+ label = "u-boot-env";
+ reg = <0x30000 0x10000>;
+ read-only;
+ };
+
+ factory: partition@40000 {
+ label = "factory";
+ reg = <0x40000 0x10000>;
+ read-only;
+ };
+
+ partition@50000 {
+ label = "firmware";
+ reg = <0x50000 0xf70000>;
+ };
};
};
};
&pinctrl {
state_default: pinctrl0 {
default {
- ralink,group = "wdt", "mdio", "spi refclk", "uartf", "wled";
+ ralink,group = "spi refclk", "uartf", "wled";
ralink,function = "gpio";
};
};
endef
TARGET_DEVICES += ArcherMR200
-define Device/BDCOM-WAP2100-SK
+define Device/bdcom_wap2100-sk
DTS := BDCOM-WAP2100-SK
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
- SUPPORTED_DEVICES += wap2100-sk
+ IMAGE_SIZE := 15808k
DEVICE_TITLE := BDCOM WAP2100-SK (ZTE ZXECS EBG3130)
- DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620
+ DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-mt76 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
endef
-TARGET_DEVICES += BDCOM-WAP2100-SK
+TARGET_DEVICES += bdcom_wap2100-sk
define Device/bocco
DTS := BOCCO