+++ /dev/null
-#!/bin/sh
-# based on gabors ralink wisoc implementation
-
-rt2x00_eeprom_die() {
- echo "rt2x00 eeprom: " "$*"
- exit 1
-}
-
-rt2x00_eeprom_extract() {
- local part=$1
- local offset=$2
- local count=$3
- local swab=$4
- local mtd
-
- . /lib/functions.sh
-
- mtd=$(find_mtd_part $part)
- [ -n "$mtd" ] || \
- rt2x00_eeprom_die "no mtd device found for partition $part"
-
- if [ $swab -gt 0 ]; then
- dd if=$mtd of=/lib/firmware/$FIRMWARE bs=2 skip=$offset count=$count conv=swab || \
- rt2x00_eeprom_die "failed to extract from $mtd"
- else
- dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \
- rt2x00_eeprom_die "failed to extract from $mtd"
- fi
-}
-
-[ -e /lib/firmware/$FIRMWARE ] && exit 0
-. /lib/functions/lantiq.sh
-
-case "$FIRMWARE" in
-"RT2860.eeprom" )
- board=$(lantiq_board_name)
- case $board in
- ARV7506PW11|ARV7510PW22|ARV7519PW|ARV752DPW|ARV752DPW22|VGV7519)
- rt2x00_eeprom_extract "board_config" 520 256 1
- ;;
- ARV7525PW)
- rt2x00_eeprom_extract "board_config" 1040 512 0
- ;;
- *)
- rt2x00_eeprom_die "board $board is not supported yet"
- ;;
- esac
- ;;
-"RT3062.eeprom" )
- board=$(lantiq_board_name)
- case $board in
- VGV7510KW22)
- rt2x00_eeprom_extract "board_config" 520 256 1
- ;;
- *)
- rt2x00_eeprom_die "board $board is not supported yet"
- ;;
- esac
- ;;
-esac
phy-mode = "rmii";
mtd-mac-address = <&boardconfig 0x16>;
};
-
- pci@E105400 {
- status = "okay";
- lantiq,external-clock;
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- };
- };
-
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
};
gpio-keys-polled {
};
};
};
+
+&pci0 {
+ status = "okay";
+ lantiq,external-clock;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+
+ wifi@1814,3592 {
+ compatible = "pci1814,3592";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ mtd-mac-address = <&boardconfig 0x16>;
+ mtd-mac-address-increment = <1>;
+ };
+};
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
};
-
- pci@E105400 {
- status = "okay";
- lantiq,external-clock;
- interrupt-map = <
- 0x7000 0 0 1 &icu0 30
- 0x7800 0 0 1 &icu0 135
- 0x7800 0 0 2 &icu0 135
- 0x7800 0 0 3 &icu0 135
- >;
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- req-mask = <0x3>;
- };
- };
-
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
};
gpio-keys-polled {
};
};
};
+
+&pci0 {
+ status = "okay";
+ lantiq,external-clock;
+ interrupt-map = <
+ 0x7000 0 0 1 &icu0 30
+ 0x7800 0 0 1 &icu0 135
+ 0x7800 0 0 2 &icu0 135
+ 0x7800 0 0 3 &icu0 135
+ >;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+ req-mask = <0x3>;
+
+ wifi@1814,3592 {
+ compatible = "pci1814,3592";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ };
+};
ifxhcd@E101000 {
status = "okay";
};
-
- pci@E105400 {
- status = "okay";
- lantiq,external-clock;
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- req-mask = <0xf>;
- };
- };
-
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
};
gpio-keys-polled {
};
};
};
+
+&pci0 {
+ status = "okay";
+ lantiq,external-clock;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+ req-mask = <0xf>;
+
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ };
+};
};
};
};
-
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
- reg = <0 0x3f0410 0x110>;
- };
};
gpio: pinmux@E100B10 {
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
};
-
- pci@E105400 {
- status = "okay";
- interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
- };
};
gpio-keys-polled {
};
};
};
+
+&pci0 {
+ status = "okay";
+ interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
+
+ wifi@0,0 {
+ compatible = "pci0,0";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ };
+};
phy-mode = "rmii";
mtd-mac-address = <&boardconfig 0x16>;
};
-
- pci@E105400 {
- status = "okay";
- lantiq,external-clock;
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- interrupt-map = <0x7000 0 0 1 &icu0 135>;
- req-mask = <0x3>;
- };
- };
-
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
};
gpio-keys-polled {
};
};
};
+
+&pci0 {
+ status = "okay";
+ lantiq,external-clock;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+ interrupt-map = <0x7000 0 0 1 &icu0 135>;
+ req-mask = <0x3>;
+
+ wifi@1814,0601 {
+ compatible = "pci1814,0601";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ };
+};
phy-mode = "mii";
mtd-mac-address = <&boardconfig 0x16>;
};
-
- pci@E105400 {
- status = "okay";
- lantiq,external-clock;
- interrupt-map = <
- 0x7000 0 0 1 &icu0 30
- 0x7800 0 0 1 &icu0 135
- 0x7800 0 0 2 &icu0 135
- 0x7800 0 0 3 &icu0 135
- >;
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- req-mask = <0x3>;
- };
- };
-
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
};
gpio-keys-polled {
};
};
};
+
+&pci0 {
+ status = "okay";
+ lantiq,external-clock;
+ interrupt-map = <
+ 0x7000 0 0 1 &icu0 30
+ 0x7800 0 0 1 &icu0 135
+ 0x7800 0 0 2 &icu0 135
+ 0x7800 0 0 3 &icu0 135
+ >;
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+ req-mask = <0x3>;
+
+ wifi@1814,3592 {
+ compatible = "pci1814,3592";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ };
+};
};
};
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT3062.eeprom";
- };
-
gpio-leds {
usb1: usb1 {
label = "p2812hnuf1:green:usb1";
};
};
};
+
+&pci0 {
+ wifi@1814,3062 {
+ compatible = "pci1814,3062";
+ reg = <0x7000 0 0 0 0>;
+ ralink,eeprom = "RT3062.eeprom";
+ };
+};
};
};
};
+};
- ralink_eep {
- compatible = "ralink,eeprom";
+&pci0 {
+ wifi@1814,3092 {
+ compatible = "pci1814,3092";
+ reg = <0x7000 0 0 0 0>;
ralink,eeprom = "RT3092.eeprom";
};
};
gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
};
- pci@E105400 {
- status = "okay";
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- };
-
pcie@d900000 {
status = "disabled";
};
phys = [ 00 01 ];
};
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT3062.eeprom";
- };
-
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
};
};
+&pci0 {
+ status = "okay";
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+
+ wifi@1814,3592 {
+ compatible = "pci1814,3592";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ mtd-mac-address = <&boardconfig 0x16>;
+ mtd-mac-address-increment = <1>;
+ };
+};
+
ð0 {
lan: interface@0 {
compatible = "lantiq,xrx200-pdi";
gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
};
- pci@E105400 {
- status = "okay";
- gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
- };
-
pcie@d900000 {
status = "disabled";
};
phys = [ 00 01 ];
};
- ralink_eep {
- compatible = "ralink,eeprom";
- ralink,eeprom = "RT2860.eeprom";
- };
-
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
};
};
+&pci0 {
+ status = "okay";
+ gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
+
+ wifi@1814,3091 {
+ compatible = "pci1814,3091";
+ reg = <0x7000 0 0 0 0>;
+ ralink,mtd-eeprom = <&boardconfig 0x410>;
+ ralink,mtd-eeprom-swap;
+ mtd-mac-address = <&boardconfig 0x16>;
+ mtd-mac-address-increment = <1>;
+ };
+};
+
ð0 {
lan: interface@0 {
compatible = "lantiq,xrx200-pdi";