#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "firefly,firewrt", "mediatek,mt7621-soc";
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
};
};
read-only;
};
- factory: partition@40000 {
+ partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
macaddr_factory_e000: macaddr@e000 {
+ compatible = "mac-base";
reg = <0xe000 0x6>;
+ #nvmem-cell-cells = <1>;
};
};
};
};
&gmac0 {
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 0>;
nvmem-cell-names = "mac-address";
};
port@4 {
status = "okay";
label = "wan";
- nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cells = <&macaddr_factory_e000 1>;
nvmem-cell-names = "mac-address";
- mac-address-increment = <1>;
};
};
};