X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Frt2880_airlink101_ar725w.dts;h=f41a9b8561edfc2411982443f3345b3bab1f2d91;hb=a6724ba702decab6dfcc9477d632e53fa826f678;hp=5890f9958aa02e6521ce907e5d9f01435f3ef22f;hpb=b756ea2a909a36d7e931b96edf0d15539421c733;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts index 5890f9958a..f41a9b8561 100644 --- a/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts +++ b/target/linux/ramips/dts/rt2880_airlink101_ar725w.dts @@ -1,5 +1,3 @@ -/dts-v1/; - #include "rt2880.dtsi" #include @@ -16,7 +14,7 @@ led-upgrade = &led_power; }; - cfi@bdc00000 { + flash@bdc00000 { compatible = "cfi-flash"; reg = <0xbc400000 0x800000>; bank-width = <2>; @@ -41,6 +39,20 @@ reg = <0x40000 0x10000>; label = "factory"; 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 { @@ -55,17 +67,17 @@ compatible = "gpio-leds"; led_power: power { - label = "ar725w:green:power"; + label = "green:power"; gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; }; wpsred { - label = "ar725w:red:wps"; + label = "red:wps"; gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; }; wpsblue { - label = "ar725w:blue:wps"; + label = "blue:wps"; gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; }; }; @@ -88,10 +100,6 @@ }; }; -&gpio0 { - status = "okay"; -}; - &state_default { gpio { groups = "i2c", "spi", "uartlite"; @@ -101,7 +109,8 @@ ðernet { status = "okay"; - mtd-mac-address = <&factory 0x4>; + nvmem-cells = <&macaddr_factory_4>; + nvmem-cell-names = "mac-address"; port@0 { phy-handle = <&phy0>; @@ -119,6 +128,6 @@ }; &wmac { - status = "okay"; - ralink,mtd-eeprom = <&factory 0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; };