ramips: Use dts alias based status led
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / WHR-G300N.dts
index da861ce66e4202a6df6cc7a5abf1dfdc7ffd2f87..7349a239dde37f7c68f1b8454d4421f53ad027dc 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,whr-g300n", "ralink,rt3052-soc";
        model = "Buffalo WHR-G300N";
 
+       aliases {
+               led-status = &led_router;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -55,7 +59,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               router {
+               led_router: router {
                        label = "whr-g300n:green:router";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
+&ethernet {
+       mtd-mac-address = <&factory 0x4>;
+};
+
 &esw {
        mediatek,portmap = <0x2f>;
 };