projects
/
openwrt
/
staging
/
hauke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/hauke.git]
/
target
/
linux
/
ramips
/
dts
/
rt2880_buffalo_wli-tx4-ag300n.dts
diff --git
a/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
b/target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
index 3ec9140b188761efc9025e8e02255c99a706bdcf..37288e5fc4014e9de9e6dd954d6e977d2ac695d6 100644
(file)
--- a/
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
+++ b/
target/linux/ramips/dts/rt2880_buffalo_wli-tx4-ag300n.dts
@@
-43,6
+43,20
@@
label = "factory";
reg = <0x40000 0x10000>;
read-only;
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_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
};
partition@50000 {
@@
-96,13
+110,10
@@
};
};
};
};
-&gpio0 {
- status = "okay";
-};
-
ðernet {
status = "okay";
ðernet {
status = "okay";
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@0 {
mediatek,fixed-link = <100 1 1 1>;
port@0 {
mediatek,fixed-link = <100 1 1 1>;
@@
-119,5
+130,6
@@
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};