From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3AF0CA5FCE for ; Sun, 4 Oct 2026 15:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:Reply-To:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To:Subject: From:MIME-Version:Date:Message-ID:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=VEy1tJXd7POdb4TtKrgmhf6mG2Mydw3zgn0uFhIBfFA=; b=LOhWpy2sOS6UGtF6eSmxjM9rcZ y+yqhhkZHgEwb0CgfH168XiVjK3R0F1/G0IRgPEf2jQeZ5CkJZgbRI9PPVVYnhh99tfj+hsxjdEnk du0LfMQriwnD28bVFhmaTUlExwtsDsV7dJ2vyaZut05sOQ0172pQMuPEaF2AIPT5GsigBOpgyvQ0G i4M9dSeyF5AYpNk1MUN+IrN1MGCjKAcncHbbfzMsOmpRMB3qb05EhkRmeQC+MqJforIaO9dK4sEfW JmtVQcCkA6ZOqAUsatlDy8EMU0LlSAGwAKYyVF0Ui0iGyRsscQNCGSPoJx7ujEej2yrJCKl6//tKo BLAWAOHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDO9S-0000000EzMg-2iB5; Sun, 04 Oct 2026 15:29:22 +0000 Received: from mail-wm2-x10.google.com ([2a00:1450:4864:31::10]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xDO9O-0000000EzLK-328V for linux-amlogic@lists.infradead.org; Sun, 04 Oct 2026 15:29:20 +0000 Received: by mail-wm2-x10.google.com with SMTP id 5b1f17b1804b1-49fff72474fso7091025e9.3 for ; Sun, 04 Oct 2026 08:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1791127757; x=1791732557; darn=lists.infradead.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=i3n8J2PGXLDx/H5KLegGco+ygP5/7+r1Zqv1kXmn61w=; b=YYppD5x9O2v8fsFVL8Rs1RVkHWWeRuki+lXmCi7MV9nk84yLHOGKGr2tS3QTM3VcJc G5eqYbTNTi6Gdv/fzGw0eKuQZlNsuZhonboeIcA1qtfRHr8FJq8rKYNfJtvWVV/95cH6 EAKlC92kKLmSzCuRlrBz47SkjaPPdVGQulOKw3N1YpowZ6YvOOYoWt/uo1lCxW6PN2qe wVLoYVboMbPQbjeMewBlD5Gi29ID0F9ZzLghkdX/KUt0UhK8X0fU6ZWuBFzLKO6b7qc7 0SP2Dg9Ns6JWpHmwGxDNtFgdLxKTAtNOwxT+v/o6ebYMwzuWL+kiyNgRnhAGJ7KFf2k/ 7Kog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791127757; x=1791732557; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=i3n8J2PGXLDx/H5KLegGco+ygP5/7+r1Zqv1kXmn61w=; b=2Pw1v6b11v9BczFTSXFDP4o0KBPFVHyjLTbJNWziiAy6bLxGafhM58+7sQV0M4s77f jJAILDAuw68DJTKFYbVBmQ5bV05lhdd/3ERhdh4IwExR+wPGd8i+46tg/+R201DOGr5j sUKAriZqmsj7co5QNme60Njk2x3KMwp2+GS+EG+N2VKP3cyAwwWIl7iqqt+/fv1GcRkS YLrPK+RQPePMkOEihpX6XZELwc3PFY1myf3FnXlF01sRfyx56W+FVTjHrOyzoRW+yOPB GMIebKm5y8pIvWPXhcLUnfbNSlzlkTLJPtzyubkikceMQ8O1o8zpGQSylThrXZ2PsDLU GoOg== X-Forwarded-Encrypted: i=1; AKwUvBwVYWXgNqFCX2QHIT/4dU0s7hUe/j6hjDmPj503r83yRWyYfmGOShYOWredLRLgPldSwPKwVS0moHfXTmLU@lists.infradead.org X-Gm-Message-State: AFuF++l0iZsILSgmmVmI+58/Z73VNrH5CG6PzIjkEGALdcC9X6HD8TQZ nEiEQE84jxFKBg1IrY9P2mCsyQ/WBod/pw1sU0r6aM8rddyCtVAak2RrkUEZwx5dDfI= X-Gm-Gg: AYBFou3oaEyHbQTuXoBfckhnlJATZKvQV64ThFJ26mVAqkZl8O2Y0vb8bhLiusV5/K0 qEgLy0D/BTbelbP3G7Zik9EqzMMoOph0XWDpAKAzaC8ZfTgJ42g8QvxXmpSLcWI6b/OLTpd7bAj QsTiWUtyIaUO/fpy2maQ3dgTsG69vp2uwj5+/c0D6CwTw2s2lg7sNgDyIkRFLyjw9Su+5GBaEN5 pBJaK+8vIx4n1VWnchQrrOQ4GlOJ0fwklxVCv0RdI1zfDvPHJ6RMf590d2hAFFopv1meJ6XEKS0 EFNfAoZDFb8yO2bTRB8dks8OyZqakKvMtlSAJB/NcT1RisZfzO/8DWT8CzUPzj+JzalytQiaw+r o/lUOd4wjJdi62Yjvejfv47Sj4Ltv2JRQa2Al259TWeyAju6zDHVksSLFbo3oudawxlFLAYy74l nHNlq2L7EVLxff1INf+MuLbfHAfyeK74tvSFaPjnVsFx5WO59hFP3bgPiTj0hUxtz3PCXTO9xMY RtrFMZ7 X-Received: by 2002:a05:600c:4ecf:b0:49f:ce78:3567 with SMTP id 5b1f17b1804b1-4a02769ceefmr145584105e9.24.1791127756918; Sun, 04 Oct 2026 08:29:16 -0700 (PDT) Received: from [172.20.10.3] ([37.169.53.153]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a02769a818sm280087545e9.2.2026.10.04.08.29.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 04 Oct 2026 08:29:16 -0700 (PDT) Message-ID: <30637763-03bf-4d3c-a9e9-769de28c729d@linaro.org> Date: Sun, 4 Oct 2026 17:29:10 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Subject: Re: [RFC PATCH 5/6] arm64: dts: amlogic: t7: add the ethernet controller To: Lucas Tanure , xianwei.zhao@amlogic.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Maxime Chevallier , Maxime Coquelin , Alexandre Torgue Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com References: <20261004144046.391444-1-tanure@linux.com> <20261004144046.391444-6-tanure@linux.com> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f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r1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20261004144046.391444-6-tanure@linux.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261004_082918_829927_3140DF4B X-CRM114-Status: GOOD ( 20.08 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Neil Armstrong Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On 10/4/26 16:40, Lucas Tanure wrote: > The SoC pairs a Synopsys gigabit MAC with a small block of glue > registers that selects the interface type and trims the clock timing, > and with a multiplexer that points the management bus at either the > on-chip 100M PHY or the external pins. None of it was described, so the > port could not be used at all. > > Add the controller and the multiplexer. The MAC reports a 5.10a core. > The path the controller reaches memory over runs through a pipeline > stage with a gate of its own, so hand that to the controller as well; > nothing else claims it and it would otherwise be switched off as unused, > leaving the port unable to complete a transfer. > > The on-chip PHY behind the second port of the multiplexer is described > the way the G12A does it. No board in tree uses it and that path is > untested. > > The controller is left disabled for boards to enable. > > Assisted-by: LLM > Signed-off-by: Lucas Tanure > --- > arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 57 +++++++++++++++++++++ > 1 file changed, 57 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > index 7bd53ec16607..140f1836f3dd 100644 > --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > @@ -250,6 +250,31 @@ gic: interrupt-controller@fff01000 { > interrupts = ; > }; > > + ethmac: ethernet@fdc00000 { > + compatible = "amlogic,t7-dwmac", > + "snps,dwmac-5.10a", > + "snps,dwmac"; > + reg = <0x0 0xfdc00000 0x0 0x10000>, > + <0x0 0xfe024000 0x0 0x8>; > + interrupts = ; > + interrupt-names = "macirq"; > + clocks = <&clkc_periphs CLKID_SYS_ETH>, > + <&scmi_clk CLKID_FCLK_DIV2>, > + <&mpll CLKID_MPLL2>, > + <&clkc_periphs CLKID_SYS_AMPIPE_ETH>; > + clock-names = "stmmaceth", "clkin0", "clkin1", "pipeline"; > + power-domains = <&pwrc PWRC_T7_ETH_ID>; > + rx-fifo-depth = <4096>; > + tx-fifo-depth = <2048>; > + status = "disabled"; > + > + mdio0: mdio { > + compatible = "snps,dwmac-mdio"; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + }; > + > apb4: bus@fe000000 { > compatible = "simple-bus"; > reg = <0x0 0xfe000000 0x0 0x480000>; > @@ -645,6 +670,38 @@ gpio_intc: interrupt-controller@4080 { > <10 11 12 13 14 15 16 17 18 19 20 21>; > }; > > + eth_phy: mdio-multiplexer@28000 { > + compatible = "amlogic,g12a-mdio-mux"; > + reg = <0x0 0x28000 0x0 0xa4>; > + clocks = <&clkc_periphs CLKID_SYS_ETHPHY>, > + <&xtal>, > + <&scmi_clk CLKID_FCLK_50M>; > + clock-names = "pclk", "clkin0", "clkin1"; > + mdio-parent-bus = <&mdio0>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + ext_mdio: mdio@0 { > + reg = <0>; > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + > + int_mdio: mdio@1 { > + reg = <1>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + internal_ephy: ethernet-phy@8 { > + compatible = "ethernet-phy-id0180.3301", > + "ethernet-phy-ieee802.3-c22"; > + interrupts = ; > + reg = <8>; > + max-speed = <100>; > + }; > + }; > + }; > + > uart_a: serial@78000 { > compatible = "amlogic,t7-uart", "amlogic,meson-s4-uart"; > reg = <0x0 0x78000 0x0 0x18>; Reviewed-by: Neil Armstrong Thanks, Neil _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic