lantiq: Make the MEI address available for kernel drivers
[oweals/openwrt.git] / target / linux / lantiq / dts / TDW8970.dts
index a15d91c6a8b0fa9bb69afafddbc541a9250d1f64..d8dcb5d836626bd5107bda3d508e38c09615265b 100644 (file)
@@ -6,7 +6,7 @@
        model = "TDW8970 - TP-LINK TD-W8970";
 
        chosen {
-               bootargs = "console=ttyLTQ0,115200 init=/etc/preinit rootfstype=jffs2";
+               bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
        };
 
        memory@0 {
                                        lantiq,groups = "mdio";
                                        lantiq,function = "mdio";
                                };
+                               gphy-leds {
+                                       lantiq,groups = "gphy0 led1", "gphy1 led1";
+                                       lantiq,function = "gphy";
+                                       lantiq,pull = <2>;
+                                       lantiq,open-drain = <0>;
+                                       lantiq,output = <1>;
+                               };
                                phy-rst {
                                        lantiq,pins = "io42";
                                        lantiq,pull = <0>;
@@ -64,7 +71,8 @@
                                #address-cells = <1>;
                                #size-cells = <0>;
                                reg = <0>;
-                               mac-address = [ 00 11 22 33 44 55 ];
+                               mtd-mac-address = <&ath9k_cal 0xf100>;
+                               lantiq,switch;
 
                                ethernet@0 {
                                        compatible = "lantiq,xrx200-pdi-port";
                                phy0: ethernet-phy@0 {
                                        reg = <0x0>;
                                        compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-//                                     lantiq,c45-reg-init = <1 0 0 0>;
                                };
                                phy5: ethernet-phy@5 {
                                        reg = <0x5>;
                                        compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-//                                     lantiq,c45-reg-init = <1 0 0 0>;
                                };
                                phy11: ethernet-phy@11 {
                                        reg = <0x11>;
                                        compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-//                                     lantiq,c45-reg-init = <1 0 0 0>;
                                };
                                phy13: ethernet-phy@13 {
                                        reg = <0x13>;
                                        compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
-//                                     lantiq,c45-reg-init = <1 0 0 0>;
                                };
                        };
                };
                        gpios = <&gpio 33 0>;
                        lantiq,portmask = <0x3>;
                };
+
+               ifxhcd@E106000 {
+                       status = "okay";
+                       gpios = <&gpio 33 0>;
+               };
        };
 
        gphy-xrx200 {
                        };
 
                        partition@20000 {
-                               reg = <0x20000 0x7a0000>;
+                               reg = <0x20000 0x6a0000>;
                                label = "firmware";
                        };
 
+                       partition@6c0000 {
+                               reg = <0x6c0000 0x100000>;
+                               label = "dsl_fw";
+                       };
+
                        partition@7c0000 {
                                reg = <0x7c0000 0x10000>;
                                label = "config";
        ath9k_eep {
                compatible = "ath9k,eeprom";
                ath,eep-flash = <&ath9k_cal 0x21000>;
-               ath,pci-slot = <0>;
+               ath,mac-offset = <0xf100>;
+               ath,mac-increment;
+               ath,led-pin = <0>;
        };
 
        gpio-keys-polled {
                #address-cells = <1>;
                #size-cells = <0>;
                poll-interval = <100>;
-               power {
+               reset {
                        label = "reset";
                        gpios = <&gpio 0 1>;
-                       linux,code = <0x100>;
+                       linux,code = <0x198>;
                };
 
                wifi {
                        label = "wifi";
                        gpios = <&gpio 9 0>;
-                       linux,code = <0x101>;
+                       linux,code = <0xf7>;
                        linux,input-type = <5>; /* EV_SW */
                };
 
                wps {
                        label = "wps";
                        gpios = <&gpio 39 1>;
-                       linux,code = <0x102>;
+                       linux,code = <0x211>;
                };
        };
 
        gpio-leds {
                compatible = "gpio-leds";
 
-               adsl {
-                       label = "adsl";
+               dsl {
+                       label = "dsl";
                        gpios = <&gpio 4 0>;
                };
                internet {
                        label = "internet";
                        gpios = <&gpio 5 0>;
                };
-               lan3 {
-                       label = "lan3";
-                       gpios = <&gpio 7 0>;
-               };
                usb0 {
                        label = "usb";
                        gpios = <&gpio 19 0>;
                        label = "wps";
                        gpios = <&gpio 37 0>;
                };
-               lan4 {
-                       label = "lan4";
-                       gpios = <&gpio 45 0>;
-               };
        };
 };