From d8dd207ea6f299cfcaef4899f1cade375e694dd5 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Mon, 7 Nov 2016 22:02:20 +0100 Subject: ramips: use the ralink,mtd-eeprom device tree property Use the ralink,mtd-eeprom instead of invoking the userspace firmware loader. Set the label and compatible string according to the the PCI binding documentation. Use the wifi@0,0 label and the pci0,0 compatible string in case the PCI vendor and device id is unknown. It should work anyway since the compatible string isn't evaluated (yet). This commit might fixes the PCIe wireless for the Buffalo WHR-600D. This board was mentioned in the board 10-rt2x00-eeprom firmware hotplug script but never had the correct eeprom name set to trigger the firmware from flash extraction. Use the usual eeprom for the soc wmac of the Dovado Tiny AC. Signed-off-by: Mathias Kresin --- target/linux/ramips/dts/CY-SWR1100.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'target/linux/ramips/dts/CY-SWR1100.dts') diff --git a/target/linux/ramips/dts/CY-SWR1100.dts b/target/linux/ramips/dts/CY-SWR1100.dts index 031d8f0..95827d5 100644 --- a/target/linux/ramips/dts/CY-SWR1100.dts +++ b/target/linux/ramips/dts/CY-SWR1100.dts @@ -125,11 +125,11 @@ 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>; }; }; }; -- cgit v1.1