From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13526256C73; Thu, 26 Jun 2025 08:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750925671; cv=none; b=M9B7wZaQw4dSUgcZuJTD/aSq2I/WMkkB9/iz1wgdHrWgEcbOAmbV9tNpIVmynb5FYBkF3atHL0srUTe74qr3VraGF1pYOU0j52vaWS8gwp+waFPJPBTGjuuQ7vwfbDhVfb6HB0K3+Mg6iZABCciZW/2Wygl8ODxN8nRTs2oW0H4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750925671; c=relaxed/simple; bh=bKBKj/g6dLdmBtJ1nKja2cElFDqCQJuZbjQv2dPcf0k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d+e/AqS8YKpvX8moWUlm3Qr3pJf++yRkmWCN/WQH4a2yyj46wJ9+1XrLDdyZ8sAUMzfaBgS7asGfR9k3VK8AJKEV5VPqPMWDj0QHyfVw6knG7bgUwxJMVPyYkzMJKRDKJ85vMP2bldkPTX/Wh8Uba5s89CzOnhf2n4kEOc7IFz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 02B2E1F0004B; Thu, 26 Jun 2025 08:14:27 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 6B57DAC7F8A; Thu, 26 Jun 2025 08:14:27 +0000 (UTC) X-Spam-Level: * Received: from localhost.localdomain (unknown [192.168.1.65]) by laika.paulk.fr (Postfix) with ESMTP id B8B27AC7F74; Thu, 26 Jun 2025 08:09:41 +0000 (UTC) From: Paul Kocialkowski To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Linus Walleij , Andre Przywara , Paul Kocialkowski Subject: [PATCH 4/5] arm64: dts: allwinner: a100: Add EMAC support Date: Thu, 26 Jun 2025 10:09:22 +0200 Message-ID: <20250626080923.632789-5-paulk@sys-base.io> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250626080923.632789-1-paulk@sys-base.io> References: <20250626080923.632789-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Allwinner A100/A133 Ethernet MAC (EMAC) is compatible with the A64 one and needs access to the syscon register for control of the top-level integration of the unit. Signed-off-by: Paul Kocialkowski --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi index 1c4e71b32911..205faa90d37b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi @@ -420,6 +420,26 @@ i2c3: i2c@5002c00 { #size-cells = <0>; }; + emac: ethernet@5020000 { + compatible = "allwinner,sun50i-a100-emac", + "allwinner,sun50i-a64-emac"; + reg = <0x5020000 0x10000>; + interrupts = ; + interrupt-names = "macirq"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + syscon = <&syscon>; + status = "disabled"; + + mdio: mdio { + compatible = "snps,dwmac-mdio"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + ths: thermal-sensor@5070400 { compatible = "allwinner,sun50i-a100-ths"; reg = <0x05070400 0x100>; -- 2.49.0