ramips: convert EEPROM to NVMEM format for JDC RE-SP-01b

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 3b652ead1e)
This commit is contained in:
Tianling Shen 2023-10-10 09:54:43 +08:00
parent f2e7ca567c
commit d5b4471b85
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -114,10 +114,25 @@
};
};
factory: partition@40000 {
partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
compatible = "nvmem-cells";
nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
eeprom_factory_8000: eeprom@8000 {
reg = <0x8000 0x4da8>;
};
};
};
partition@50000 {
@ -162,16 +177,16 @@
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
nvmem-cells = <&eeprom_factory_0>;
nvmem-cell-names = "eeprom";
};
};
&pcie1 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&macaddr_config_4429 0x800000>;
nvmem-cell-names = "mac-address";
mediatek,mtd-eeprom = <&factory 0x8000>;
nvmem-cells = <&eeprom_factory_8000>, <&macaddr_config_4429 0x800000>;
nvmem-cell-names = "eeprom", "mac-address";
ieee80211-freq-limit = <5000000 6000000>;
};
};