diff options
Diffstat (limited to 'target/linux/ramips/dts/rt3662_omnima_hpm.dts')
-rw-r--r-- | target/linux/ramips/dts/rt3662_omnima_hpm.dts | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/target/linux/ramips/dts/rt3662_omnima_hpm.dts b/target/linux/ramips/dts/rt3662_omnima_hpm.dts index 84ca468e3d..644cc557b9 100644 --- a/target/linux/ramips/dts/rt3662_omnima_hpm.dts +++ b/target/linux/ramips/dts/rt3662_omnima_hpm.dts @@ -110,9 +110,20 @@ }; factory: partition@40000 { - reg = <0x00040000 0x00010000>; + compatible = "nvmem-cells"; label = "factory"; + reg = <0x00040000 0x00010000>; + #address-cells = <1>; + #size-cells = <1>; read-only; + + eeprom_factory_0: eeprom@0 { + reg = <0x0 0x200>; + }; + + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; + }; }; partition@50000 { @@ -147,7 +158,8 @@ }; &wmac { - ralink,mtd-eeprom = <&factory 0x0>; + nvmem-cells = <&eeprom_factory_0>; + nvmem-cell-names = "eeprom"; }; &ehci { @@ -157,13 +169,3 @@ &ohci { status = "okay"; }; - -&factory { - compatible = "nvmem-cells"; - #address-cells = <1>; - #size-cells = <1>; - - macaddr_factory_28: macaddr@28 { - reg = <0x28 0x6>; - }; -}; |