ramips: use fixed layout cell "mac-base" for jdcloud re-sp-01b
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 210dbcf6a3)
This commit is contained in:
@@ -53,8 +53,8 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
nvmem-cells = <&macaddr_config_4429 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
@@ -62,8 +62,8 @@
|
||||
label = "wan";
|
||||
phy-handle = <ðphy0>;
|
||||
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
nvmem-cells = <&macaddr_config_4429 0>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&mdio {
|
||||
@@ -95,10 +95,23 @@
|
||||
read-only;
|
||||
};
|
||||
|
||||
config: partition@30000 {
|
||||
partition@30000 {
|
||||
label = "config";
|
||||
reg = <0x30000 0x10000>;
|
||||
read-only;
|
||||
|
||||
compatible = "nvmem-cells";
|
||||
nvmem-layout {
|
||||
compatible = "fixed-layout";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_4429: macaddr@4429 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4429 0x11>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
factory: partition@40000 {
|
||||
@@ -149,8 +162,6 @@
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
};
|
||||
@@ -158,10 +169,8 @@
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
mac-address-increment-byte = <3>;
|
||||
mac-address-increment = <0x80>;
|
||||
nvmem-cells = <&macaddr_config_4429 0x800000>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
@@ -173,13 +182,3 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&config {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_4429: macaddr@4429 {
|
||||
reg = <0x4429 0x11>;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user