mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 15:33:03 +00:00
ramips: mt7621: convert Wavlink devices EEPROM to NVMEM format
-+------------------------------+- | Model | NIC | -+------------------------------+- | WL-WN531A6 | MT7603 + MT7615 | -+------------------------------+- | WL-WN533A8 | MT7615 *2 | -+------------------------------+- Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
parent
3158a09bef
commit
52c3f951f0
@ -7,6 +7,11 @@
|
|||||||
model = "Wavlink WL-WN533A8";
|
model = "Wavlink WL-WN533A8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* override EEPROM size to 0x4da8 for MT7615 */
|
||||||
|
&eeprom_factory_0 {
|
||||||
|
reg = <0x0 0x4da8>;
|
||||||
|
};
|
||||||
|
|
||||||
&wifi0{
|
&wifi0{
|
||||||
ieee80211-freq-limit = <2400000 5490000>;
|
ieee80211-freq-limit = <2400000 5490000>;
|
||||||
};
|
};
|
||||||
|
@ -101,6 +101,14 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
eeprom_factory_0: eeprom@0 {
|
||||||
|
reg = <0x0 0x400>;
|
||||||
|
};
|
||||||
|
|
||||||
|
eeprom_factory_8000: eeprom@8000 {
|
||||||
|
reg = <0x8000 0x4da8>;
|
||||||
|
};
|
||||||
|
|
||||||
macaddr_factory_e000: macaddr@e000 {
|
macaddr_factory_e000: macaddr@e000 {
|
||||||
reg = <0xe000 0x6>;
|
reg = <0xe000 0x6>;
|
||||||
};
|
};
|
||||||
@ -134,7 +142,8 @@
|
|||||||
wifi0: mt76@0,0 {
|
wifi0: mt76@0,0 {
|
||||||
compatible = "mediatek,mt76";
|
compatible = "mediatek,mt76";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
nvmem-cells = <&eeprom_factory_0>;
|
||||||
|
nvmem-cell-names = "eeprom";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -142,7 +151,8 @@
|
|||||||
wifi1: mt76@0,0 {
|
wifi1: mt76@0,0 {
|
||||||
compatible = "mediatek,mt76";
|
compatible = "mediatek,mt76";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
nvmem-cells = <&eeprom_factory_8000>;
|
||||||
|
nvmem-cell-names = "eeprom";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user