* [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board
@ 2024-10-18 15:19 Nícolas F. R. A. Prado
2024-10-18 15:19 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node Nícolas F. R. A. Prado
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-10-18 15:19 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Richard Cochran
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, netdev, Andrew Lunn, Nícolas F. R. A. Prado,
Jianguo Zhang, Macpaul Lin, Hsuan-Yu Lin, Pablo Sun, fanyi zhang
The patches in this series add the ethernet node on mt8188 and enable it
on the Genio 700 EVK board.
The changes were picked up from the downstream branch at
https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-mtk/+git/jammy,
cleaned up and split into two commits.
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
Changes in v2:
- Moved mdio bus to mt8188.dtsi
- Changed phy-mode: rgmii-rxid -> rgmii-id
- Removed mediatek,tx-delay-ps
- style: Reordered vendor properties alphabetically
- style: Used fewer lines for clock-names
- Fixed typo in commit message: 1000 Gbps -> 1000 Mbps
- Link to v1: https://lore.kernel.org/r/20241015-genio700-eth-v1-0-16a1c9738cf4@collabora.com
---
Nícolas F. R. A. Prado (2):
arm64: dts: mediatek: mt8188: Add ethernet node
arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet
arch/arm64/boot/dts/mediatek/mt8188.dtsi | 97 ++++++++++++++++++++++
.../boot/dts/mediatek/mt8390-genio-700-evk.dts | 20 +++++
2 files changed, 117 insertions(+)
---
base-commit: 7f773fd61baa9b136faa5c4e6555aa64c758d07c
change-id: 20241015-genio700-eth-252304da766c
Best regards,
--
Nícolas F. R. A. Prado <nfraprado@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node
2024-10-18 15:19 [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Nícolas F. R. A. Prado
@ 2024-10-18 15:19 ` Nícolas F. R. A. Prado
2024-10-21 12:17 ` AngeloGioacchino Del Regno
2024-10-18 15:19 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet Nícolas F. R. A. Prado
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-10-18 15:19 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Richard Cochran
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, netdev, Andrew Lunn, Nícolas F. R. A. Prado,
Jianguo Zhang, Macpaul Lin, Hsuan-Yu Lin
Describe the ethernet present on the MT8188.
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>
[Cleaned up to pass dtbs_check, follow DTS style guidelines, removed
hardcoded mac address and split between mt8188 and genio700 commits,
and addressed further feedback from the mailing list]
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
arch/arm64/boot/dts/mediatek/mt8188.dtsi | 97 ++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi
index b493207a1b688dba51bf5e0e469349263f54ca94..d2795bba15ecd4e9359721b1c61cd4ae4a2a0a71 100644
--- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi
@@ -1647,6 +1647,103 @@ spi5: spi@11019000 {
status = "disabled";
};
+ eth: ethernet@11021000 {
+ compatible = "mediatek,mt8188-gmac", "mediatek,mt8195-gmac",
+ "snps,dwmac-5.10a";
+ reg = <0 0x11021000 0 0x4000>;
+ interrupts = <GIC_SPI 716 IRQ_TYPE_LEVEL_HIGH 0>;
+ interrupt-names = "macirq";
+ clocks = <&pericfg_ao CLK_PERI_AO_ETHERNET>,
+ <&pericfg_ao CLK_PERI_AO_ETHERNET_BUS>,
+ <&topckgen CLK_TOP_SNPS_ETH_250M>,
+ <&topckgen CLK_TOP_SNPS_ETH_62P4M_PTP>,
+ <&topckgen CLK_TOP_SNPS_ETH_50M_RMII>,
+ <&pericfg_ao CLK_PERI_AO_ETHERNET_MAC>;
+ clock-names = "axi", "apb", "mac_main", "ptp_ref",
+ "rmii_internal", "mac_cg";
+ assigned-clocks = <&topckgen CLK_TOP_SNPS_ETH_250M>,
+ <&topckgen CLK_TOP_SNPS_ETH_62P4M_PTP>,
+ <&topckgen CLK_TOP_SNPS_ETH_50M_RMII>;
+ assigned-clock-parents = <&topckgen CLK_TOP_ETHPLL_D2>,
+ <&topckgen CLK_TOP_ETHPLL_D8>,
+ <&topckgen CLK_TOP_ETHPLL_D10>;
+ power-domains = <&spm MT8188_POWER_DOMAIN_ETHER>;
+ mediatek,pericfg = <&infracfg_ao>;
+ snps,axi-config = <&stmmac_axi_setup>;
+ snps,mtl-rx-config = <&mtl_rx_setup>;
+ snps,mtl-tx-config = <&mtl_tx_setup>;
+ snps,txpbl = <16>;
+ snps,rxpbl = <16>;
+ snps,clk-csr = <0>;
+ status = "disabled";
+
+ eth_mdio: mdio {
+ compatible = "snps,dwmac-mdio";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+
+ stmmac_axi_setup: stmmac-axi-config {
+ snps,blen = <0 0 0 0 16 8 4>;
+ snps,rd_osr_lmt = <0x7>;
+ snps,wr_osr_lmt = <0x7>;
+ };
+
+ mtl_rx_setup: rx-queues-config {
+ snps,rx-queues-to-use = <4>;
+ snps,rx-sched-sp;
+
+ queue0 {
+ snps,dcb-algorithm;
+ snps,map-to-dma-channel = <0x0>;
+ };
+
+ queue1 {
+ snps,dcb-algorithm;
+ snps,map-to-dma-channel = <0x0>;
+ };
+
+ queue2 {
+ snps,dcb-algorithm;
+ snps,map-to-dma-channel = <0x0>;
+ };
+
+ queue3 {
+ snps,dcb-algorithm;
+ snps,map-to-dma-channel = <0x0>;
+ };
+ };
+
+ mtl_tx_setup: tx-queues-config {
+ snps,tx-queues-to-use = <4>;
+ snps,tx-sched-wrr;
+
+ queue0 {
+ snps,dcb-algorithm;
+ snps,priority = <0x0>;
+ snps,weight = <0x10>;
+ };
+
+ queue1 {
+ snps,dcb-algorithm;
+ snps,priority = <0x1>;
+ snps,weight = <0x11>;
+ };
+
+ queue2 {
+ snps,dcb-algorithm;
+ snps,priority = <0x2>;
+ snps,weight = <0x12>;
+ };
+
+ queue3 {
+ snps,dcb-algorithm;
+ snps,priority = <0x3>;
+ snps,weight = <0x13>;
+ };
+ };
+ };
+
xhci1: usb@11200000 {
compatible = "mediatek,mt8188-xhci", "mediatek,mtk-xhci";
reg = <0 0x11200000 0 0x1000>,
--
2.47.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet
2024-10-18 15:19 [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Nícolas F. R. A. Prado
2024-10-18 15:19 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node Nícolas F. R. A. Prado
@ 2024-10-18 15:19 ` Nícolas F. R. A. Prado
2024-10-21 12:17 ` AngeloGioacchino Del Regno
2024-10-21 17:58 ` [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Rob Herring (Arm)
2024-10-22 9:19 ` AngeloGioacchino Del Regno
3 siblings, 1 reply; 7+ messages in thread
From: Nícolas F. R. A. Prado @ 2024-10-18 15:19 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Matthias Brugger,
AngeloGioacchino Del Regno, Richard Cochran
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, netdev, Andrew Lunn, Nícolas F. R. A. Prado,
Jianguo Zhang, Macpaul Lin, Hsuan-Yu Lin, Pablo Sun, fanyi zhang
Enable ethernet on the Genio 700 EVK board. It has been tested to work
with speeds up to 1000Mbps.
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, and addressed further feedback from
the mailing list]
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
---
.../arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts | 20 ++++++++++++++++++++
1 file changed, 20 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..a063c7504cce08707a308b72559f2425eee515e1 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,25 @@ pins-wifi-enable {
};
};
+ð {
+ phy-mode ="rgmii-id";
+ phy-handle = <ðernet_phy0>;
+ pinctrl-names = "default", "sleep";
+ pinctrl-0 = <ð_default_pins>;
+ pinctrl-1 = <ð_sleep_pins>;
+ mediatek,mac-wol;
+ snps,reset-gpio = <&pio 147 GPIO_ACTIVE_HIGH>;
+ snps,reset-delays-us = <0 10000 10000>;
+ status = "okay";
+};
+
+ð_mdio {
+ 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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet
2024-10-18 15:19 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet Nícolas F. R. A. Prado
@ 2024-10-21 12:17 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-10-21 12:17 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Richard Cochran
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, netdev, Andrew Lunn, Jianguo Zhang, Macpaul Lin,
Hsuan-Yu Lin, Pablo Sun, fanyi zhang
Il 18/10/24 17:19, Nícolas F. R. A. Prado ha scritto:
> Enable ethernet on the Genio 700 EVK board. It has been tested to work
> with speeds up to 1000Mbps.
>
> 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, and addressed further feedback from
> the mailing list]
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node
2024-10-18 15:19 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node Nícolas F. R. A. Prado
@ 2024-10-21 12:17 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-10-21 12:17 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Richard Cochran
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, netdev, Andrew Lunn, Jianguo Zhang, Macpaul Lin,
Hsuan-Yu Lin
Il 18/10/24 17:19, Nícolas F. R. A. Prado ha scritto:
> Describe the ethernet present on the MT8188.
>
> 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>
> [Cleaned up to pass dtbs_check, follow DTS style guidelines, removed
> hardcoded mac address and split between mt8188 and genio700 commits,
> and addressed further feedback from the mailing list]
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board
2024-10-18 15:19 [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Nícolas F. R. A. Prado
2024-10-18 15:19 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node Nícolas F. R. A. Prado
2024-10-18 15:19 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet Nícolas F. R. A. Prado
@ 2024-10-21 17:58 ` Rob Herring (Arm)
2024-10-22 9:19 ` AngeloGioacchino Del Regno
3 siblings, 0 replies; 7+ messages in thread
From: Rob Herring (Arm) @ 2024-10-21 17:58 UTC (permalink / raw)
To: Nícolas F. R. A. Prado
Cc: Richard Cochran, Andrew Lunn, Matthias Brugger, Macpaul Lin,
devicetree, Krzysztof Kozlowski, fanyi zhang, linux-arm-kernel,
kernel, Jianguo Zhang, Hsuan-Yu Lin, Conor Dooley, linux-kernel,
linux-mediatek, netdev, Pablo Sun, AngeloGioacchino Del Regno
On Fri, 18 Oct 2024 11:19:01 -0400, Nícolas F. R. A. Prado wrote:
> The patches in this series add the ethernet node on mt8188 and enable it
> on the Genio 700 EVK board.
>
> The changes were picked up from the downstream branch at
> https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-mtk/+git/jammy,
> cleaned up and split into two commits.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> Changes in v2:
> - Moved mdio bus to mt8188.dtsi
> - Changed phy-mode: rgmii-rxid -> rgmii-id
> - Removed mediatek,tx-delay-ps
> - style: Reordered vendor properties alphabetically
> - style: Used fewer lines for clock-names
> - Fixed typo in commit message: 1000 Gbps -> 1000 Mbps
> - Link to v1: https://lore.kernel.org/r/20241015-genio700-eth-v1-0-16a1c9738cf4@collabora.com
>
> ---
> Nícolas F. R. A. Prado (2):
> arm64: dts: mediatek: mt8188: Add ethernet node
> arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet
>
> arch/arm64/boot/dts/mediatek/mt8188.dtsi | 97 ++++++++++++++++++++++
> .../boot/dts/mediatek/mt8390-genio-700-evk.dts | 20 +++++
> 2 files changed, 117 insertions(+)
> ---
> base-commit: 7f773fd61baa9b136faa5c4e6555aa64c758d07c
> change-id: 20241015-genio700-eth-252304da766c
>
> Best regards,
> --
> Nícolas F. R. A. Prado <nfraprado@collabora.com>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y mediatek/mt8390-genio-700-evk.dtb' for 20241018-genio700-eth-v2-0-f3c73b85507b@collabora.com:
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dtb: jpeg-decoder@1a040000: iommus: [[118, 685], [118, 686], [118, 690], [118, 691], [118, 692], [118, 693]] is too long
from schema $id: http://devicetree.org/schemas/media/mediatek-jpeg-decoder.yaml#
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board
2024-10-18 15:19 [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Nícolas F. R. A. Prado
` (2 preceding siblings ...)
2024-10-21 17:58 ` [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Rob Herring (Arm)
@ 2024-10-22 9:19 ` AngeloGioacchino Del Regno
3 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-10-22 9:19 UTC (permalink / raw)
To: Nícolas F. R. A. Prado, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Matthias Brugger, Richard Cochran
Cc: kernel, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, netdev, Andrew Lunn, Jianguo Zhang, Macpaul Lin,
Hsuan-Yu Lin, Pablo Sun, fanyi zhang
Il 18/10/24 17:19, Nícolas F. R. A. Prado ha scritto:
> The patches in this series add the ethernet node on mt8188 and enable it
> on the Genio 700 EVK board.
>
> The changes were picked up from the downstream branch at
> https://git.launchpad.net/~canonical-kernel/ubuntu/+source/linux-mtk/+git/jammy,
> cleaned up and split into two commits.
>
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
> ---
> Changes in v2:
> - Moved mdio bus to mt8188.dtsi
> - Changed phy-mode: rgmii-rxid -> rgmii-id
> - Removed mediatek,tx-delay-ps
> - style: Reordered vendor properties alphabetically
> - style: Used fewer lines for clock-names
> - Fixed typo in commit message: 1000 Gbps -> 1000 Mbps
> - Link to v1: https://lore.kernel.org/r/20241015-genio700-eth-v1-0-16a1c9738cf4@collabora.com
>
> [...]
Applied to v6.12-next/dts64, thanks!
Cheers,
Angelo
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-10-22 9:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-18 15:19 [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Nícolas F. R. A. Prado
2024-10-18 15:19 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8188: Add ethernet node Nícolas F. R. A. Prado
2024-10-21 12:17 ` AngeloGioacchino Del Regno
2024-10-18 15:19 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet Nícolas F. R. A. Prado
2024-10-21 12:17 ` AngeloGioacchino Del Regno
2024-10-21 17:58 ` [PATCH v2 0/2] Enable Ethernet on the Genio 700 EVK board Rob Herring (Arm)
2024-10-22 9:19 ` AngeloGioacchino Del Regno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox