ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc2.dts
index cd72ea1d62801bb46ece9b6ef564d345576e5e9b..e898046eaf908676625b9c5c7675f61610bedcf0 100644 (file)
@@ -2,10 +2,11 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc";
-       model = "GB-PC2";
+       model = "GnuBee GB-PC2";
 
        aliases {
                led-boot = &led_system;
        leds {
                compatible = "gpio-leds";
 
-               ethblack_act {
-                       label = "green:ethblack_act";
+               ethblack-green {
+                       label = "green:ethblack";
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
 
-               ethblue_act {
-                       label = "green:ethblue_act";
+               ethblue-green {
+                       label = "green:ethblue";
                        gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
                };
 
+               ethyellow-green {
+                       label = "green:ethyellow";
+                       gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
+               };
+
+               ethyellow-orange {
+                       label = "orange:ethyellow";
+                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
+               };
+
                power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "default-on";
                };
                                read-only;
                        };
 
-                       factory: partition@40000 {
+                       partition@40000 {
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_factory_e000: macaddr@e000 {
+                                               reg = <0xe000 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
 &gmac1 {
        status = "okay";
        label = "ethyellow";
+       phy-mode = "rgmii-rxid";
        phy-handle = <&ethphy5>;
 
        nvmem-cells = <&macaddr_factory_e000>;
 &mdio {
        ethphy5: ethernet-phy@5 {
                reg = <5>;
-               phy-mode = "rgmii-rxid";
        };
 };
 
                function = "gpio";
        };
 };
-
-&factory {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_factory_e000: macaddr@e000 {
-               reg = <0xe000 0x6>;
-       };
-};