lantiq: rename gphy firmware
[openwrt/openwrt.git] / target / linux / lantiq / dts / TDW89X0.dtsi
index 0f070ef5e1ce2367813055916a501a0373dcce70..a629d92e4f2a76fcab90cb15c6cef965ab77204f 100644 (file)
@@ -1,8 +1,12 @@
 #include "vr9.dtsi"
 
+#include <dt-bindings/input/input.h>
+
 / {
+       compatible = "tplink,tdw89x0", "lantiq,xway", "lantiq,vr9";
+
        chosen {
-               bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+               bootargs = "console=ttyLTQ0,115200";
        };
 
        aliases {
@@ -12,6 +16,7 @@
 
                led-dsl = &dsl;
                led-internet = &internet;
+               led-wifi = &wifi;
                led-usb = &usb0;
                led-usb2 = &usb2;
        };
 
        gphy-xrx200 {
                compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/vr9_phy11g_a2x.bin";
+               firmware = "lantiq/xrx200_phy11g_a22.bin";
                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>;
                compatible = "gpio-leds";
                /*
                        power is not controllable via gpio
-        */
+               */
                dsl: dsl {
                        label = "tdw89x0:green:dsl";
                        gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
                        gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
                };
        };
+
+       wifi-leds {
+               compatible = "gpio-leds";
+
+               wifi: wifi {
+                       label = "tdw89x0:green:wifi";
+                       gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &spi {
                };
        };
 };
+
+&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>;
+               };
+       };
+};