// SPDX-License-Identifier: GPL-2.0-or-later
+#include <dt-bindings/leds/common.h>
+
#include "bcm6362.dtsi"
/ {
};
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>;
- };
-};