From 7fd5171a3445b1f0b3aaa45f6c43550758547f2c Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Thu, 14 Jul 2016 18:15:48 +0200 Subject: 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 --- target/linux/lantiq/dts/ARV752DPW22.dts | 38 +++++++++++++++++---------------- 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'target/linux/lantiq/dts/ARV752DPW22.dts') diff --git a/target/linux/lantiq/dts/ARV752DPW22.dts b/target/linux/lantiq/dts/ARV752DPW22.dts index 0b0fddbd82..7343a5d2ff 100644 --- a/target/linux/lantiq/dts/ARV752DPW22.dts +++ b/target/linux/lantiq/dts/ARV752DPW22.dts @@ -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; + }; +}; -- cgit v1.2.3