-/dts-v1/;
-
#include "rt2880.dtsi"
#include <dt-bindings/gpio/gpio.h>
led-upgrade = &led_router;
};
- cfi@1f000000 {
+ flash@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
bank-width = <2>;
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
compatible = "gpio-leds";
led_router: router {
- label = "wzr-agl300nh:green:router";
+ label = "green:router";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
diag {
- label = "wzr-agl300nh:red:diag";
+ label = "red:diag";
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
};
security_g {
- label = "wzr-agl300nh:orange:security_g";
+ label = "orange:security_g";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
security_n {
- label = "wzr-agl300nh:orange:security_n";
+ label = "orange:security_n";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
};
};
-&gpio0 {
- status = "okay";
-};
-
&state_default {
gpio {
- ralink,group = "i2c", "uartlite", "mdio";
- ralink,function = "gpio";
+ groups = "i2c", "uartlite", "mdio";
+ function = "gpio";
};
};
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <1000 1 1 1>;
};
&wmac {
- ralink,mtd-eeprom = <&factory 0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};