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
/
mt7620a_kimax_u25awf-h1.dts
diff --git
a/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
b/target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
index 87e6222c534e8f2ef3ae469e172d06b6bb919b4b..fbd4f9ff47f8ede3b405ba6e092cc0276e8a8ae1 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
+++ b/
target/linux/ramips/dts/mt7620a_kimax_u25awf-h1.dts
@@
-73,9
+73,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 {
@@
-101,7
+112,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&state_default {
};
&state_default {
@@
-110,13
+122,3
@@
function = "gpio";
};
};
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};