mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-22 10:01:03 +00:00
ramips: mt7621: convert I-O DATA devices EEPROM to NVMEM format
-+-------------------------------------------+- | Model | NIC | -+-------------------------------------------+- | WN-DX1167R/WN-AX1167GR2 | MT7615D | -+-------------------------------------------+- | WN-AX2033GR/WN-DX2033GR | MT7603 + MT7615 | -+-------------------------------------------+- Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
parent
afc390a69f
commit
cd9088c6f9
@ -7,6 +7,11 @@
|
|||||||
model = "I-O DATA WN-AX1167GR2";
|
model = "I-O DATA WN-AX1167GR2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* override EEPROM size to 0x4da8 for MT7615 */
|
||||||
|
&eeprom_factory_0 {
|
||||||
|
reg = <0x0 0x4da8>;
|
||||||
|
};
|
||||||
|
|
||||||
&partitions {
|
&partitions {
|
||||||
partition@6b00000 {
|
partition@6b00000 {
|
||||||
label = "Backup";
|
label = "Backup";
|
||||||
@ -19,6 +24,7 @@
|
|||||||
wifi@0,0 {
|
wifi@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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
wifi@0,0 {
|
wifi@0,0 {
|
||||||
compatible = "mediatek,mt76";
|
compatible = "mediatek,mt76";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
|
nvmem-cells = <&eeprom_factory_0>;
|
||||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
nvmem-cell-names = "eeprom";
|
||||||
ieee80211-freq-limit = <2400000 2483000>;
|
ieee80211-freq-limit = <2400000 2483000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -29,8 +29,8 @@
|
|||||||
wifi@0,0 {
|
wifi@0,0 {
|
||||||
compatible = "mediatek,mt76";
|
compatible = "mediatek,mt76";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
|
nvmem-cells = <&eeprom_factory_8000>;
|
||||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
nvmem-cell-names = "eeprom";
|
||||||
ieee80211-freq-limit = <5000000 5710000>;
|
ieee80211-freq-limit = <5000000 5710000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
model = "I-O DATA WN-DX1167R";
|
model = "I-O DATA WN-DX1167R";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* override EEPROM size to 0x4da8 for MT7615 */
|
||||||
|
&eeprom_factory_0 {
|
||||||
|
reg = <0x0 0x4da8>;
|
||||||
|
};
|
||||||
|
|
||||||
&partitions {
|
&partitions {
|
||||||
partition@6b00000 {
|
partition@6b00000 {
|
||||||
label = "idmkey";
|
label = "idmkey";
|
||||||
@ -25,6 +30,7 @@
|
|||||||
wifi@0,0 {
|
wifi@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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
wifi@0,0 {
|
wifi@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";
|
||||||
ieee80211-freq-limit = <2400000 2483000>;
|
ieee80211-freq-limit = <2400000 2483000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -34,7 +35,8 @@
|
|||||||
wifi@0,0 {
|
wifi@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";
|
||||||
ieee80211-freq-limit = <5000000 5710000>;
|
ieee80211-freq-limit = <5000000 5710000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -86,6 +86,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>;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user