flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <50000000>;
+ spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
label = "config";
reg = <0x7c0000 0x30000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_config_2008: macaddr@2008 {
+ compatible = "mac-base";
+ reg = <0x2008 0x6>;
+ #nvmem-cell-cells = <1>;
+ };
+ };
};
radio: partition@7f0000 {
label = "radio";
reg = <0x7f0000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_radio_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ eeprom_radio_8000: eeprom@8000 {
+ reg = <0x8000 0x200>;
+ };
+ };
};
};
};
};
&wlan5g {
- mediatek,mtd-eeprom = <&radio 0x8000>;
-
- nvmem-cells = <&macaddr_config_2008>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(-2)>;
+ nvmem-cells = <&eeprom_radio_8000>, <&macaddr_config_2008 (-2)>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
&wmac {
- mediatek,mtd-eeprom = <&radio 0x0>;
-
- nvmem-cells = <&macaddr_config_2008>;
- nvmem-cell-names = "mac-address";
- mac-address-increment = <(-1)>;
+ nvmem-cells = <&eeprom_radio_0>, <&macaddr_config_2008 (-1)>;
+ nvmem-cell-names = "eeprom", "mac-address";
};
ðernet {
- nvmem-cells = <&macaddr_config_2008>;
+ nvmem-cells = <&macaddr_config_2008 0>;
nvmem-cell-names = "mac-address";
};
-
-&config {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_config_2008: macaddr@2008 {
- reg = <0x2008 0x6>;
- };
-};