mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 10:46:41 +00:00
Revert "ramips: convert MT7915 EEPROM to NVMEM format"
Some MT7915 devices need to load the second part of the eeprom to
work properly. The mt76 driver is not yet ready to read the pre-cal
data via the NVMEM cell. Therefore, partially revert commit to fix
the device probe issue on some devices.
P.S.
Except for D-Link and Ubnt devices, It is still uncertain whether
pre-cal data is required for other devices in the patch.
This partially reverts commit 9ac891f8c4
.
Fixes: https://github.com/openwrt/openwrt/issues/13700
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
This commit is contained in:
parent
9921973ca4
commit
6f31941d38
@ -95,16 +95,13 @@
|
||||
};
|
||||
|
||||
factory: partition@1e0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x1e0000 0x100000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
reg = <0x4 0x6>;
|
||||
@ -158,8 +155,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
|
@ -87,16 +87,13 @@
|
||||
};
|
||||
|
||||
factory: partition@1e0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x1e0000 0x100000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
reg = <0x4 0x6>;
|
||||
@ -131,8 +128,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
|
@ -59,8 +59,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -88,20 +87,9 @@
|
||||
};
|
||||
|
||||
factory: partition@50000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x50000 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>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@90000 {
|
||||
@ -113,6 +101,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
reg = <0xe000 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_factory_e000>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
|
@ -81,8 +81,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -115,16 +114,9 @@
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@50000 {
|
||||
|
@ -76,16 +76,9 @@
|
||||
};
|
||||
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
/* additional partitions in DTS */
|
||||
@ -101,8 +94,7 @@
|
||||
wifi:wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0000>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
|
@ -125,16 +125,13 @@
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x100000 0x80000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
reg = <0x4 0x6>;
|
||||
@ -178,8 +175,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
|
@ -73,16 +73,13 @@
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x100000 0x80000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
reg = <0x4 0x6>;
|
||||
@ -171,7 +168,6 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
};
|
||||
|
@ -72,16 +72,9 @@
|
||||
};
|
||||
|
||||
config: partition@fa0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "config";
|
||||
reg = <0xfa0000 0x010000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@fb0000 {
|
||||
@ -91,16 +84,9 @@
|
||||
};
|
||||
|
||||
radio: partition@ff0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "radio";
|
||||
reg = <0xff0000 0x010000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_radio_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -114,8 +100,9 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
|
||||
nvmem-cell-names = "eeprom", "mac-address";
|
||||
mediatek,mtd-eeprom = <&radio 0x0>;
|
||||
nvmem-cells = <&macaddr_config_8>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -166,3 +153,13 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&config {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
@ -107,16 +107,9 @@
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "Factory";
|
||||
reg = <0x100000 0x80000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@180000 {
|
||||
@ -178,8 +171,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -105,16 +105,9 @@
|
||||
};
|
||||
|
||||
config: partition@fa0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "config";
|
||||
reg = <0xfa0000 0x010000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@fb0000 {
|
||||
@ -124,16 +117,9 @@
|
||||
};
|
||||
|
||||
radio: partition@ff0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "radio";
|
||||
reg = <0xff0000 0x010000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_radio_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -147,8 +133,9 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_8>;
|
||||
nvmem-cell-names = "eeprom", "mac-address";
|
||||
mediatek,mtd-eeprom = <&radio 0x0>;
|
||||
nvmem-cells = <&macaddr_config_8>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -204,3 +191,13 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&config {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
@ -108,16 +108,9 @@
|
||||
};
|
||||
|
||||
radio: partition@ff0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "radio";
|
||||
reg = <0xff0000 0x10000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_radio_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -138,8 +131,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_radio_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&radio 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
|
@ -90,16 +90,9 @@
|
||||
};
|
||||
|
||||
info: partition@90000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "product-info";
|
||||
reg = <0x90000 0x10000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
macaddr_info_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@a0000 {
|
||||
@ -127,16 +120,9 @@
|
||||
};
|
||||
|
||||
radio: partition@ff0000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "radio";
|
||||
reg = <0xff0000 0x10000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_radio_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -157,8 +143,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_radio_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&radio 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -201,3 +186,13 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&info {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_info_8: macaddr@8 {
|
||||
reg = <0x8 0x6>;
|
||||
};
|
||||
};
|
||||
|
@ -47,10 +47,6 @@
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0x400>;
|
||||
};
|
||||
|
||||
eeprom_factory_20000: eeprom@20000 {
|
||||
reg = <0x20000 0xe00>;
|
||||
};
|
||||
};
|
||||
|
||||
eeprom: partition@b0000 {
|
||||
@ -108,8 +104,10 @@
|
||||
&wlan_5g {
|
||||
compatible = "mediatek,mt76";
|
||||
|
||||
nvmem-cells = <&eeprom_factory_20000>, <&macaddr_eeprom_6>;
|
||||
nvmem-cell-names = "eeprom", "mac-address";
|
||||
mediatek,mtd-eeprom = <&factory 0x20000>;
|
||||
|
||||
nvmem-cells = <&macaddr_eeprom_6>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
|
||||
/* This is a workaround.
|
||||
*
|
||||
|
@ -61,8 +61,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
};
|
||||
|
||||
@ -88,19 +87,8 @@
|
||||
};
|
||||
|
||||
factory:partition@50000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x50000 0x40000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
|
||||
macaddr_factory_3fff4: macaddr@3fff4 {
|
||||
reg = <0x3fff4 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@90000 {
|
||||
@ -131,3 +119,15 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_3fff4: macaddr@3fff4 {
|
||||
reg = <0x3fff4 0x6>;
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -112,20 +112,9 @@
|
||||
*/
|
||||
|
||||
factory: partition@50000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "Factory";
|
||||
reg = <0x50000 0x40000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
reg = <0xe000 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@90000 {
|
||||
@ -145,8 +134,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -190,3 +178,13 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_e000: macaddr@e000 {
|
||||
reg = <0xe000 0x6>;
|
||||
};
|
||||
};
|
||||
|
@ -120,24 +120,9 @@
|
||||
*/
|
||||
|
||||
factory: partition@50000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "Factory";
|
||||
reg = <0x50000 0x40000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
|
||||
macaddr_factory_0004: macaddr@0004 {
|
||||
reg = <0x0004 0x6>;
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
reg = <0xe006 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@90000 {
|
||||
@ -157,8 +142,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -217,3 +201,18 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_0004: macaddr@0004 {
|
||||
reg = <0x0004 0x6>;
|
||||
};
|
||||
|
||||
macaddr_factory_e006: macaddr@e006 {
|
||||
reg = <0xe006 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -90,20 +90,9 @@
|
||||
*/
|
||||
|
||||
factory: partition@50000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "Factory";
|
||||
reg = <0x50000 0x40000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
|
||||
macaddr_factory_0004: macaddr@0004 {
|
||||
reg = <0x0004 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@90000 {
|
||||
@ -123,8 +112,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -149,3 +137,13 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_0004: macaddr@0004 {
|
||||
reg = <0x0004 0x6>;
|
||||
};
|
||||
};
|
||||
|
@ -37,16 +37,9 @@
|
||||
};
|
||||
|
||||
factory: partition@100000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "factory";
|
||||
reg = <0x100000 0x80000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@180000 {
|
||||
@ -100,16 +93,9 @@
|
||||
};
|
||||
|
||||
mrd: partition@7780000 {
|
||||
compatible = "nvmem-cells";
|
||||
label = "mrd";
|
||||
reg = <0x7780000 0x80000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
read-only;
|
||||
|
||||
macaddr_mrd_1fff8: macaddr@1fff8 {
|
||||
reg = <0x1fff8 0x6>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -123,8 +109,7 @@
|
||||
reg = <0x0 0 0 0 0>;
|
||||
compatible = "mediatek,mt76";
|
||||
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
|
||||
/* MAC-Address set in userspace */
|
||||
};
|
||||
@ -144,6 +129,16 @@
|
||||
};
|
||||
};
|
||||
|
||||
&mrd {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_mrd_1fff8: macaddr@1fff8 {
|
||||
reg = <0x1fff8 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
&state_default {
|
||||
gpio {
|
||||
groups = "uart3";
|
||||
|
@ -103,24 +103,9 @@
|
||||
};
|
||||
|
||||
factory: partition@200000 {
|
||||
compatible = "nvmem-cells";
|
||||
reg = <0x200000 0x1c0000>;
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
label = "Factory";
|
||||
read-only;
|
||||
|
||||
eeprom_factory_0: eeprom@0 {
|
||||
reg = <0x0 0xe00>;
|
||||
};
|
||||
|
||||
macaddr_factory_1fdfa: macaddr@1fdfa {
|
||||
reg = <0x1fdfa 0x6>;
|
||||
};
|
||||
|
||||
macaddr_factory_1fdf4: macaddr@1fdf4 {
|
||||
reg = <0x1fdf4 0x6>;
|
||||
};
|
||||
};
|
||||
|
||||
partition@3c0000 {
|
||||
@ -200,8 +185,7 @@
|
||||
wifi@0,0 {
|
||||
compatible = "mediatek,mt76";
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&eeprom_factory_0>;
|
||||
nvmem-cell-names = "eeprom";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
mediatek,disable-radar-background;
|
||||
};
|
||||
};
|
||||
@ -233,3 +217,17 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&factory {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_factory_1fdfa: macaddr@1fdfa {
|
||||
reg = <0x1fdfa 0x6>;
|
||||
};
|
||||
|
||||
macaddr_factory_1fdf4: macaddr@1fdf4 {
|
||||
reg = <0x1fdf4 0x6>;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user