projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: convert MT7628 EEPROM to NVMEM format
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7628an_glinet_vixmini_microuter.dtsi
diff --git
a/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
b/target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
index 089a3f3c42780bcb45845af047fb73e64ea1e671..eea070a03ad3e69c2a3598b3474309c6e5d425c1 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_glinet_vixmini_microuter.dtsi
@@
-60,7
+60,8
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
- mediatek,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&spi0 {
};
&spi0 {
@@
-89,9
+90,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 0x400>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
/*
};
/*
@@
-105,13
+117,3
@@
};
};
};
};
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};