ramips: unielec-u7621-01: Increase SPI frequency to 50MHz
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_asus_rt-n15.dts
index 9bd080ea441595ba738d83578d82723c2bcae788..0275a84bde0f447ecf7064b2f200278185eb3df2 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "rt2880.dtsi"
 
 #include <dt-bindings/gpio/gpio.h>
@@ -18,7 +16,7 @@
                led-upgrade = &led_power;
        };
 
-       cfi@1f000000 {
+       flash@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
                bank-width = <2>;
                                label = "factory";
                                reg = <0x40000 0x10000>;
                                read-only;
+
+                               nvmem-layout {
+                                       compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
+
+                                       eeprom_factory_0: eeprom@0 {
+                                               reg = <0x0 0x200>;
+                                       };
+
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
+                                       };
+                               };
                        };
 
                        partition@50000 {
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "rt-n15:blue:power";
+                       label = "blue:power";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 };
 
-&gpio0 {
-       status = "okay";
-};
-
 &state_default {
        gpio {
                groups = "i2c", "uartlite", "mdio";
 
 &ethernet {
        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";
 };