ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
set_wifi_led "$boardname:blue:wlan2g"
;;
-hc5761)
- ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
- set_wifi_led "$boardname:blue:wlan2g"
- ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
- ;;
+hc5761|\
hc5861)
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
- set_wifi_led "$boardname:blue:wlan2g"
- ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "rai0"
+ ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
+ ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
;;
hg255d)
set_wifi_led "$boardname:green:wlan"
ucidef_add_switch "switch1" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
;;
- hc5*61|\
+ hc5661|\
+ hc5861|\
y1s)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
"0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0"
ucidef_set_interface_wan "usb0"
;;
+ hc5761)
+ ucidef_add_switch "switch0" \
+ "1:lan" "4:lan" "0:wan" "6@eth0"
+ ;;
mzk-dp150n|\
vocore-8M|\
vocore-16M)
};
};
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
+
+&pcie {
+ status = "okay";
+};
+
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
};
};
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
+
ðernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
mediatek,port4 = "gmac";
};
+&pcie {
+ status = "okay";
+};
+
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
+ read-only;
};
partition@30000 {
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
+ read-only;
};
partition@50000 {
partition@fd0000 {
label = "hwf_config";
reg = <0xfd0000 0x10000>;
+ read-only;
};
bdinfo: partition@fe0000 {
label = "bdinfo";
reg = <0xfe0000 0x10000>;
+ read-only;
};
partition@ff0000 {
label = "backup";
reg = <0xff0000 0x10000>;
+ read-only;
};
};
};
};
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
-
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-0 = <&pa_pins>;
};
-&pcie {
- status = "okay";
-};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
define Device/hc5661
DTS := HC5661
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15872k
DEVICE_TITLE := HiWiFi HC5661
- DEVICE_PACKAGES := kmod-usb2 kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
+ DEVICE_PACKAGES := kmod-sdhci-mt7620
endef
TARGET_DEVICES += hc5661
define Device/hc5761
DTS := HC5761
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15872k
DEVICE_TITLE := HiWiFi HC5761
DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
endef
define Device/hc5861
DTS := HC5861
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
+ IMAGE_SIZE := 15872k
DEVICE_TITLE := HiWiFi HC5861
- DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
+ DEVICE_PACKAGES := kmod-mt76x2 kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
endef
TARGET_DEVICES += hc5861