aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
diff options
context:
space:
mode:
authorShiji Yang <yangshiji66@qq.com>2023-10-02 10:12:02 +0800
committerChristian Marangi <ansuelsmth@gmail.com>2023-10-17 12:07:26 +0200
commitda42c329c6c73b5f4eb40f894195c488ba76d76b (patch)
treea0d580a55ea8e6df922c1e4511beebad5a513389 /target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
parentf35ddef26814b39e829c6e44d94e160bfe8bd7a2 (diff)
ramips: convert rt2x00 EEPROM to NVMEM format
This patch converts legacy Ralink SoCs and MT7620 WiFi calibration data to NVMEM format. The EEPROM size is 0x200. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts')
-rw-r--r--target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts24
1 files changed, 13 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
index 3767afb452..5eee298d8e 100644
--- a/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
+++ b/target/linux/ramips/dts/rt3050_edimax_3g-6200nl.dts
@@ -39,9 +39,20 @@
};
factory: partition@40000 {
+ compatible = "nvmem-cells";
label = "factory";
reg = <0x40000 0x10000>;
+ #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@3e0000 {
@@ -103,19 +114,10 @@
};
&wmac {
- ralink,mtd-eeprom = <&factory 0x0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&otg {
status = "okay";
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_4: macaddr@4 {
- reg = <0x4 0x6>;
- };
-};