lantiq: rename gphy firmware
[openwrt/openwrt.git] / target / linux / lantiq / dts / VR200v.dts
index 8715b89..6eccc5b 100644 (file)
@@ -1,12 +1,15 @@
 /dts-v1/;
 
-/include/ "vr9.dtsi"
+#include "vr9.dtsi"
+
+#include <dt-bindings/input/input.h>
 
 / {
-       model = "VR200v - TP-LINK Archer VR200v";
+       compatible = "tplink,vr200v", "lantiq,xway", "lantiq,vr9";
+       model = "TP-LINK Archer VR200v";
 
        chosen {
-               bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
+               bootargs = "console=ttyLTQ0,115200";
        };
 
        aliases {
 
                ifxhcd@E101000 {
                        status = "okay";
-                       gpios = <&gpio 33 0>;
+                       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
                        lantiq,portmask = <0x3>;
                };
 
                ifxhcd@E106000 {
                        status = "okay";
-                       gpios = <&gpio 33 0>;
+                       gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
+               };
+
+               pci0: pci@E105400 {
+                       status = "okay";
+                       gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
                };
        };
 
        gphy-xrx200 {
                compatible = "lantiq,phy-xrx200";
-               firmware = "lantiq/vr9_phy11g_a2x.bin";
+               firmware = "lantiq/xrx200_phy11g_a22.bin";
                phys = [ 00 01 ];
        };
 
                poll-interval = <100>;
                reset {
                        label = "reset";
-                       gpios = <&gpio 22 1>;
-                       linux,code = <0x198>;
+                       gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
                };
 
                wifi {
                        label = "wifi";
-                       gpios = <&gpio 0 0>;
-                       linux,code = <0xf7>;
-                       linux,input-type = <5>; /* EV_SW */
+                       gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
+                       linux,code = <KEY_RFKILL>;
+                       linux,input-type = <EV_SW>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio 2 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
                };
 
                dect_paging {
                        label = "dect_paging";
-                       gpios = <&gpio 39 1>;
-                       linux,code = <0x211>;
+                       gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_PHONE>;
                };
        };
 
                compatible = "gpio-leds";
                power: power {
                        label = "vr200v:blue:power";
-                       gpios = <&gpio 46 1>;
+                       gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
                };
                dsl: dsl {
                        label = "vr200v:blue:dsl";
-                       gpios = <&gpio 4 1>;
+                       gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
                internet: internet {
                        label = "vr200v:blue:internet";
-                       gpios = <&gpio 5 1>;
+                       gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
                };
                usb: usb {
                        label = "vr200v:blue:usb";
-                       gpios = <&gpio 25 1>;
+                       gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
                };
                eth {
                        label = "vr200v:blue:lan";
-                       gpios = <&gpio 40 1>;
+                       gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
                };
                wlan {
                        label = "vr200v:blue:wlan";
-                       gpios = <&gpio 24 1>;
+                       gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
                };
                wlan5g {
                        label = "vr200v:blue:wlan5g";
-                       gpios = <&gpio 20 1>;
+                       gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
                };
                phone {
                        label = "vr200v:blue:phone";
-                       gpios = <&gpio 44 1>;
+                       gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
        };
 };
                        reg = <0>;
                        phy-mode = "rgmii";
                        phy-handle = <&phy0>;
-                       // gpios = <&gpio 42 1>;
+                       // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
                };
                ethernet@5 {
                        compatible = "lantiq,xrx200-pdi-port";