ramips: use fixed layout cell "mac-base" for jdcloud re-sp-01b
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
01d1752092
commit
210dbcf6a3
@ -53,7 +53,7 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cells = <&macaddr_config_4429 0>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
};
|
||||
|
||||
@ -61,6 +61,9 @@
|
||||
status = "okay";
|
||||
label = "wan";
|
||||
phy-handle = <ðphy0>;
|
||||
|
||||
nvmem-cells = <&macaddr_config_4429 0>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
};
|
||||
|
||||
&mdio {
|
||||
@ -92,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 {
|
||||
@ -146,7 +162,7 @@
|
||||
&pcie0 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cells = <&macaddr_config_4429 0>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
mediatek,mtd-eeprom = <&factory 0x0>;
|
||||
};
|
||||
@ -155,10 +171,8 @@
|
||||
&pcie1 {
|
||||
wifi@0,0 {
|
||||
reg = <0x0000 0 0 0 0>;
|
||||
nvmem-cells = <&macaddr_config_4429>;
|
||||
nvmem-cells = <&macaddr_config_4429 0x800000>;
|
||||
nvmem-cell-names = "mac-address-ascii";
|
||||
mac-address-increment-byte = <3>;
|
||||
mac-address-increment = <0x80>;
|
||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||
ieee80211-freq-limit = <5000000 6000000>;
|
||||
};
|
||||
@ -170,13 +184,3 @@
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&config {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_config_4429: macaddr@4429 {
|
||||
reg = <0x4429 0x11>;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user