};
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>;
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;
};
};
};
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>;
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;
};
};
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>;
};
};
};
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 {
};
};
+&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";
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;
};
};
};
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 {
};
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 */
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;
};
};
};
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>;
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;
};
};
};
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>;
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>;
};
};
};
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 {
};
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>;
- };
};
};
};
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;
};
};
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
};
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 {
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>;
};
};
};
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 {
};
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>;
- };
};
};
};
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;
};
};
function = "gpio";
};
};
+
+&config {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
};
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>;
- };
};
};
};
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;
};
};
};
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 {
};
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>;
- };
};
};
};
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;
};
};
};
};
};
+
+&info {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_info_8: macaddr@8 {
+ reg = <0x8 0x6>;
+ };
+};
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x400>;
};
-
- eeprom_factory_20000: eeprom@20000 {
- reg = <0x20000 0xe00>;
- };
};
eeprom: partition@b0000 {
&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.
*
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>;
};
};
};
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 {
};
};
};
+
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_3fff4: macaddr@3fff4 {
+ reg = <0x3fff4 0x6>;
+ };
+
+};
*/
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 {
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;
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_e000: macaddr@e000 {
+ reg = <0xe000 0x6>;
+ };
+};
*/
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 {
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;
};
};
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>;
+ };
+};
+
*/
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 {
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;
};
};
function = "gpio";
};
};
+
+&factory {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_0004: macaddr@0004 {
+ reg = <0x0004 0x6>;
+ };
+};
};
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 {
};
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>;
- };
};
};
};
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 */
};
};
};
+&mrd {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_mrd_1fff8: macaddr@1fff8 {
+ reg = <0x1fff8 0x6>;
+ };
+};
+
&state_default {
gpio {
groups = "uart3";
};
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 {
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;
};
};
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>;
+ };
+};