-/dts-v1/;
-
#include "rt3883.dtsi"
#include <dt-bindings/gpio/gpio.h>
led-upgrade = &led_power;
};
- nor-flash@1c000000 {
+ flash@1c000000 {
compatible = "cfi-flash";
reg = <0x1c000000 0x800000>;
bank-width = <2>;
compatible = "gpio-leds";
led_power: power {
- label = "rt-n56u:blue:power";
+ label = "blue:power";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
};
lan {
- label = "rt-n56u:blue:lan";
+ label = "blue:lan";
gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
};
wan {
- label = "rt-n56u:blue:wan";
+ label = "blue:wan";
gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
};
usb {
- label = "rt-n56u:blue:usb";
+ label = "blue:usb";
gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
};
};
&state_default {
gpio {
- ralink,group = "spi", "i2c", "jtag", "uartf";
- ralink,function = "gpio";
+ groups = "spi", "i2c", "jtag", "uartf";
+ function = "gpio";
};
};
ðernet {
- 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 {
status = "okay";
ralink,2ghz = <0>;
- ralink,mtd-eeprom = <&factory 0>;
+ ralink,mtd-eeprom = <&factory 0x0>;
};
&ehci {
&ohci {
status = "okay";
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+};