bmips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / bmips / dts / bcm6362-netgear-dgnd3700-v2.dts
index a335218be07d3ddd16fd7bbcb1960db797f24a6a..94e9aa3d21cfa74b6b0b8acab7816e7b7b32d601 100644 (file)
@@ -1,5 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 
+#include <dt-bindings/leds/common.h>
+
 #include "bcm6362.dtsi"
 
 / {
@@ -48,7 +50,8 @@
                };
 
                led_power_red: led@34 {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
                        panic-indicator;
                };
 
        led_power_green: led@8 {
                reg = <8>;
-               label = "green:power";
+               function = LED_FUNCTION_POWER;
+               color = <LED_COLOR_ID_GREEN>;
        };
 
        led@9 {
                reg = <9>;
                active-low;
-               label = "green:wps";
+               function = LED_FUNCTION_WPS;
+               color = <LED_COLOR_ID_GREEN>;
        };
 
        led@10 {
                        #address-cells = <1>;
                        #size-cells = <1>;
 
-                       cferom: partition@0 {
+                       partition@0 {
                                label = "cferom";
                                reg = <0x0000000 0x0004000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       macaddr_cferom_6a0: macaddr@6a0 {
+                                               reg = <0x6a0 0x6>;
+                                       };
+                               };
                        };
 
                        partition@4000 {
 &usbh {
        status = "okay";
 };
-
-&cferom {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_cferom_6a0: macaddr@6a0 {
-               reg = <0x6a0 0x6>;
-       };
-};