X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Frt2880_asus_rt-n15.dts;h=0275a84bde0f447ecf7064b2f200278185eb3df2;hb=443e3bd1c6e61aa39f4fc176b22ad2d75f33bcb4;hp=af7f2929a34851ea1209c79bd83b09300a3a7515;hpb=621297e86736556f772a3a1e3907c4ad9223bd74;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts index af7f2929a3..0275a84bde 100644 --- a/target/linux/ramips/dts/rt2880_asus_rt-n15.dts +++ b/target/linux/ramips/dts/rt2880_asus_rt-n15.dts @@ -43,6 +43,20 @@ 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 { @@ -80,16 +94,12 @@ 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"; @@ -99,7 +109,8 @@ ð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>; @@ -116,5 +127,6 @@ }; &wmac { - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; };