aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-24 15:46:16 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-08-24 20:26:00 +0200
commitc4143505e0c0ef39a4254888397c801b5dab455c (patch)
treee570ac8020cbea03fe0a685f5232c910e4b0ca4a /target/linux
parent76f46f4105ae33d0e4bb2348b5998746000658cd (diff)
downloadupstream-c4143505e0c0ef39a4254888397c801b5dab455c.tar.gz
upstream-c4143505e0c0ef39a4254888397c801b5dab455c.tar.bz2
upstream-c4143505e0c0ef39a4254888397c801b5dab455c.zip
ramips: mt7620: move Phicomm MAC address setup to DTSI
The setup is the same for all devices, so move it up one level. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/mt7620a_phicomm_k2g.dts13
-rw-r--r--target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi15
-rw-r--r--target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts13
-rw-r--r--target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts15
4 files changed, 15 insertions, 41 deletions
diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
index fd6cc7f82b..d113edc19f 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
+++ b/target/linux/ramips/dts/mt7620a_phicomm_k2g.dts
@@ -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 {
@@ -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>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi b/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
index c7728e0442..a8a900eac1 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
+++ b/target/linux/ramips/dts/mt7620a_phicomm_k2x.dtsi
@@ -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>;
+ };
+};
diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
index 3a9a57d90b..cda05173b1 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
+++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218a.dts
@@ -14,9 +14,6 @@
};
&ethernet {
- nvmem-cells = <&macaddr_factory_28>;
- nvmem-cell-names = "mac-address";
-
mediatek,portmap = "llllw";
};
@@ -24,13 +21,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>;
- };
-};
diff --git a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
index 916479c252..704be2b5d7 100644
--- a/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
+++ b/target/linux/ramips/dts/mt7620a_phicomm_psg1218b.dts
@@ -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>;
- };
-};