-/dts-v1/;
-
#include "rt3050.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
/ {
compatible = "dlink,dap-1350", "ralink,rt3052-soc";
read-only;
};
- devdata: partition@30000 {
+ partition@30000 {
label = "devdata";
reg = <0x30000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_devdata_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_devdata_2e: macaddr@2e {
+ reg = <0x2e 0x6>;
+ };
+ };
};
partition@40000 {
compatible = "gpio-leds";
led_power_blue: power {
- label = "dap-1350:blue:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
power2 {
- label = "dap-1350:red:power";
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_RED>;
gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
};
wps {
- label = "dap-1350:blue:wps";
+ function = LED_FUNCTION_WPS;
+ color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
};
ðernet {
- mtd-mac-address = <&devdata 0x2e>;
+ nvmem-cells = <&macaddr_devdata_2e>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&wmac {
- ralink,mtd-eeprom = <&devdata 0x0>;
+ nvmem-cells = <&eeprom_devdata_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {