aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/dts/mt7621_totolink_x5000r.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-09 11:15:52 +0200
commit9ac891f8c44124e931c15f1257347cd8ba311a19 (patch)
tree72cb12e437bee37c9955f20e421fefb19684f365 /target/linux/ramips/dts/mt7621_totolink_x5000r.dts
parent65cd6a6fec891b0502350c6782f12ee914dfa6a8 (diff)
ramips: convert MT7915 EEPROM to NVMEM format
This patch converts MT7915 WiFi calibration data to NVMEM format. The EEPROM size is 0xe00. Signed-off-by: Shiji Yang <yangshiji66@qq.com>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_totolink_x5000r.dts')
-rw-r--r--target/linux/ramips/dts/mt7621_totolink_x5000r.dts32
1 files changed, 17 insertions, 15 deletions
diff --git a/target/linux/ramips/dts/mt7621_totolink_x5000r.dts b/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
index 79667caf73..23d47d6ea3 100644
--- a/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
+++ b/target/linux/ramips/dts/mt7621_totolink_x5000r.dts
@@ -70,9 +70,24 @@
};
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 0xe00>;
+ };
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+
+ macaddr_factory_e006: macaddr@e006 {
+ reg = <0xe006 0x6>;
+ };
};
partition@50000 {
@@ -92,7 +107,8 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
mediatek,disable-radar-background;
};
};
@@ -147,17 +163,3 @@
function = "gpio";
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_e000: macaddr@e000 {
- reg = <0xe000 0x6>;
- };
-
- macaddr_factory_e006: macaddr@e006 {
- reg = <0xe006 0x6>;
- };
-};