From: "Nícolas F. R. A. Prado" <nfraprado@collabora.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
Richard Cochran <richardcochran@gmail.com>
Cc: kernel@collabora.com, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, netdev@vger.kernel.org,
"Nícolas F. R. A. Prado" <nfraprado@collabora.com>,
"Jianguo Zhang" <jianguo.zhang@mediatek.com>,
"Macpaul Lin" <macpaul.lin@mediatek.com>,
"Hsuan-Yu Lin" <shane.lin@canonical.com>,
"Pablo Sun" <pablo.sun@mediatek.com>,
"fanyi zhang" <fanyi.zhang@mediatek.com>
Subject: [PATCH 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet
Date: Tue, 15 Oct 2024 14:15:02 -0400 [thread overview]
Message-ID: <20241015-genio700-eth-v1-2-16a1c9738cf4@collabora.com> (raw)
In-Reply-To: <20241015-genio700-eth-v1-0-16a1c9738cf4@collabora.com>
Enable ethernet on the Genio 700 EVK board. It has been tested to work
with speeds up to 1000Gbps.
Signed-off-by: Jianguo Zhang <jianguo.zhang@mediatek.com>
Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Hsuan-Yu Lin <shane.lin@canonical.com>
Signed-off-by: Pablo Sun <pablo.sun@mediatek.com>
Signed-off-by: fanyi zhang <fanyi.zhang@mediatek.com>
[Cleaned up to pass dtbs_check, follow DTS style guidelines, and split
between mt8188 and genio700 commits]
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
.../boot/dts/mediatek/mt8390-genio-700-evk.dts | 25 ++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
index 0a6c9871b41e5f913740e68853aea78bc33d02aa..73e34e98726d36785e8b2cef73f532b6bb07c97f 100644
--- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts
@@ -24,6 +24,7 @@ / {
aliases {
serial0 = &uart0;
+ ethernet0 = ð
};
chosen {
@@ -845,6 +846,30 @@ pins-wifi-enable {
};
};
+ð {
+ phy-mode ="rgmii-rxid";
+ phy-handle = <ðernet_phy0>;
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <ð_default_pins>;
+ pinctrl-1 = <ð_sleep_pins>;
+ snps,reset-gpio = <&pio 147 GPIO_ACTIVE_HIGH>;
+ snps,reset-delays-us = <0 10000 10000>;
+ mediatek,tx-delay-ps = <2030>;
+ mediatek,mac-wol;
+ status = "okay";
+
+ mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet_phy0: ethernet-phy@1 {
+ compatible = "ethernet-phy-id001c.c916";
+ reg = <0x1>;
+ };
+ };
+};
+
&pmic {
interrupt-parent = <&pio>;
interrupts = <222 IRQ_TYPE_LEVEL_HIGH>;
--
2.47.0
next prev parent reply other threads:[~2024-10-15 18:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 18:15 [PATCH 0/2] Enable Ethernet on the Genio 700 EVK board Nícolas F. R. A. Prado
2024-10-15 18:15 ` [PATCH 1/2] arm64: dts: mediatek: mt8188: Add ethernet node Nícolas F. R. A. Prado
2024-10-16 10:39 ` AngeloGioacchino Del Regno
2024-10-15 18:15 ` Nícolas F. R. A. Prado [this message]
2024-10-15 23:01 ` [PATCH 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet Andrew Lunn
2024-10-16 10:41 ` AngeloGioacchino Del Regno
2024-10-16 12:39 ` Andrew Lunn
2024-10-16 15:38 ` [PATCH 0/2] Enable Ethernet on the Genio 700 EVK board Rob Herring (Arm)
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=20241015-genio700-eth-v1-2-16a1c9738cf4@collabora.com \
--to=nfraprado@collabora.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fanyi.zhang@mediatek.com \
--cc=jianguo.zhang@mediatek.com \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=macpaul.lin@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pablo.sun@mediatek.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=shane.lin@canonical.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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®