arm64: dts: mt7622: add port@5 as CPU port
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 19 Feb 2024 09:36:13 +0000 (12:36 +0300)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 19 Feb 2024 10:01:21 +0000 (11:01 +0100)
On Banana Pi BPI-R64 and MediaTek MT7622 RFB1 board, 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-1-7078f23eab82@arinc9.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts

index 850b3e277368069d3728e1e5063eb119b035905b..224bb289660c0869782d1d57589d817525359452 100644 (file)
                                        label = "lan3";
                                };
 
+                               port@5 {
+                                       reg = <5>;
+                                       ethernet = <&gmac1>;
+                                       phy-mode = "rgmii";
+
+                                       fixed-link {
+                                               speed = <1000>;
+                                               full-duplex;
+                                               pause;
+                                       };
+                               };
+
                                port@6 {
                                        reg = <6>;
                                        label = "cpu";
index 5c26021fc4cf189048baa95796f3ce9530105ca6..41629769bdc8578cd484f463d94c7cb8b7bb9b5b 100644 (file)
                };
        };
 
+       gmac1: mac@1 {
+               compatible = "mediatek,eth-mac";
+               reg = <1>;
+               phy-mode = "rgmii";
+
+               fixed-link {
+                       speed = <1000>;
+                       full-duplex;
+                       pause;
+               };
+       };
+
        mdio-bus {
                #address-cells = <1>;
                #size-cells = <0>;
                                        label = "wan";
                                };
 
+                               port@5 {
+                                       reg = <5>;
+                                       ethernet = <&gmac1>;
+                                       phy-mode = "rgmii";
+
+                                       fixed-link {
+                                               speed = <1000>;
+                                               full-duplex;
+                                               pause;
+                                       };
+                               };
+
                                port@6 {
                                        reg = <6>;
                                        label = "cpu";