arm64: dts: mt7986: add port@5 as CPU port
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 19 Feb 2024 09:36:14 +0000 (12:36 +0300)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 19 Feb 2024 10:01:22 +0000 (11:01 +0100)
On MediaTek MT7986b RFB and MediaTek MT7986a RFB, port 5 of the MT7531
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/20240219-for-mediatek-v1-2-7078f23eab82@arinc9.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts

index 2f884c24f1eb4635f49e25656eca153999447a50..5d8e3d3f6c200e0c56b0bdbf494951c1c40fa54c 100644 (file)
                };
        };
 
+       gmac1: mac@1 {
+               compatible = "mediatek,eth-mac";
+               reg = <1>;
+               phy-mode = "rgmii";
+
+               fixed-link {
+                       speed = <1000>;
+                       full-duplex;
+                       pause;
+               };
+       };
+
        mdio: mdio-bus {
                #address-cells = <1>;
                #size-cells = <0>;
                        label = "lan4";
                };
 
+               port@5 {
+                       reg = <5>;
+                       ethernet = <&gmac1>;
+                       phy-mode = "rgmii";
+
+                       fixed-link {
+                               speed = <1000>;
+                               full-duplex;
+                               pause;
+                       };
+               };
+
                port@6 {
                        reg = <6>;
                        label = "cpu";
index 57dcaeef31d7fcb99aaf54e5946e814bb36654d1..58f77d932429f832c9945c613d0dac928dc56002 100644 (file)
                };
        };
 
+       gmac1: mac@1 {
+               compatible = "mediatek,eth-mac";
+               reg = <1>;
+               phy-mode = "rgmii";
+
+               fixed-link {
+                       speed = <1000>;
+                       full-duplex;
+                       pause;
+               };
+       };
+
        mdio: mdio-bus {
                #address-cells = <1>;
                #size-cells = <0>;
                                        label = "lan4";
                                };
 
+                               port@5 {
+                                       reg = <5>;
+                                       ethernet = <&gmac1>;
+                                       phy-mode = "rgmii";
+
+                                       fixed-link {
+                                               speed = <1000>;
+                                               full-duplex;
+                                               pause;
+                                       };
+                               };
+
                                port@6 {
                                        reg = <6>;
                                        label = "cpu";