projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: mt7621: convert I-O DATA devices EEPROM to NVMEM format
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620n_netgear_pr2000.dts
diff --git
a/target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
b/target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
index 09d70af4c71e1c2b76396cb71164cbe236b7b302..f06b97498221ac9d830721e0ef9cc13adacb9a0b 100644
(file)
--- a/
target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
+++ b/
target/linux/ramips/dts/mt7620n_netgear_pr2000.dts
@@
-107,18
+107,31
@@
label = "factory";
reg = <0xf60000 0x10000>;
read-only;
label = "factory";
reg = <0xf60000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+ };
};
board_data: partition@f70000 {
};
board_data: partition@f70000 {
- compatible = "nvmem-cells";
label = "board_data";
reg = <0xf70000 0x10000>;
label = "board_data";
reg = <0xf70000 0x10000>;
- #address-cells = <1>;
- #size-cells = <1>;
read-only;
read-only;
- macaddr_board_data_b0: macaddr@b0 {
- reg = <0xb0 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_board_data_b0: macaddr@b0 {
+ reg = <0xb0 0x6>;
+ };
};
};
};
};
@@
-187,9
+200,8
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
- nvmem-cells = <&macaddr_board_data_b0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_board_data_b0>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&state_default {
};
&state_default {