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 96076CA5FFF for ; Wed, 7 Oct 2026 08:26:46 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RZ4m44j0he6olXcKcnaayq2hr7umIcXHlmBJ5W/FCNM=; b=zqNArgGQ9S+VWN ln9FMPt9J6H16pIhu90GqmQUiTGdZ9AvXie3VQsdZmMbyAXQXZSYYpPEKbf0EBjHZ3DFJGtdH6TvH P15tZ5rj87a6gK2kjde+d8XgrZB9LUTykPilJS6iy8z8Y+rzwMZXS1QRUubbtwRSLez1lJDh4w80L JGC4NBopOUH8EsvNS8auNtI+0cQt9zJe4kqIgQKgPebFufbgg4+5yrNGcmqKUXH18QjwB/tnqD5y+ 8/fiQkF5PI69ZFR7yfiQzk/hpCFwmslfd/C2ngIB4E46zsw8p9cTB8qAXvPExYLLJ6++1lb4GhjD9 4p4iWi+ShxoQFUILhDEA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1xEMz0-00000001wVm-2R48; Wed, 07 Oct 2026 08:26:38 +0000 Received: from mail-wm1-f51.google.com ([209.85.128.51]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1xEMyy-00000001wRG-0dBa for linux-amlogic@lists.infradead.org; Wed, 07 Oct 2026 08:26:37 +0000 Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-49e73611928so10891985e9.1 for ; Wed, 07 Oct 2026 01:26:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791361594; x=1791966394; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=aKKIB8jplVEe3d7I5HpiWgRDARvx1E69zSOwXtBJM+g=; b=LsNJD3UhOvcB94OGClbOlAtrtXKCw2HD/zak+329pKnpb3PMWScK2gDlNLzKjdwjXI x6rN8DIuncdX0xLQnf6g6tXWDDVz9X1YawTWYEcM6xw7lSPcAhw8IPb/R+iHIsbkqVV6 c6BFJgg6SSE4Y3Gk+vRmW1szVovSsmsYPxRzBljXOWYK3aa3od2Uc0vI+r5NbrtcByKM 9fMllrf94mad24uglX8r98W0t+9BM2zWKo1NPLTEy4mbLcUaV2xu/qFjne2Twi8GRgvs 725kAAC84r+6g94PqPEX2gIvvuxJjvsoENjA1/SvcmwJ26abMgozkT28gw0X9tbKWJV5 KTKg== X-Forwarded-Encrypted: i=1; AKwUvBzX+BhM8yH0nyP2jVKpcWJ2nYV9Bb9yLXhSnrXlkCysFwmtFp/oX0gJnyNxjq/DBbTUmGcV2Ya07imr8wMC@lists.infradead.org X-Gm-Message-State: AFuF++m7keZkl0x/UkP3RIZUrashv8eiLu7roNs9urHpgeDSWFmib5yV Y8W46Mt/ODi+lOTmgRKgyYqalEA5PmCvstiK6HyiyT9inFIFrr9E2VdJ X-Gm-Gg: AYBFou2iBteGaM4LsdNy7y+uNyn1HiN3D6UKbpPj2UbCjYOY99n3Bp3/EGXTMivFDNN Prxiv666NmtUj4fkYDD7KjGhfJnMbbK77ZX4/IvofcJSQY4NG71agWKRNq9cSSokhgpmNShy1/n BcMdsPC9hW9RHgi2AG4uTQ3qCjFFckyg1uKYV2Fxx1HvGZqxNVRqgZc+s8jbQ81dscBwMnwF/aD J6MQ/htY5bNk2QaduDjv9BG5+iFDvslys8D5mlBP4You70TdS54Ii5Mmzp4ZkRyUy2lJQq2QD8L oXCwSZdplQVqtMJIeYZ3bPnq49U0459aP9KOOC17HeNOEIc/EB2nvfkRqfMKqx6vRCPXx/yFQsp qCzoiFIVRypFMU68aNIWHNEEoEYyAhw6nfvTE+cJnaP9LteIjSLui3+N8ueWZxm4Y4OWgNeMrDT xWC8AyZCPZHSf2uEmi1IK+KCtSk9aTcy+dy/S5pgR6FQWN0Qs7yIRrkwaGvBe0XQrszrI4t6f9W S889/Ss0Ur0PYU9aorevH074Zv3swCbm7U= X-Received: by 2002:a05:600c:890b:b0:4a1:7e26:9a5a with SMTP id 5b1f17b1804b1-4a17e269ab5mr38619595e9.15.1791361594101; Wed, 07 Oct 2026 01:26:34 -0700 (PDT) Received: from threads.localdomain ([84.70.176.222]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48c71d3b502sm4251370f8f.52.2026.10.07.01.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Oct 2026 01:26:33 -0700 (PDT) From: Lucas Tanure To: xianwei.zhao@amlogic.com, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , 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 Subject: [RFC PATCH v2 6/7] arm64: dts: amlogic: t7: add the ethernet controller Date: Wed, 7 Oct 2026 09:26:26 +0100 Message-ID: <20261007082627.63807-7-tanure@linux.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261007082627.63807-1-tanure@linux.com> References: <20261007082627.63807-1-tanure@linux.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261007_012636_203433_CA9F3FAC X-CRM114-Status: GOOD ( 12.38 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The SoC has a Synopsys gigabit MAC, a block of glue registers that selects the interface type and trims the clock timing, and a multiplexer that points the management bus at the on-chip 100M PHY or the external pins. None of it was described, so no board could use its ethernet port. The controller reaches memory through a pipeline stage with a gate of its own. Nothing else claims that gate, so it would be switched off as unused and leave the port unable to finish a transfer. The on-chip PHY is described as on the G12A. No board in tree uses it, so that path is untested. The controller is left disabled for boards to enable. Assisted-by: LLM Reviewed-by: Neil Armstrong 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>; -- 2.56.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic