summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts')
-rw-r--r--target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts28
1 files changed, 14 insertions, 14 deletions
diff --git a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
index fe503289a3..112e5a6fbc 100644
--- a/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
+++ b/target/linux/ramips/dts/rt3883_trendnet_tew-691gr.dts
@@ -37,9 +37,20 @@
};
factory: partition@40000 {
- reg = <0x00040000 0x00010000>;
+ compatible = "nvmem-cells";
label = "factory";
+ reg = <0x00040000 0x00010000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
read-only;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
};
partition@50000 {
@@ -115,19 +126,8 @@
&wmac {
status = "okay";
- ralink,mtd-eeprom = <&factory 0x0>;
ralink,5ghz = <0>;
- nvmem-cells = <&macaddr_factory_4>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_4>;
+ nvmem-cell-names = "eeprom", "mac-address";
mac-address-increment = <1>;
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};