projects
/
openwrt
/
staging
/
wigyori.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/staging/wigyori.git]
/
target
/
linux
/
ramips
/
dts
/
rt5350_hame_mpr-a1.dts
diff --git
a/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
b/target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
index a246c22c21527194b89db4041504911f8dec4681..f29c307c8296dacc5a683572d6909834e7f282d7 100644
(file)
--- a/
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
+++ b/
target/linux/ramips/dts/rt5350_hame_mpr-a1.dts
@@
-83,9
+83,20
@@
};
factory: partition@40000 {
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
label = "factory";
reg = <0x40000 0x10000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
};
partition@50000 {
@@
-114,15
+125,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
-};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};