From: Landen Chao <landen.chao@mediatek.com> To: <andrew@lunn.ch>, <f.fainelli@gmail.com>, <vivien.didelot@savoirfairelinux.com>, <matthias.bgg@gmail.com>, <robh+dt@kernel.org>, <mark.rutland@arm.com> Cc: <devicetree@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-mediatek@lists.infradead.org>, <davem@davemloft.net>, <sean.wang@mediatek.com>, <opensource@vdorst.com>, <frank-w@public-files.de>, Landen Chao <landen.chao@mediatek.com> Subject: [PATCH net-next 5/6] arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 board Date: Tue, 10 Dec 2019 16:14:41 +0800 [thread overview] Message-ID: <7f5a690281664a0fe47cfe7726f26d7f6211d015.1575914275.git.landen.chao@mediatek.com> (raw) In-Reply-To: <cover.1575914275.git.landen.chao@mediatek.com> Add mt7531 dsa to mt7622-rfb1 board for 5 giga Ethernet ports support. mt7622 only supports 1 sgmii interface, so either gmac0 or gmac1 can be configured as sgmii interface. In this patch, change to connet mt7622 gmac0 and mt7531 port6 through sgmii interface. Signed-off-by: Landen Chao <landen.chao@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 63 ++++++++++++++++++-- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 3f783348c66a..e509b0c2fe79 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -105,20 +105,71 @@ pinctrl-0 = <ð_pins>; status = "okay"; - gmac1: mac@1 { + gmac0: mac@0 { compatible = "mediatek,eth-mac"; - reg = <1>; - phy-handle = <&phy5>; + reg = <0>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; }; mdio-bus { #address-cells = <1>; #size-cells = <0>; - phy5: ethernet-phy@5 { - reg = <5>; - phy-mode = "sgmii"; + switch@0 { + compatible = "mediatek,mt7531"; + reg = <0>; + reset-gpios = <&pio 54 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan0"; + }; + + port@1 { + reg = <1>; + label = "lan1"; + }; + + port@2 { + reg = <2>; + label = "lan2"; + }; + + port@3 { + reg = <3>; + label = "lan3"; + }; + + port@4 { + reg = <4>; + label = "wan"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; + }; + }; }; + }; }; -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: Landen Chao <landen.chao@mediatek.com> To: <andrew@lunn.ch>, <f.fainelli@gmail.com>, <vivien.didelot@savoirfairelinux.com>, <matthias.bgg@gmail.com>, <robh+dt@kernel.org>, <mark.rutland@arm.com> Cc: devicetree@vger.kernel.org, Landen Chao <landen.chao@mediatek.com>, frank-w@public-files.de, netdev@vger.kernel.org, sean.wang@mediatek.com, linux-kernel@vger.kernel.org, opensource@vdorst.com, linux-mediatek@lists.infradead.org, davem@davemloft.net Subject: [PATCH net-next 5/6] arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 board Date: Tue, 10 Dec 2019 16:14:41 +0800 [thread overview] Message-ID: <7f5a690281664a0fe47cfe7726f26d7f6211d015.1575914275.git.landen.chao@mediatek.com> (raw) In-Reply-To: <cover.1575914275.git.landen.chao@mediatek.com> Add mt7531 dsa to mt7622-rfb1 board for 5 giga Ethernet ports support. mt7622 only supports 1 sgmii interface, so either gmac0 or gmac1 can be configured as sgmii interface. In this patch, change to connet mt7622 gmac0 and mt7531 port6 through sgmii interface. Signed-off-by: Landen Chao <landen.chao@mediatek.com> --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 63 ++++++++++++++++++-- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 3f783348c66a..e509b0c2fe79 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -105,20 +105,71 @@ pinctrl-0 = <ð_pins>; status = "okay"; - gmac1: mac@1 { + gmac0: mac@0 { compatible = "mediatek,eth-mac"; - reg = <1>; - phy-handle = <&phy5>; + reg = <0>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; }; mdio-bus { #address-cells = <1>; #size-cells = <0>; - phy5: ethernet-phy@5 { - reg = <5>; - phy-mode = "sgmii"; + switch@0 { + compatible = "mediatek,mt7531"; + reg = <0>; + reset-gpios = <&pio 54 0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan0"; + }; + + port@1 { + reg = <1>; + label = "lan1"; + }; + + port@2 { + reg = <2>; + label = "lan2"; + }; + + port@3 { + reg = <3>; + label = "lan3"; + }; + + port@4 { + reg = <4>; + label = "wan"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "2500base-x"; + + fixed-link { + speed = <2500>; + full-duplex; + pause; + }; + }; + }; }; + }; }; -- 2.17.1 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek
next prev parent reply other threads:[~2019-12-10 8:15 UTC|newest] Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-12-10 8:14 [PATCH net-next 0/6] net-next: dsa: mt7530: add support for MT7531 Landen Chao 2019-12-10 8:14 ` Landen Chao 2019-12-10 8:14 ` [PATCH net-next 1/6] net: dsa: mt7530: Refine message in Kconfig Landen Chao 2019-12-10 8:14 ` Landen Chao 2019-12-12 3:41 ` Florian Fainelli 2019-12-12 3:41 ` Florian Fainelli 2019-12-10 8:14 ` [PATCH net-next 2/6] net: dsa: mt7530: Extend device data ready for adding a new hardware Landen Chao 2019-12-10 8:14 ` Landen Chao 2019-12-12 3:45 ` Florian Fainelli 2019-12-12 3:45 ` Florian Fainelli 2019-12-12 15:03 ` Landen Chao 2019-12-12 15:03 ` Landen Chao 2019-12-12 15:05 ` Landen Chao 2019-12-12 15:05 ` Landen Chao 2019-12-10 8:14 ` [PATCH net-next 3/6] dt-bindings: net: dsa: add new MT7531 binding to support MT7531 Landen Chao 2019-12-10 8:14 ` Landen Chao 2019-12-10 16:20 ` Andrew Lunn 2019-12-10 16:20 ` Andrew Lunn 2019-12-11 14:10 ` Landen Chao 2019-12-11 14:10 ` Landen Chao 2019-12-12 3:46 ` Florian Fainelli 2019-12-12 3:46 ` Florian Fainelli 2019-12-10 8:14 ` [PATCH net-next 4/6] net: dsa: mt7530: Add the support of MT7531 switch Landen Chao 2019-12-10 8:14 ` Landen Chao 2019-12-10 16:35 ` Andrew Lunn 2019-12-10 16:35 ` Andrew Lunn 2019-12-10 17:05 ` Vladimir Oltean 2019-12-10 17:05 ` Vladimir Oltean 2019-12-10 20:33 ` Marek Behun 2019-12-10 20:33 ` Marek Behun 2019-12-10 22:02 ` Andrew Lunn 2019-12-10 22:02 ` Andrew Lunn 2019-12-11 17:35 ` Landen Chao 2019-12-11 17:35 ` Landen Chao 2019-12-10 16:44 ` Andrew Lunn 2019-12-10 16:44 ` Andrew Lunn 2019-12-11 18:18 ` Landen Chao 2019-12-11 18:18 ` Landen Chao 2019-12-11 19:27 ` Andrew Lunn 2019-12-11 19:27 ` Andrew Lunn 2019-12-12 15:04 ` Landen Chao 2019-12-12 15:04 ` Landen Chao 2019-12-10 16:48 ` Andrew Lunn 2019-12-10 16:48 ` Andrew Lunn 2019-12-11 17:48 ` Landen Chao 2019-12-11 17:48 ` Landen Chao 2019-12-12 3:57 ` Florian Fainelli 2019-12-12 3:57 ` Florian Fainelli 2019-12-12 16:24 ` Landen Chao 2019-12-12 16:24 ` Landen Chao 2019-12-10 8:14 ` Landen Chao [this message] 2019-12-10 8:14 ` [PATCH net-next 5/6] arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 board Landen Chao 2019-12-10 16:51 ` Andrew Lunn 2019-12-10 16:51 ` Andrew Lunn 2019-12-11 18:27 ` Landen Chao 2019-12-11 18:27 ` Landen Chao 2019-12-10 8:14 ` [PATCH net-next 6/6] arm64: dts: mt7622: add mt7531 dsa to bananapi-bpi-r64 board Landen Chao 2019-12-10 8:14 ` Landen Chao 2019-12-10 11:37 ` Aw: [PATCH net-next 0/6] net-next: dsa: mt7530: add support for MT7531 Frank Wunderlich 2019-12-10 11:37 ` Frank Wunderlich
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=7f5a690281664a0fe47cfe7726f26d7f6211d015.1575914275.git.landen.chao@mediatek.com \ --to=landen.chao@mediatek.com \ --cc=andrew@lunn.ch \ --cc=davem@davemloft.net \ --cc=devicetree@vger.kernel.org \ --cc=f.fainelli@gmail.com \ --cc=frank-w@public-files.de \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=mark.rutland@arm.com \ --cc=matthias.bgg@gmail.com \ --cc=netdev@vger.kernel.org \ --cc=opensource@vdorst.com \ --cc=robh+dt@kernel.org \ --cc=sean.wang@mediatek.com \ --cc=vivien.didelot@savoirfairelinux.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.