X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Frt3050_jcg_jhr-n805r.dts;h=61fac83b14661a301f6d809f30ff06bb2248ca5d;hb=47818fbc012d7b8ef4129bf702da2d6aae07266e;hp=a81112c1e205f249bd6d611465d6c9d24101e040;hpb=1eceab3fc0f9875da0cc6b83be4438593f617287;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts index a81112c1e2..61fac83b14 100644 --- a/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts +++ b/target/linux/ramips/dts/rt3050_jcg_jhr-n805r.dts @@ -1,5 +1,3 @@ -/dts-v1/; - #include "rt3050.dtsi" #include @@ -20,7 +18,7 @@ compatible = "gpio-leds"; led_system: system { - label = "jhr-n805r:blue:system"; + label = "blue:system"; gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; }; }; @@ -73,6 +71,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_2e: macaddr@2e { + reg = <0x2e 0x6>; + }; + }; }; partition@50000 { @@ -85,7 +97,8 @@ }; ðernet { - mtd-mac-address = <&factory 0x2e>; + nvmem-cells = <&macaddr_factory_2e>; + nvmem-cell-names = "mac-address"; }; &esw { @@ -93,5 +106,6 @@ }; &wmac { - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; };