-/dts-v1/;
-
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
label-mac-device = &wmac;
};
- cfi@1f000000 {
+ flash@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
bank-width = <2>;
label = "devdata";
reg = <0x30000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_devdata_4000: eeprom@4000 {
+ reg = <0x4000 0x200>;
+ };
+ };
};
partition@40000 {
leds {
compatible = "gpio-leds";
- status {
- label = "dir-615-d:amber:status";
+ status_amber {
+ label = "amber:status";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- led_status_green: status2 {
- label = "dir-615-d:green:status";
+ led_status_green: status_green {
+ label = "green:status";
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
default-state = "on";
};
- wan {
- label = "dir-615-d:amber:wan";
+ wan_amber {
+ label = "amber:wan";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
- wan2 {
- label = "dir-615-d:green:wan";
+ wan_green {
+ label = "green:wan";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
wps {
- label = "dir-615-d:blue:wps";
+ label = "blue:wps";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
};
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x4000>;
+ nvmem-cells = <&eeprom_devdata_4000>;
+ nvmem-cell-names = "eeprom";
};
&state_default {