tools/patchelf: update to 0.18.0
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / mt7621_buffalo_wsr-2533dhpl.dts
index e17c66689a5e1260a3f8746177a4b9d968dc4668..be85e8ee6ecbbdb86204c39efd0672fdc71fad4e 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "mt7621.dtsi"
 
                label-mac-device = &gmac0;
        };
 
-       chosen {
-               bootargs = "console=ttyS0,57600";
-       };
-
        leds {
                compatible = "gpio-leds";
 
                internet_green {
-                       label = "wsr-2533dhpl:green:internet";
+                       label = "green:internet";
                        gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
                };
 
                router_green {
-                       label = "wsr-2533dhpl:green:router";
+                       label = "green:router";
                        gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
                };
 
                router_amber {
-                       label = "wsr-2533dhpl:amber:router";
+                       label = "amber:router";
                        gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
                };
 
                internet_amber {
-                       label = "wsr-2533dhpl:amber:internet";
+                       label = "amber:internet";
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
 
                wireless_amber {
-                       label = "wsr-2533dhpl:amber:wireless";
+                       label = "amber:wireless";
                        gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
                };
 
                led_power: power {
-                       label = "wsr-2533dhpl:green:power";
+                       label = "green:power";
                        gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
                };
 
                led_diag: diag {
-                       label = "wsr-2533dhpl:amber:diag";
+                       label = "amber:diag";
                        gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
                };
 
                wireless_green {
-                       label = "wsr-2533dhpl:green:wireless";
+                       label = "green:wireless";
                        gpios = <&gpio 48 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
 &gmac0 {
-       mtd-mac-address = <&factory 0x4>;
-       mtd-mac-address-increment = <(-1)>;
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-1)>;
+};
+
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy0>;
+
+       nvmem-cells = <&macaddr_factory_4>;
+       nvmem-cell-names = "mac-address";
+       mac-address-increment = <(-1)>;
+};
+
+&mdio {
+       ethphy0: ethernet-phy@0 {
+               reg = <0>;
+       };
 };
 
 &switch0 {
        ports {
-               port@0 {
-                       status = "okay";
-                       label = "wan";
-               };
-
                port@1 {
                        status = "okay";
                        label = "lan4";
 &xhci {
        status = "disabled";
 };
+
+&factory {
+       compatible = "nvmem-cells";
+       #address-cells = <1>;
+       #size-cells = <1>;
+
+       macaddr_factory_4: macaddr@4 {
+               reg = <0x4 0x6>;
+       };
+};