mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
ramips: mt7621: convert Linksys devices EEPROM to NVMEM format
-+-----------------------------+- | Model | NIC | -+-----------------------------+- | EA6350 v4 | MT7603 + MT7613 | -+-----------------------------+- | EA7300 v2 | MT7603 + MT7615 | -+-----------------------------+- | Others | MT7615 *2 | -+-----------------------------+- Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
parent
a6724ba702
commit
3f8ed239a6
@ -7,6 +7,11 @@
|
|||||||
model = "Linksys EA6350 v4";
|
model = "Linksys EA6350 v4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* override EEPROM size to 0x400 for MT7603 */
|
||||||
|
&eeprom_factory_0 {
|
||||||
|
reg = <0x0 0x400>;
|
||||||
|
};
|
||||||
|
|
||||||
&gmac1 {
|
&gmac1 {
|
||||||
phy-handle = <ðphy4>;
|
phy-handle = <ðphy4>;
|
||||||
};
|
};
|
||||||
|
@ -6,3 +6,8 @@
|
|||||||
compatible = "linksys,ea7300-v2", "mediatek,mt7621-soc";
|
compatible = "linksys,ea7300-v2", "mediatek,mt7621-soc";
|
||||||
model = "Linksys EA7300 v2";
|
model = "Linksys EA7300 v2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* override EEPROM size to 0x400 for MT7603 */
|
||||||
|
&eeprom_factory_0 {
|
||||||
|
reg = <0x0 0x400>;
|
||||||
|
};
|
||||||
|
@ -101,6 +101,20 @@
|
|||||||
label = "factory";
|
label = "factory";
|
||||||
reg = <0xc0000 0x40000>;
|
reg = <0xc0000 0x40000>;
|
||||||
read-only;
|
read-only;
|
||||||
|
|
||||||
|
nvmem-layout {
|
||||||
|
compatible = "fixed-layout";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
eeprom_factory_0: eeprom@0 {
|
||||||
|
reg = <0x0 0x4da8>;
|
||||||
|
};
|
||||||
|
|
||||||
|
eeprom_factory_8000: eeprom@8000 {
|
||||||
|
reg = <0x8000 0x4da8>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@100000 {
|
partition@100000 {
|
||||||
@ -165,7 +179,8 @@
|
|||||||
mt76@0,0 {
|
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 0x0000>;
|
nvmem-cells = <&eeprom_factory_0>;
|
||||||
|
nvmem-cell-names = "eeprom";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -173,7 +188,8 @@
|
|||||||
mt76@0,0 {
|
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