- Mark other partitions as read-only for HC5x61
- Only enable USB and PCIe for HC5761/HC5861
HC5661 doesn't have a USB port, and there is nothing attached to its PCIe.
- Fix HC5761 switch ports
HC5761 has only 3 ethernet ports (1x WAN + 2x LAN). Remove unused ports.
- Fix HC5861 5GHz radio
HC5861 has MT7612EN 5GHz WiFi chip, not MT7610EN.
- Fix HC5761/HC5861 WiFi LEDs
After 5GHz is enabled, it becomes wlan0. And 2.4GHz would be wlan1.
- Fix HC5x61 image size
It should be 15872k (0xf80000)
Signed-off-by: Deng Qingfang <dengqf6@mail2.sysu.edu.cn>
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
set_wifi_led "$boardname:blue:wlan2g"
;;
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"
- ;;
hc5861)
ucidef_set_led_netdev "internet" "internet" "$boardname:blue:internet" "eth0.2"
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"
;;
hg255d)
set_wifi_led "$boardname:green:wlan"
ucidef_add_switch "switch1" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
;;
ucidef_add_switch "switch1" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
;;
y1s)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
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"
;;
"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)
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>;
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
+&ehci {
+ status = "okay";
+};
+
+&ohci {
+ status = "okay";
+};
+
ðernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
ðernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
mediatek,port4 = "gmac";
};
mediatek,port4 = "gmac";
};
+&pcie {
+ status = "okay";
+};
+
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
&pcie0 {
mt76@0,0 {
reg = <0x0000 0 0 0 0>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
partition@fd0000 {
label = "hwf_config";
reg = <0xfd0000 0x10000>;
partition@fd0000 {
label = "hwf_config";
reg = <0xfd0000 0x10000>;
};
bdinfo: partition@fe0000 {
label = "bdinfo";
reg = <0xfe0000 0x10000>;
};
bdinfo: partition@fe0000 {
label = "bdinfo";
reg = <0xfe0000 0x10000>;
};
partition@ff0000 {
label = "backup";
reg = <0xff0000 0x10000>;
};
partition@ff0000 {
label = "backup";
reg = <0xff0000 0x10000>;
-&ehci {
- status = "okay";
-};
-
-&ohci {
- status = "okay";
-};
-
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
ðernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
pinctrl-0 = <&pa_pins>;
};
pinctrl-0 = <&pa_pins>;
};
-&pcie {
- status = "okay";
-};
-
&pinctrl {
state_default: pinctrl0 {
gpio {
&pinctrl {
state_default: pinctrl0 {
gpio {
define Device/hc5661
DTS := HC5661
define Device/hc5661
DTS := HC5661
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := HiWiFi HC5661
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
endef
TARGET_DEVICES += hc5661
define Device/hc5761
DTS := HC5761
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := HiWiFi HC5761
DEVICE_PACKAGES := kmod-mt76x0e kmod-usb2 kmod-usb-ohci kmod-sdhci-mt7620 kmod-usb-ledtrig-usbport
endef
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
define Device/hc5861
DTS := HC5861
- IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := HiWiFi HC5861
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
endef
TARGET_DEVICES += hc5861