From a20616863d32d91163043b6657a63c836bd9c5ba Mon Sep 17 00:00:00 2001 From: Martin Blumenstingl Date: Sat, 26 Nov 2016 01:01:15 +0100 Subject: lantiq: use ath9k device tree bindings binding/owl-loader This moves the extraction of the eeprom/calibration data to a hotplug firmware script. Additionally it modifies all .dts to configure ath9k directly from within the .dts. The owl-loader approach enables support on devices with exotic eeprom data locations (such as unaligned positions on the flash or data inside an UBI volume). Signed-off-by: Martin Blumenstingl [add ath9k caldata mac address patcher] [fixes DGN3500 wifi mac] [fixes BTHOMEHUBV3A wifi mac] [set invalid mac for BTHOMEHUB2B, FRITZ3370, FRITZ7320 & FRITZ7360SL to restore previous random mac behavior] Signed-off-by: Mathias Kresin --- target/linux/lantiq/dts/TDW89X0.dtsi | 41 +++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 10 deletions(-) (limited to 'target/linux/lantiq/dts/TDW89X0.dtsi') diff --git a/target/linux/lantiq/dts/TDW89X0.dtsi b/target/linux/lantiq/dts/TDW89X0.dtsi index 6447451d18..153d96eff8 100644 --- a/target/linux/lantiq/dts/TDW89X0.dtsi +++ b/target/linux/lantiq/dts/TDW89X0.dtsi @@ -14,6 +14,7 @@ led-dsl = &dsl; led-internet = &internet; + led-wifi = &wifi; led-usb = &usb0; led-usb2 = &usb2; }; @@ -83,16 +84,6 @@ phys = [ 00 01 ]; }; - ath9k_eep { - compatible = "ath9k,eeprom"; - ath,eep-flash = <&ath9k_cal 0x21000>; - ath,mac-offset = <0xf100>; - ath,mac-increment = <2>; - ath,led-pin = <0>; - ath,disable-5ghz; - ath,led-active-high; - }; - gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; @@ -144,6 +135,15 @@ gpios = <&gpio 37 GPIO_ACTIVE_HIGH>; }; }; + + wifi-leds { + compatible = "gpio-leds"; + + wifi: wifi { + label = "tdw89x0:green:wifi"; + gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>; + }; + }; }; &spi { @@ -249,3 +249,24 @@ }; }; }; + +&pcie0 { + pcie@0 { + reg = <0 0 0 0 0>; + #interrupt-cells = <1>; + #size-cells = <2>; + #address-cells = <3>; + device_type = "pci"; + + ath9k: wifi@168c,002e { + compatible = "pci168c,002e"; + reg = <0 0 0 0 0>; + #gpio-cells = <2>; + gpio-controller; + qca,no-eeprom; + qca,disable-5ghz; + mtd-mac-address = <&ath9k_cal 0xf100>; + mtd-mac-address-increment = <2>; + }; + }; +}; -- cgit v1.2.3