From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E81A606A326 for ; Thu, 5 Nov 2026 10:04:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=IQvg5ROi 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-Unsubscribe-Post:List-Owner; bh=4OU3kPjUl9wPTtIVF4QIbxhpMpKouNcysgmvMBH4NlE=; b=IQvg5ROi1VPFvkckNdeskKkA/f mhKi3Og/qyNdL9x/sGXW2WchPMehFPVUXGnVuwGbXcGc4ZiMOLL//3A0sVijsFctcLgaeXW9dQ7Sb JIAHfVvPcAqMZkI3N2TsbaycIRtNdym/K/aB1c5DPmcLhwzvlcSs0YqZ7WwAs0tXSQBljgWftzeu7 R/Yudc6+tq2ll49YWUgZe+8IG6Wf+hpF0C2EV7O3RfTRUxkRRIBt3f9a8ryvPEvCt9WGBBPwhW/oS AgV4Uj+W9SnDuOjU4nReABPgDgXGQc781A/o+aTgua2pdx5LsfnHkAVE840exhej3RsZXPOMuUy5j bNkz49OQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xOuKE-00000008Ool-40Cp; Thu, 05 Nov 2026 10:04:07 +0000 Received: from mail-wm1-f42.google.com ([209.85.128.42]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xOuJi-00000008OEl-2IVx for linux-amlogic@lists.infradead.org; Thu, 05 Nov 2026 10:03:39 +0000 Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4a20bde60a0so14857755e9.3 for ; Thu, 05 Nov 2026 02:03:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793873013; x=1794477813; 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=paduv/zXRliBqDWBFf1W5OOKpbqC02TK32FfMcPBmKs=; b=XcC1GSUVvKCTFi4qzPfdxyEHivqOBXZ96vGsELTG9qeyjlbRQqwqi14qCFbmBgqZ2M VXW0IBdBoklSGFei05C83Fjoo/B43bPPLTi5E2XHZ04xuyNZrj6N56VA+3cSxW6aeu4Q Nbhi5Fkb8SFXTzodL5Bb5Df4OWvAddUnKMgt8Yn+ud1V83+LG4mCTxYnbne3diY7fkgB +uUjt4RNhQ6W2jeMAZ8q8yuG/onDfwMef9+1EtD/aLGmNmgmvn3F4903f0LoXTvcF1uH CP8llmQOQuu5iwmYmtVz36P8V6QhifMl1Id8U5N5phL3QJ75dgJIUf/WxozXM6SzXXb6 q0Aw== X-Forwarded-Encrypted: i=1; AKwUvBzI5mJf5k9/DhvjuDEbJNJK+2NtWNarkOfGm57zxS54ZdcekKoeVQdzTO8buK6SGusC+1CSVLyywzaktRUz@lists.infradead.org X-Gm-Message-State: APuU4Z+gSy/7dQHiBJ7Fld3X1Hs+32NHScEtS/0Rnbv6cSf9Mp0Igo0Q NgtgPG33fH65aDaB3nSkTC2Q9PC5E4lw8avd7/44velGwtNf7LlZXB4S X-Gm-Gg: AYBFou1bdApmMenNgZ2JSxEvYYCj1oxf7OCDwuvh5E48hRnuqlP4BMgJTdlEDTypT8t kuvSs0p2RVxfCJfGwwFQVDxpJNUVz3CVEYJiJpjVDQayipXPUio3mid/gHu14e1yWfNnf7jpBEi 8sjPM/luiepmy5PmEDrwmZ1TQFyThYZF0p33zqkRGleGOIisL44oHIZpNMxtajJkqMCaielavEq WGGEK+SnqZMVa2HvrtSiz90Y6NcF5++n94uMv2UZ1c98FVgCUIdqcUSy/1V6Q5caiN3ZzMZetiF uUAyKjgVkp5MxAPFEho61RFRLaV+0talCm4jC/CRsPg58vJ57pdcNHwKA1r5qglvxwSB876uaCT e/lrkLJzlftJGMXxlk1I6o1O6eApLbEPs6K/CCfI60lF+Ff3VQGt27aBoDsFid4QMowGVZ9Sbf/ fdoPllawN0J4goP+G/f1QHEBBE+KIjYqqeEvReE405ySqRu8q3Fs8rdsa1VbNK65a/1+YPCB4Vi A1gDrNFisvHckvNBoHL4M9jyzKf5lscoOACH7cyO/2wbhDJ7mQGpDRuSUjfLEQanMxz33zrbsuE bAms0e/Cmg2wJR8wYPOpCTNo0YnInJpZo9IpgVde1UE0wnersCPLRS3nxBlkLkplKnzpgtwI8iq 6Wq/6PEl4q318Dhrc+HwFjj66O4s= X-Received: by 2002:a05:600c:6095:b0:49e:7c8c:361d with SMTP id 5b1f17b1804b1-4ac182dc30fmr364050625e9.22.1793873012541; Thu, 05 Nov 2026 02:03:32 -0800 (PST) Received: from threads.localdomain ([90.254.187.36]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4b43342773esm53455775e9.4.2026.11.05.02.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2026 02:03:32 -0800 (PST) From: Lucas Tanure To: xianwei.zhao@amlogic.com, Andrew Lunn , davem@davemloft.net, 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: [PATCH v6 6/7] arm64: dts: amlogic: t7: add the ethernet controller Date: Thu, 5 Nov 2026 10:03:21 +0000 Message-ID: <20261105100322.37816-7-tanure@linux.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261105100322.37816-1-tanure@linux.com> References: <20261105100322.37816-1-tanure@linux.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261105_020337_056300_1DA89BCE X-CRM114-Status: GOOD ( 10.52 ) X-Spam-Score: -0.8 (/) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The SoC has a Synopsys gigabit MAC, glue registers for the interface type and 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. The controller reaches memory through a pipeline stage with a gate nothing else claims, so it is switched off as unused. The glue registers share a clock with the multiplexer, which probes after the controller has programmed them: unless the controller holds that clock, the writes are lost and the port keeps the bootloader's delays. The multiplexer and the on-chip PHY bus start disabled: a board enables the multiplexer with the controller, and the on-chip bus only when it uses that PHY. Assisted-by: LLM Signed-off-by: Lucas Tanure --- arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 60 +++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi index 7bd53ec16607..f15fd8f6cdd2 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi @@ -250,6 +250,33 @@ 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>, + <&clkc_periphs CLKID_SYS_ETHPHY>; + clock-names = "stmmaceth", "clkin0", "clkin1", "pipeline", + "pclk"; + 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 +672,39 @@ 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>; + status = "disabled"; + + ext_mdio: mdio@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + }; + + int_mdio: mdio@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + internal_ephy: ethernet-phy@8 { + compatible = "ethernet-phy-id0180.3301", + "ethernet-phy-ieee802.3-c22"; + interrupts = ; + reg = <8>; + }; + }; + }; + 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