compatible = "gpio-leds";
led_power: power {
- label = "wnpr2600g:green:power";
+ label = "green:power";
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
notification {
- label = "wnpr2600g:green:notification";
+ label = "green:notification";
gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
};
wlan2g {
- label = "wnpr2600g:green:wlan2g";
+ label = "green:wlan2g";
gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy0radio";
};
wlan5g {
- label = "wnpr2600g:green:wlan5g";
+ label = "green:wlan5g";
gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "phy1radio";
};
};
&gmac0 {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&gmac1 {
+ status = "okay";
+ label = "wan";
+ phy-handle = <ðphy0>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
+};
+
+&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>;
+ };
+};