From patchwork Wed Apr 23 14:03:21 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 193 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F23B279335 for ; Wed, 23 Apr 2025 14:04:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745417045; cv=none; b=c7GJ3nQqt4waxetLZCO0yR2zWvh/S9uA7Bofdk+LmiI4R06uHhcxGbcAV0ya4eo+jp2CwZZHaKjGcbws6Aup+9PaPngQRojL7zIHmBHI7nvyLLaACn/mCxtQzM8heWtS47bjOLcf/ATJkLz6W0lSCaZ4FXRYei+tXsajdexUe1I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745417045; c=relaxed/simple; bh=hZqEM5nE7TvaLpWqvoc5l3TI9Oubf5G1nbiY8Pi5PH4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=BXaHMFCIjke1s5clY6/vvLoS/MTB10e7xHkCFzhyFJ63U3MOxFIzIDUrmS2y3OXTElh0EoJYqUYDaDrKOt2HNk/zw7QeRZitVrhgwplNEq1HGLMe2O8mqU7ezFOnnztW3xM4+Ebb6sl+BcP5aeZR99D4G2N8i+z6q4Q7oouh9ls= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org Received: from [127.0.0.1] (unknown [116.232.18.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dlan) by smtp.gentoo.org (Postfix) with ESMTPSA id F323A343087; Wed, 23 Apr 2025 14:03:56 +0000 (UTC) From: Yixun Lan Subject: [PATCH 0/5] allwinner: Add EMAC0 support to A523 variant SoC Date: Wed, 23 Apr 2025 22:03:21 +0800 Message-Id: <20250423-01-sun55i-emac0-v1-0-46ee4c855e0a@gentoo.org> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACrzCGgC/x3MQQ5AMBBA0avIrE0yygiuIhbFlFkoaUMk4u4ay 7f4/4EoQSVClz0Q5NKou08o8gym1fpFUOdkMGSYKlMiFRhPz6wom50IWcqWbUOuHh2k6gji9P6 P/fC+HyFAyS5hAAAA X-Change-ID: 20250423-01-sun55i-emac0-5e395a80f6bf To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Andre Przywara , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Yixun Lan X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1355; i=dlan@gentoo.org; h=from:subject:message-id; bh=hZqEM5nE7TvaLpWqvoc5l3TI9Oubf5G1nbiY8Pi5PH4=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoCPM4DKPuBzZRVqb50T8PXyF0UCKRr4fPVdY3s xmCwN+ZxpuJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaAjzOF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277SAQEACFJYjiSRxvE/mbb9 F0SyhbAmPcpzsTcEoKbxHroJiSTxxoeWs+r/5TyOOnNbUwJnYoJ6+gjZHiAelGlImh7gSNnOQGy VEuHuUZGDpiGPB4fU1sTh1Fl/5ii8niwqIu+Ygx6ScocrgNNciHTC48Ge0/7r9zl+x+WhYwnY94 JHQLC9hcrNUxzj/5JUtUJ/BIT+XmC2YJEOV0VZeA0rtcGBFhyuFufIrBTVq/cYpKhTCIM7I0fMX 8fqENSCW9DT2ycGBbSFiBIgOk+Lb2irHyzr2HZDPhkW6OYMnSU9vkey+13JszErEZf6LV75+Df/ LtFjXyGU7YziaK0JevsgLA0p7EJU7MXxizfGOVO+Qj6PNqxCLttlv607QizLCpWkcr13sl59xW+ T2bHYmmll5s1VM0mQWuJqjit+gJWm9Rt+aE1/dRwKjjN+2fTJKKmC0IxYgttiDu84WRDHo4lo0t cXSoyWKB2FVwZ0dQDvqiSCalX3CQs0V2ZvFsE+GCBbBTWMbN/jlQ39sP13SHdZzuoiKabkf9dRr RyHSARPSW7QT/UBAaOfi/p3GPfllr6RY7CP73piRJy7sUNXyR2qNX4DUUt8yfdwKrJ3PzeXHJuo guSiGgJzjAsvw6CvPr8khtvtTDHP9pAM7UmN8vfAhwwCP/UTEeXalnYgzr0uTrKxgT7w== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 Status: O This patch series is trying to add EMAC0 ethernet MAC support to the A523 variant SoCs, including A523, A527/T527 chips. This MAC0 is compatible to previous A64 SoC, so introduce a new DT compatible but make it as a fallback to A64's compatible. In this version, the PHYRSTB pin which routed to external phy has not been populated in DT. It's kind of optional for now, but we probably should handle it well later. I've tested only on Radxa A5E board. Signed-off-by: Yixun Lan --- Yixun Lan (5): dt-bindings: sram: sunxi-sram: Add A523 compatible dt-bindings: arm: sunxi: Add A523 EMAC0 compatible arm64: dts: allwinner: a523: Add EMAC0 ethernet MAC arm64: dts: allwinner: a527: add EMAC0 to Radxa A5E board arm64: dts: allwinner: t527: add EMAC0 to Avaoto-A1 board .../bindings/net/allwinner,sun8i-a83t-emac.yaml | 1 + .../sram/allwinner,sun4i-a10-system-control.yaml | 1 + arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 42 ++++++++++++++++++++++ .../boot/dts/allwinner/sun55i-a527-radxa-a5e.dts | 17 +++++++++ .../boot/dts/allwinner/sun55i-t527-avaota-a1.dts | 17 +++++++++ 5 files changed, 78 insertions(+) --- base-commit: 69714722df19a7d9e81b7e8f208ca8f325af4502 change-id: 20250423-01-sun55i-emac0-5e395a80f6bf Best regards,