]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Fri, 18 Oct 2024 15:19:03 +0000 (11:19 -0400)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 21 Oct 2024 13:46:21 +0000 (15:46 +0200)
Enable ethernet on the Genio 700 EVK board. It has been tested to work
with speeds up to 1000Mbps.

[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: 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>
Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241018-genio700-eth-v2-2-f3c73b85507b@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts

index bb68665f0b2da80397b833db0241a06648a322a0..13f2e0e3fa8ab6679f843693230b9661d323a705 100644 (file)
@@ -23,6 +23,7 @@
                     "mediatek,mt8188";
 
        aliases {
+               ethernet0 = &eth;
                i2c0 = &i2c0;
                i2c1 = &i2c1;
                i2c2 = &i2c2;
        };
 };
 
+&eth {
+       phy-mode ="rgmii-id";
+       phy-handle = <&ethernet_phy0>;
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&eth_default_pins>;
+       pinctrl-1 = <&eth_sleep_pins>;
+       mediatek,mac-wol;
+       snps,reset-gpio = <&pio 147 GPIO_ACTIVE_HIGH>;
+       snps,reset-delays-us = <0 10000 10000>;
+       status = "okay";
+};
+
+&eth_mdio {
+       ethernet_phy0: ethernet-phy@1 {
+               compatible = "ethernet-phy-id001c.c916";
+               reg = <0x1>;
+       };
+};
+
 &pmic {
        interrupt-parent = <&pio>;
        interrupts = <222 IRQ_TYPE_LEVEL_HIGH>;