ramips: add wan2 support for MQmaker WiTi
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_netgear_ex6150.dts
index 9a59dab98dd21a652bd90820feb17d7deeab5f6e..1695e9c845cc366b979a7f04d561afce2a6e5251 100644 (file)
                compatible = "gpio-leds";
 
                power_amber: power_amber {
-                       label = "ex6150:amber:power";
+                       label = "amber:power";
                        gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
                };
 
                power_green: power_green {
-                       label = "ex6150:green:power";
+                       label = "green:power";
                        gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "ex6150:green:wps";
+                       label = "green:wps";
                        gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
 
                rightarrow {
-                       label = "ex6150:blue:rightarrow";
+                       label = "blue:rightarrow";
                        gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
                };
 
                leftarrow {
-                       label = "ex6150:blue:leftarrow";
+                       label = "blue:leftarrow";
                        gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
                };
 
                router_green {
-                       label = "ex6150:green:router";
+                       label = "green:router";
                        gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
 
                router_red {
-                       label = "ex6150:red:router";
+                       label = "red:router";
                        gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
                };
 
                client_green {
-                       label = "ex6150:green:client";
+                       label = "green:client";
                        gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
 
                client_red {
-                       label = "ex6150:red:client";
+                       label = "red:client";
                        gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
                };
        };
@@ -86,6 +86,7 @@
                        label = "AP/Extender toggle";
                        gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_0>;
+                       linux,input-type = <EV_SW>;
                        /* Active when switch is set to "Access Point" */
                };
        };
 
 &pcie {
        status = "okay";
+
+       reset-gpios = <&gpio 19 GPIO_ACTIVE_LOW>,
+                     <&gpio 8 GPIO_ACTIVE_LOW>;
 };
 
 &pcie0 {
        };
 };
 
+&ethernet {
+       pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
+};
+
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
 };
 
 &switch0 {
                function = "gpio";
        };
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};