ramips: mt7621: create DTSI for ELECOM WRC GS devices with 2 PCI
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 19 Dec 2020 19:16:03 +0000 (20:16 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 22 Dec 2020 20:44:57 +0000 (21:44 +0100)
This creates a dedicated DTSI for ELECOM WRC GS devices with 2 PCI
WiFi chips in preparation for the 1 chip - dual radio devices, so
the latter can reuse part of the common definitions.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/dts/mt7621_elecom_wrc-1750gs.dts
target/linux/ramips/dts/mt7621_elecom_wrc-1750gsv.dts
target/linux/ramips/dts/mt7621_elecom_wrc-1900gst.dts
target/linux/ramips/dts/mt7621_elecom_wrc-2533gst.dts
target/linux/ramips/dts/mt7621_elecom_wrc-2533gst2.dts
target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi [new file with mode: 0644]
target/linux/ramips/dts/mt7621_elecom_wrc-gs.dtsi

index 320a15d162749391478ae2861029eacde7c76fc8..71e4c16ddd3815ac4bd310bac16d3dd3bae174b4 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
-#include "mt7621_elecom_wrc-gs.dtsi"
+#include "mt7621_elecom_wrc-gs-2pci.dtsi"
 
 / {
        compatible = "elecom,wrc-1750gs", "mediatek,mt7621-soc";
index 5d637dc5fe8a4ba0af97e4f48e3bba3d1c168ec5..6719c347f1388682e18efe3f9d855979a60f52da 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
-#include "mt7621_elecom_wrc-gs.dtsi"
+#include "mt7621_elecom_wrc-gs-2pci.dtsi"
 
 / {
        compatible = "elecom,wrc-1750gsv", "mediatek,mt7621-soc";
index 00a7d5b1e4a7fcbec1e3320b5202283460eb1a35..675e086a8270d21966acc553a09007df85293295 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 
-#include "mt7621_elecom_wrc-gs.dtsi"
+#include "mt7621_elecom_wrc-gs-2pci.dtsi"
 
 / {
        compatible = "elecom,wrc-1900gst", "mediatek,mt7621-soc";
index 5026778fdc72e118a5e338c74f4760fad797572c..dacd540b28b0a6946d324aea44076ce4e002f82a 100644 (file)
@@ -1,4 +1,4 @@
-#include "mt7621_elecom_wrc-gs.dtsi"
+#include "mt7621_elecom_wrc-gs-2pci.dtsi"
 
 / {
        compatible = "elecom,wrc-2533gst", "mediatek,mt7621-soc";
index 1fa2986bc71f22b369569fabefc983e7c1bd9614..a998b61b734015d6fb599875a8b044148a0c3991 100644 (file)
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
-#include "mt7621_elecom_wrc-gs.dtsi"
+#include "mt7621_elecom_wrc-gs-2pci.dtsi"
 
 / {
        compatible = "elecom,wrc-2533gst2", "mediatek,mt7621-soc";
diff --git a/target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi b/target/linux/ramips/dts/mt7621_elecom_wrc-gs-2pci.dtsi
new file mode 100644 (file)
index 0000000..642724d
--- /dev/null
@@ -0,0 +1,46 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "mt7621_elecom_wrc-gs.dtsi"
+
+&gmac0 {
+       mtd-mac-address = <&factory 0xe000>;
+};
+
+&wan {
+       mtd-mac-address = <&factory 0xe006>;
+};
+
+&state_default {
+       gpio {
+               groups = "uart3", "jtag", "wdt", "sdhci";
+               function = "gpio";
+       };
+};
+
+&pcie0 {
+       wifi@0,0 {
+               compatible = "mediatek,mt76";
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x0000>;
+               ieee80211-freq-limit = <2400000 2500000>;
+
+               led {
+                       led-sources = <0>;
+                       led-active-low;
+               };
+       };
+};
+
+&pcie1 {
+       wifi@0,0 {
+               compatible = "mediatek,mt76";
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&factory 0x8000>;
+               ieee80211-freq-limit = <5000000 6000000>;
+
+               led {
+                       led-sources = <0>;
+                       led-active-low;
+               };
+       };
+};
index fd54ead0bc8292b851db8fcebbf879e13434bb7f..790c5fed70e9e35b3889934d082ef033e37772c5 100644 (file)
        };
 };
 
-&gmac0 {
-       mtd-mac-address = <&factory 0xe000>;
-};
-
 &switch0 {
        ports {
                wan: port@0 {
                        status = "okay";
                        label = "wan";
-                       mtd-mac-address = <&factory 0xe006>;
                };
 
                port@1 {
        };
 };
 
-&state_default {
-       gpio {
-               groups = "uart3", "jtag", "wdt", "sdhci";
-               function = "gpio";
-       };
-};
-
 &pcie {
        status = "okay";
 };
 
-&pcie0 {
-       wifi@0,0 {
-               compatible = "mediatek,mt76";
-               reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x0000>;
-               ieee80211-freq-limit = <2400000 2500000>;
-
-               led {
-                       led-sources = <0>;
-                       led-active-low;
-               };
-       };
-};
-
-&pcie1 {
-       wifi@0,0 {
-               compatible = "mediatek,mt76";
-               reg = <0x0000 0 0 0 0>;
-               mediatek,mtd-eeprom = <&factory 0x8000>;
-               ieee80211-freq-limit = <5000000 6000000>;
-
-               led {
-                       led-sources = <0>;
-                       led-active-low;
-               };
-       };
-};
-
 &xhci {
        status = "disabled";
 };