-/dts-v1/;
-
#include "rt2880.dtsi"
#include <dt-bindings/gpio/gpio.h>
led-upgrade = &led_power;
};
- cfi@1f000000 {
+ flash@1f000000 {
compatible = "cfi-flash";
reg = <0x1f000000 0x800000>;
bank-width = <2>;
compatible = "gpio-leds";
led_power: power {
- label = "rt-n15:blue:power";
+ label = "blue:power";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
};
};
-&gpio0 {
- status = "okay";
-};
-
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartlite", "mdio";
- ralink,function = "gpio";
- };
+&state_default {
+ 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>;
+ ralink,mtd-eeprom = <&factory 0x0>;
+};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};