Skip to content

Commit

Permalink
ramips: mt7620: move Phicomm MAC address setup to DTSI
Browse files Browse the repository at this point in the history
The setup is the same for all devices, so move it up one level.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
  • Loading branch information
adschm committed Aug 24, 2021
1 parent 76f46f4 commit c414350
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 41 deletions.
13 changes: 0 additions & 13 deletions target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
Expand Up @@ -23,9 +23,6 @@
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;

nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";

mediatek,portmap = "llllw";

port@5 {
Expand All @@ -48,13 +45,3 @@
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
15 changes: 15 additions & 0 deletions target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
Expand Up @@ -96,6 +96,21 @@
};
};

&ethernet {
nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
};

&wmac {
ralink,mtd-eeprom = <&factory 0x0>;
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
13 changes: 0 additions & 13 deletions target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
Expand Up @@ -14,23 +14,10 @@
};

&ethernet {
nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";

mediatek,portmap = "llllw";
};

&wmac {
pinctrl-names = "default";
pinctrl-0 = <&pa_pins>;
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};
15 changes: 0 additions & 15 deletions target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
Expand Up @@ -12,18 +12,3 @@
reg = <0x50000 0x7b0000>;
};
};

&ethernet {
nvmem-cells = <&macaddr_factory_28>;
nvmem-cell-names = "mac-address";
};

&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;

macaddr_factory_28: macaddr@28 {
reg = <0x28 0x6>;
};
};

0 comments on commit c414350

Please sign in to comment.