case "$FIRMWARE" in
"soc_wmac.eeprom")
case $board in
- *)
- rt2x00_eeprom_die "Please define mtd-eeprom in $board DTS file!"
- ;;
- esac
- ;;
-
-"rt2x00pci_1_0.eeprom")
- case $board in
- cy-swr1100)
- rt2x00_eeprom_extract "factory" 8192 512
- ;;
- br-6475nd | rt-n56u | whr-600d | whr-1166d)
- rt2x00_eeprom_extract "factory" 32768 512
- ;;
tiny-ac)
wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR)
rt2x00_eeprom_extract "factory" 0 512
rt2x00_eeprom_set_macaddr $wifi_mac
;;
+ *)
+ rt2x00_eeprom_die "Please define mtd-eeprom in $board DTS file!"
+ ;;
esac
;;
esac
pci-bridge@1 {
status = "okay";
- wmac@0,0 {
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
- compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
- reg = < 0x10000 0 0 0 0 >;
- ralink,eeprom = "rt2x00pci_1_0.eeprom";
+ ralink,mtd-eeprom = <&factory 0x8000>;
};
};
};
pci-bridge@1 {
status = "okay";
- wmac@0,0 {
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = <0x10000 0 0 0 0>;
ralink,5ghz = <0>;
- compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
- reg = < 0x10000 0 0 0 0 >;
- ralink,eeprom = "rt2x00pci_1_0.eeprom";
+ ralink,mtd-eeprom = <&factory 0x2000>;
};
};
};
pci-bridge@1 {
status = "okay";
- wmac@0,0 {
- compatible = "ralink,rt2880-pci", "pciclass060400", "pciclass0604";
- reg = < 0x10000 0 0 0 0 >;
- ralink,eeprom = "rt2x00pci_1_0.eeprom";
+ wifi@1814,3091 {
+ compatible = "pci1814,3091";
+ reg = <0x10000 0 0 0 0>;
+ ralink,mtd-eeprom = <&factory 0x8000>;
};
};
};
mediatek,mt7530 = <1>;
};
-&wmac {
- ralink,eeprom = "rt2x00pci_1_0.eeprom";
-};
-
&pcie {
status = "okay";
};
status = "okay";
pcie-bridge {
- mt76@0,0 {
+ wifi@0,0 {
+ compatible = "pci0,0";
reg = <0x0000 0 0 0 0>;
- device_type = "pci";
- mediatek,mtd-eeprom = <&factory 32768>;
+ mediatek,mtd-eeprom = <&factory 0x8000>;
mediatek,2ghz = <0>;
};
};
&pcie {
status = "okay";
+
+ pcie-bridge {
+ wifi@1814,3091 {
+ compatible = "pci1814,3091";
+ reg = <0x0000 0 0 0 0>;
+ mediatek,mtd-eeprom = <&factory 0x8000>;
+ };
+ };
};