lantiq: use the device tree bindings from rt2x00 driver
Set a device specific wireless mac address for ARV7506PW11, VGV7519 and VGV7510KW22. The one from the EEPROM is a generic one and the same on all boards. Use the wifi@0,0 label and the pci0,0 compatible string for the ARV7519PW and ARV7525PW since the pci vendor and device id is unknown. It should work anyway since the compatible string isn't evaluated (yet). Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
@@ -80,17 +80,6 @@
|
||||
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 {
|
||||
@@ -152,3 +141,18 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -121,24 +121,6 @@
|
||||
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 {
|
||||
@@ -189,3 +171,23 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -113,18 +113,6 @@
|
||||
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 {
|
||||
@@ -222,3 +210,17 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -68,12 +68,6 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ralink_eep {
|
||||
compatible = "ralink,eeprom";
|
||||
ralink,eeprom = "RT2860.eeprom";
|
||||
reg = <0 0x3f0410 0x110>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio: pinmux@E100B10 {
|
||||
@@ -96,11 +90,6 @@
|
||||
phy-mode = "mii";
|
||||
mtd-mac-address = <&boardconfig 0x16>;
|
||||
};
|
||||
|
||||
pci@E105400 {
|
||||
status = "okay";
|
||||
interrupt-map = <0x7000 0 0 1 &icu0 135 1>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio-keys-polled {
|
||||
@@ -150,3 +139,14 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -135,19 +135,6 @@
|
||||
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 {
|
||||
@@ -231,3 +218,18 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -134,24 +134,6 @@
|
||||
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 {
|
||||
@@ -251,3 +233,23 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -50,11 +50,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ralink_eep {
|
||||
compatible = "ralink,eeprom";
|
||||
ralink,eeprom = "RT3062.eeprom";
|
||||
};
|
||||
|
||||
gpio-leds {
|
||||
usb1: usb1 {
|
||||
label = "p2812hnuf1:green:usb1";
|
||||
@@ -66,3 +61,11 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pci0 {
|
||||
wifi@1814,3062 {
|
||||
compatible = "pci1814,3062";
|
||||
reg = <0x7000 0 0 0 0>;
|
||||
ralink,eeprom = "RT3062.eeprom";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -54,9 +54,12 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ralink_eep {
|
||||
compatible = "ralink,eeprom";
|
||||
&pci0 {
|
||||
wifi@1814,3092 {
|
||||
compatible = "pci1814,3092";
|
||||
reg = <0x7000 0 0 0 0>;
|
||||
ralink,eeprom = "RT3092.eeprom";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -75,11 +75,6 @@
|
||||
gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
pci@E105400 {
|
||||
status = "okay";
|
||||
gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
pcie@d900000 {
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -92,11 +87,6 @@
|
||||
phys = [ 00 01 ];
|
||||
};
|
||||
|
||||
ralink_eep {
|
||||
compatible = "ralink,eeprom";
|
||||
ralink,eeprom = "RT3062.eeprom";
|
||||
};
|
||||
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
@@ -167,6 +157,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
&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";
|
||||
|
||||
@@ -102,11 +102,6 @@
|
||||
gpios = <&gpio 32 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
pci@E105400 {
|
||||
status = "okay";
|
||||
gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
pcie@d900000 {
|
||||
status = "disabled";
|
||||
};
|
||||
@@ -119,11 +114,6 @@
|
||||
phys = [ 00 01 ];
|
||||
};
|
||||
|
||||
ralink_eep {
|
||||
compatible = "ralink,eeprom";
|
||||
ralink,eeprom = "RT2860.eeprom";
|
||||
};
|
||||
|
||||
gpio-keys-polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
@@ -214,6 +204,20 @@
|
||||
};
|
||||
};
|
||||
|
||||
&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";
|
||||
|
||||
Reference in New Issue
Block a user