]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm: dts: mt7623: add port@5 as CPU port
authorArınç ÜNAL <arinc.unal@arinc9.com>
Fri, 10 Feb 2023 18:25:05 +0000 (21:25 +0300)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 9 Jun 2023 14:33:29 +0000 (16:33 +0200)
On the MT7623AI SoC and Bananapi BPI-R2, port 5 of the MT7530 switch is
connected to the second MAC of the SoC as a CPU port. Add the port and set
up the second MAC on the bindings.

Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Link: https://lore.kernel.org/r/20230210182505.24597-6-arinc.unal@arinc9.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7623a.dtsi
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

index 2a50b5c0c9335bfd7e0955cd6c7af23c34fbf72a..bcf909d58a1cca6932a813b589fc397970a85246 100644 (file)
@@ -28,6 +28,17 @@ fixed-link {
        };
 };
 
+&gmac1 {
+       status = "okay";
+       phy-mode = "rgmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+               pause;
+       };
+};
+
 &eth {
        status = "okay";
        power-domains = <&scpsys MT7623A_POWER_DOMAIN_ETH>;
@@ -79,6 +90,19 @@ port@4 {
                                        label = "swp4";
                                };
 
+                               port@5 {
+                                       reg = <5>;
+                                       label = "cpu";
+                                       ethernet = <&gmac1>;
+                                       phy-mode = "rgmii";
+
+                                       fixed-link {
+                                               speed = <1000>;
+                                               full-duplex;
+                                               pause;
+                                       };
+                               };
+
                                port@6 {
                                        reg = <6>;
                                        label = "cpu";
index b05479e055d49f5524545ee03c91fea52f9a31a2..a37f3fa223c72de7f6f5305ea593e2ff889e190b 100644 (file)
@@ -182,6 +182,17 @@ fixed-link {
        };
 };
 
+&gmac1 {
+       status = "okay";
+       phy-mode = "rgmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+               pause;
+       };
+};
+
 &eth {
        status = "okay";
 
@@ -225,6 +236,19 @@ port@4 {
                                        label = "lan3";
                                };
 
+                               port@5 {
+                                       reg = <5>;
+                                       label = "cpu";
+                                       ethernet = <&gmac1>;
+                                       phy-mode = "rgmii";
+
+                                       fixed-link {
+                                               speed = <1000>;
+                                               full-duplex;
+                                               pause;
+                                       };
+                               };
+
                                port@6 {
                                        reg = <6>;
                                        label = "cpu";