mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 23:42:57 +00:00
ramips: use fixed layout cell "mac-base" for Ubiquiti EdgeRouter X
This drops a use of downstream "mac-address-increment". Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
This commit is contained in:
parent
f1492fcc09
commit
28b6224104
@ -72,9 +72,8 @@
|
|||||||
label = "eth5";
|
label = "eth5";
|
||||||
phy-handle = <&ephy7>;
|
phy-handle = <&ephy7>;
|
||||||
phy-mode = "rgmii-rxid";
|
phy-mode = "rgmii-rxid";
|
||||||
nvmem-cells = <&macaddr_factory_22>;
|
nvmem-cells = <&macaddr_factory_22 5>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
mac-address-increment = <5>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&gmac0 {
|
&gmac0 {
|
||||||
nvmem-cells = <&macaddr_factory_22>;
|
nvmem-cells = <&macaddr_factory_22 0>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
label = "dsa";
|
label = "dsa";
|
||||||
};
|
};
|
||||||
@ -35,33 +35,29 @@
|
|||||||
port@1 {
|
port@1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "eth1";
|
label = "eth1";
|
||||||
nvmem-cells = <&macaddr_factory_22>;
|
nvmem-cells = <&macaddr_factory_22 1>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
mac-address-increment = <1>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
port@2 {
|
port@2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "eth2";
|
label = "eth2";
|
||||||
nvmem-cells = <&macaddr_factory_22>;
|
nvmem-cells = <&macaddr_factory_22 2>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
mac-address-increment = <2>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
port@3 {
|
port@3 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "eth3";
|
label = "eth3";
|
||||||
nvmem-cells = <&macaddr_factory_22>;
|
nvmem-cells = <&macaddr_factory_22 3>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
mac-address-increment = <3>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
port@4 {
|
port@4 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "eth4";
|
label = "eth4";
|
||||||
nvmem-cells = <&macaddr_factory_22>;
|
nvmem-cells = <&macaddr_factory_22 4>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
mac-address-increment = <4>;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -87,8 +83,21 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
factory: partition@e0000 {
|
factory: partition@e0000 {
|
||||||
|
compatible = "nvmem-cells";
|
||||||
label = "factory";
|
label = "factory";
|
||||||
reg = <0xe0000 0x60000>;
|
reg = <0xe0000 0x60000>;
|
||||||
|
|
||||||
|
nvmem-layout {
|
||||||
|
compatible = "fixed-layout";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_factory_22: macaddr@22 {
|
||||||
|
compatible = "mac-base";
|
||||||
|
reg = <0x22 0x6>;
|
||||||
|
#nvmem-cell-cells = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@140000 {
|
partition@140000 {
|
||||||
@ -146,13 +155,3 @@
|
|||||||
&xhci {
|
&xhci {
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
&factory {
|
|
||||||
compatible = "nvmem-cells";
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
|
|
||||||
macaddr_factory_22: macaddr@22 {
|
|
||||||
reg = <0x22 0x6>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
Loading…
Reference in New Issue
Block a user