// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
#include "mt7621.dtsi"
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 = <ðphy0>;
+
+ 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>;
+ };
+};