From nobody Mon Feb 9 13:08:31 2026 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 9A2FE1DB15F; Wed, 30 Apr 2025 05:32:50 +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=1745991172; cv=none; b=ObxQJOxkXtj/m4gz55woLxJkrF4Hw6v2CAFs2owZKtBOlNdppNwdG3ocu/orlCawysEFfTe9yGd72PrRn418Yqj0sOZW0NN4L0rl4Y5aJ6mo0tVsMzN/PjN+WynpBe7koRkNSYUIj/vUmoe8IezlYxzA5BuUPQE34oQd1hGhQXU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745991172; c=relaxed/simple; bh=SZdtmllnLkE/VhdsaTzS9ljZiaw8YmMflpw3nLGy6P4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bDjQs+u/EXtpI28kKU/uTtGsuYlpV61ypEVuW9V9jJtuWVlnGINMTuw4cgDAPVaVju4REKXG24f4N69njUXmm+j2/XecRHr/mvMdplNm4KKqE5Al4OXL2k1+OWcZdmRhcxbT7r16EbF63/h7EfCpyj1bS/q3vQrIVww5jIrCVq4= 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.147.253]) (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 64F99343005; Wed, 30 Apr 2025 05:32:44 +0000 (UTC) From: Yixun Lan Date: Wed, 30 Apr 2025 13:32:03 +0800 Subject: [PATCH v3 1/5] dt-bindings: sram: sunxi-sram: Add A523 compatible Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250430-01-sun55i-emac0-v3-1-6fc000bbccbd@gentoo.org> References: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> In-Reply-To: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> 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 , Corentin Labbe , 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=1110; i=dlan@gentoo.org; h=from:subject:message-id; bh=SZdtmllnLkE/VhdsaTzS9ljZiaw8YmMflpw3nLGy6P4=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoEbXkNVD9Mp4LV1v+vJyJ0q+aQ4GhBTLn9lVzG gImIcDUU7CJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaBG15F8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277TUfEACZdQ6t0PyPoIomla iy4STRZrgBxH6CIEWOD1tOaHnACKjfSNKJ8pZ2M2mnEe12MqJoCWYEG1YLEznRmMUHEuiV01fOK yYS9HZHz0U/WroD+dtRq04RA9jDJxU+Ke27U4rZW4l3R17Iq3UZXWQxk802/FC4WBGLiyDVDsMU Xu/et2iAS5Rf0CuQSayzDSfrI3oFr6FESaVa+/B2V+Tm8jWCi1Lx33DQ+5KDzm5pUSp/ShiS4T2 HxGSN82LSrJPuEUsTTUzLE1HAoZN1DK5zd4ERXYMEPec3p4TQ6DTOc2BBzpRTqyOfee75bzrA2T cM9DCeXz35wWv0TmQcKLekhosz9hJVdMZiF+4bmTKkqc1W42OA9v9l/kSikoI3Pdnes1A0GDepr U/vsvRPKIozviDN1GXD6TtQAJaLc6/Ky7ou1eMcAH49nV7/qrZwWxAmFPlmpu6OoeJpSiCIdhEf cxEwB5iFXAhEp4JYHu5oqTUE6JNCwLFIcuxMld5DEmVju2eFZygKrbkGjO2l281AM00xbr+gHtR C5vjftpFMsFxl3GVcZUTT2Bnj3UGrlTxEbS7+g7HtxCrC2XM8i/Pn4IOmg7rgT7oWiEpzpBDSJn 8MuOUQ5AFAg6D8OeJthDjvj/hsGFYxMNE+Wp65tTC/bKgcNIQPqETKmPL3vmp5NJP3dQ== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 The Allwinner A523 family of SoCs have their "system control" registers compatible to the A64 SoC, so add the new SoC specific compatible string. Reviewed-by: Andre Przywara Signed-off-by: Yixun Lan Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/sram/allwinner,sun4i-a10-system-control.yaml |= 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-sys= tem-control.yaml b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a= 10-system-control.yaml index a7236f7db4ec34d44c4e2268f76281ef8ed83189..e7f7cf72719ea884d48fff69620= 467ff2834913b 100644 --- a/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-con= trol.yaml +++ b/Documentation/devicetree/bindings/sram/allwinner,sun4i-a10-system-con= trol.yaml @@ -50,6 +50,7 @@ properties: - enum: - allwinner,sun50i-a100-system-control - allwinner,sun50i-h6-system-control + - allwinner,sun55i-a523-system-control - const: allwinner,sun50i-a64-system-control =20 reg: --=20 2.49.0 From nobody Mon Feb 9 13:08:31 2026 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 40DA01E0DF5; Wed, 30 Apr 2025 05:32:56 +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=1745991179; cv=none; b=KA4uSWRXW0m5YO+/L7oRsZBIKynHMF262qUZw4pGkYg9hdnWiMOtiMbagawAAf08nQjxKQDdkULqtLmiPuGYqdvoikSzSMdBZd8cTgePyMOWKaJZExd9F2DSFrQIpAx3ewofZ12SuPa7QSPNcOLCcoqM/jE/rt/cE4vtbgEP1Q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745991179; c=relaxed/simple; bh=CPzf3L1maEHhRUPeCLRLGmqGZlZyME7KCDHk90hRYuc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f590+SL0xvSKbHSVpt8EWwBJ9sQXhhegB3EQ0yb2jBbi2xmhkaajhcg44bcSbNyoCOBNn8OBJKrliJzFLVJiw88fVUmqT/S4udAt6BAurybNjZM9dydkulnMPDByYHN6zDEW/FAtQjYJEMhXW6xItkpqQDAxII8KTC3mIF8jFu0= 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.147.253]) (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 E9CED342FEF; Wed, 30 Apr 2025 05:32:50 +0000 (UTC) From: Yixun Lan Date: Wed, 30 Apr 2025 13:32:04 +0800 Subject: [PATCH v3 2/5] dt-bindings: net: sun8i-emac: Add A523 EMAC0 compatible Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250430-01-sun55i-emac0-v3-2-6fc000bbccbd@gentoo.org> References: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> In-Reply-To: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> 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 , Corentin Labbe , 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 , Krzysztof Kozlowski X-Mailer: b4 0.15-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1072; i=dlan@gentoo.org; h=from:subject:message-id; bh=CPzf3L1maEHhRUPeCLRLGmqGZlZyME7KCDHk90hRYuc=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoEbXnm8j17q1Yhro6i5iwTkR8e+i4yNgzH3agD hpv6s3fcFaJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaBG1518UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277WxdD/0Z515FxE2Dy78AXT 6LRWQ6gJdVM0xmzzUHcAgaqUxcdWQfdI/bMBQ5kn9brdEaU01JtyK3CQmH7QkdKoEXejfwDvd+e zTkBqmyNKMh4BHKXaejhgnQj+Tt77+JHqIK4+mvFXCfJb2YfW6BCkVgBL2D6Rwd5KqgwZA+TgRR Wn3FJ73G0hJOimgPIBchNlkK3PqwDqzLgL2ZfITkYtPjfp22Ea0eQIcVzQlXucs/9iH+YbgrAFd vOyGqCN89/0RL3vELFh1RarYDP1EUlLtjXv2qvcKMLlo6I3Z2PpOeTAK4a2Tv95MJV/QrmnfEZO pYV6wiSNGLKzLHnxbcQf1rteK3f4THkbBniV99tRpuppuJcRAGqQlBseBiSbnxuilYKDJOuE6Op Akk/CqFQUFlCdgXrnzCcOL9Z/ajhc6lFQXSqiSBJqmOsLgR/jgLeIlunV+wxWupvPmw6raO1GlO /GyhOLXt21v39iNNk6s5YWDHk13rShWiUT5aBBxpQXqpDvMPPYYX16crjl1Sty6ExX0qsVE/f3L j6QapTHXTXqlnm+srvHquZjU7VECU6y4ce71ppC+Fo4AwR6X5Izn92tAKM/ohSk3vgi6iR8xqM8 da/ZzTAoLwPu7cFW4HrW9SON/onhLfqTWtqrkP3aOeQZ59ERAWqExASipyaCqlcgPVLQ== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 Allwinner A523 SoC variant (A527/T527) contains an "EMAC0" Ethernet MAC compatible to the A64 version. Reviewed-by: Andre Przywara Acked-by: Krzysztof Kozlowski Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-ema= c.yaml b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.ya= ml index 7fe0352dff0f8d74a08f3f6aac5450ad685e6a08..7b6a2fde8175353621367c8d8f7= a956e4aac7177 100644 --- a/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml +++ b/Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml @@ -23,6 +23,7 @@ properties: - allwinner,sun20i-d1-emac - allwinner,sun50i-h6-emac - allwinner,sun50i-h616-emac0 + - allwinner,sun55i-a523-emac0 - const: allwinner,sun50i-a64-emac =20 reg: --=20 2.49.0 From nobody Mon Feb 9 13:08:31 2026 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 0550F282FA; Wed, 30 Apr 2025 05:33: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=1745991184; cv=none; b=b6Vw1UKLrt7O5bEePtp2gGapgjfPtPdcxTY+fpoSk8m5Jtg6wGFNUvUwIIO2mOGGqwqOv6lrJjLgX+Zk4esGwHzT41P/fVpaESr/rk0yCKK0x3Yby4EcRR7FQxPZPnA5S/lHLbR+WiGNi5Ul/A+RhtOhmbSCaqiNkpgB3Ul0DG0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745991184; c=relaxed/simple; bh=jcSk9XlWcTHAuaWk6k7yBAgv5mcN5gJJEZhxrUiXlA4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QuYD21Qg+76pH06bwWXDrMEFqcRvGeFyhPJrzt04pKrJrgUNSBtq/IHSh74zw2kuRP83rYxT69JlsAwuxQs73wyPOgc1AUuuGToXk7AQhwGJ1mJUGWOTIeL6ECL4I8BuqpwC2GVRc19Fn/XECGp6e7pUoH0UA9eIQGT7qyLuxnA= 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.147.253]) (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 47F13342FF2; Wed, 30 Apr 2025 05:32:57 +0000 (UTC) From: Yixun Lan Date: Wed, 30 Apr 2025 13:32:05 +0800 Subject: [PATCH v3 3/5] arm64: dts: allwinner: a523: Add EMAC0 ethernet MAC Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250430-01-sun55i-emac0-v3-3-6fc000bbccbd@gentoo.org> References: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> In-Reply-To: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> 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 , Corentin Labbe , 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=2563; i=dlan@gentoo.org; h=from:subject:message-id; bh=jcSk9XlWcTHAuaWk6k7yBAgv5mcN5gJJEZhxrUiXlA4=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoEbXqfMro5EpesqztKi/IHjQSAG+BRljr4Vx3v ZbpW+havXaJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaBG16l8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277fQ5EACY7OotR7YXC8hcJW 40EvcHd8QAkmRLuiT+aeOAzMzXTj1A4Zo5jGGyFp+D8GQxtws/8ij/iQPR4081svXWOQ+QnrBAo M90t/I/C0QmDlcHJCoXXIhTsGzbpf5h7CM3XAKx0lfkW0T3E0PH7uYxR348Xyt3zEbozUnZJB/R PF/kNAL2hUNLUf5+ScMZHLcYaAHm04NF24xA/ubFYk00x+n0vty20G8VKBtN5TlGV/XwcfST+Vt 8qDHmWhhAzcdd70Y9pClLvaq8K0HZ18RUbVhrvXwfVyx77CkIHiyOzK5TW81siobKQ4DCspEXR2 lmIFSBWSpIQTJppKptvezQbcglpooEd4B37uajUVgEf5ng6Epu5qi5U9SmLnIZyNdl58TPlNImF Tse4/rVTMgWT3xAzJuSHUYRl4TFeasZrZ8kZ54RXe7pPF6Kd42OS8SYMahDS+iB4FZMuQdg98OJ 7UqiBohvA5nsgoe/21LRT49J1LdgaFTwe/PNQgfTGE0f+llpB2bbZduRssnVgC9wX3awETTCQS1 yxbEAttAhjCAba5lFOlTVwuvuF+V7racc3nMaNPwVDnXn2wpSLmocVVKTnbFSw/MNLXxbD3Llkn M9erKjS8AJc3Ro5mmrBlzyHrVxSdXb+iGNxl5UZvDjL9EgbK5zxFq/2FT9HORhaCd9nw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 Add EMAC0 ethernet MAC support which found on A523 variant SoCs, including the A527/T527 chips. MAC0 is compatible to the A64 chip which requires an external PHY. This patch only add RGMII pins for now. Reviewed-by: Andre Przywara Tested-by: Corentin LABBE Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 41 ++++++++++++++++++++++= ++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/bo= ot/dts/allwinner/sun55i-a523.dtsi index ee485899ba0af69f32727a53de20051a2e31be1d..8b7cbc2e78f500e1dc704e9a6be= e87e70285509f 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi @@ -126,6 +126,16 @@ pio: pinctrl@2000000 { interrupt-controller; #interrupt-cells =3D <3>; =20 + rgmii0_pins: rgmii0-pins { + pins =3D "PH0", "PH1", "PH2", "PH3", "PH4", + "PH5", "PH6", "PH7", "PH9", "PH10", + "PH14", "PH15", "PH16", "PH17", "PH18"; + allwinner,pinmux =3D <5>; + function =3D "emac0"; + drive-strength =3D <40>; + bias-disable; + }; + mmc0_pins: mmc0-pins { pins =3D "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5"; allwinner,pinmux =3D <2>; @@ -409,6 +419,15 @@ i2c5: i2c@2503400 { #size-cells =3D <0>; }; =20 + syscon: syscon@3000000 { + compatible =3D "allwinner,sun55i-a523-system-control", + "allwinner,sun50i-a64-system-control"; + reg =3D <0x03000000 0x1000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; + }; + gic: interrupt-controller@3400000 { compatible =3D "arm,gic-v3"; #address-cells =3D <1>; @@ -521,6 +540,28 @@ ohci1: usb@4200400 { status =3D "disabled"; }; =20 + emac0: ethernet@4500000 { + compatible =3D "allwinner,sun55i-a523-emac0", + "allwinner,sun50i-a64-emac"; + reg =3D <0x04500000 0x10000>; + clocks =3D <&ccu CLK_BUS_EMAC0>; + clock-names =3D "stmmaceth"; + resets =3D <&ccu RST_BUS_EMAC0>; + reset-names =3D "stmmaceth"; + interrupts =3D ; + interrupt-names =3D "macirq"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&rgmii0_pins>; + syscon =3D <&syscon>; + status =3D "disabled"; + + mdio0: mdio { + compatible =3D "snps,dwmac-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + r_ccu: clock-controller@7010000 { compatible =3D "allwinner,sun55i-a523-r-ccu"; reg =3D <0x7010000 0x250>; --=20 2.49.0 From nobody Mon Feb 9 13:08:31 2026 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 5A0C71E2853; Wed, 30 Apr 2025 05:33:10 +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=1745991191; cv=none; b=HxfaVGzsZbumtEwQehAYTjChVHHWt7nUT5x3fVVLd4juQ1N7J1D1YpRbyamwjI2C+4b+tuZQBZRmbZXvVJUzEp98jRQf4PjspGIehSz2Labtl+wlQB+3XfzrjPMamOsrYNWV1VJT4cRPzZc7ornEjWr75a2xDYaddwWqeXHyyZM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745991191; c=relaxed/simple; bh=+xnhPAiqUtLKUq/HZ9jywkOy5GBJ0Z23GSWcCzDUBKg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kd7JhxJZDnmEcQP/ApqKhTFplT/ogxjtsB+4mB3g0/pnSJEsMIvJEjo/gUQG4BpEUcpMkG1NNFTweT3U841ifm9da8ZsiYKOtSby9N/dyLkg+05qFYhjsSrTmoj+0AkX1QuMd+OxGiXiW09iW4mkoFSvgQxlxWJobOHJzLhscqw= 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.147.253]) (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 5BB0C342FEF; Wed, 30 Apr 2025 05:33:03 +0000 (UTC) From: Yixun Lan Date: Wed, 30 Apr 2025 13:32:06 +0800 Subject: [PATCH v3 4/5] arm64: dts: allwinner: a527: add EMAC0 to Radxa A5E board Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250430-01-sun55i-emac0-v3-4-6fc000bbccbd@gentoo.org> References: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> In-Reply-To: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> 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 , Corentin Labbe , 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=1419; i=dlan@gentoo.org; h=from:subject:message-id; bh=+xnhPAiqUtLKUq/HZ9jywkOy5GBJ0Z23GSWcCzDUBKg=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoEbXuUxfH+H4Pdw6T4crbCWAQ7c2I9Em8iiyCV ht13AZULYGJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaBG17l8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277V32D/4mG88MeMRBinBzvh 15g2QUaZ71AZ2IKdE2xgRx/dvRrKhNwiw33uvozsePf5V+YBKFzvTpa413EbZL1Ey2kF1CQjkLA vRKJusKl9g3mC1KYGDWoTyGz3UUL20DIvfCNeutNfy348BU3yvqL7XrEww86RR9/aJKXFnJwOHx 7zrzVJxGQ5b0/EwQ6nXEfBT878mPhvh1+VX8utCIvHZ7oLrn1oxQ4kxs7R+Qckb0TaXxguSjIIK NBaD26rLsECB2FNMuCdCKaczIisapmQGmV8Qb6Ozi03zQE98qq64FF0ZfwtAdpW4cdGLq8otkC0 nHY00IPa7jswXdqNPyC4JztVzf6FBRGzE69d02+AuelQyMeiELuRzrXpwAmsOossm0yOAvlc49d mW7kqTdR3rYobn7hSmXr9MCHH47cbUsGot9LIft5FMTyxTU4XIF1cqDnOtdEgxDb0wFV/nfCC2S ywryVl02zgCY+fYjmmdOXFQMavFpRAVSrVtVkQQpE3c85SzHfFvabMUjgcnQAiaJ5hAhdlcUiof bju0CpULaSrTIrH80bMwLxl46fozfm58Xl/iY3fKJQZekVUikBurpQwGQexVIvTzD3RyoiP1R8r IJcEr0FPfJ4BaqDae9CE9I6SEhzrVHFk/4GDw5r2zvetJZz8kjyP3mDbfnIxew5g9Wew== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 On Radxa A5E board, the EMAC0 connect to external Maxio MAE0621A PHY, which features a 25MHz crystal, and using PH8 pin as PHY reset. Tested on A5E board with schematic V1.20. Tested-by: Corentin LABBE Signed-off-by: Yixun Lan --- .../boot/dts/allwinner/sun55i-a527-radxa-a5e.dts | 19 +++++++++++++++= ++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts b/arch= /arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts index 912e1bda974ce5f64c425e371357b1a78b7c13dd..4ba01ea6f0db793b08fb0645226= 126535d91c43b 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts +++ b/arch/arm64/boot/dts/allwinner/sun55i-a527-radxa-a5e.dts @@ -12,6 +12,7 @@ / { compatible =3D "radxa,cubie-a5e", "allwinner,sun55i-a527"; =20 aliases { + ethernet0 =3D &emac0; serial0 =3D &uart0; }; =20 @@ -54,6 +55,24 @@ &ehci1 { status =3D "okay"; }; =20 +&emac0 { + phy-mode =3D "rgmii-id"; + phy-handle =3D <&ext_rgmii_phy>; + phy-supply =3D <®_cldo3>; + + allwinner,tx-delay-ps =3D <300>; + allwinner,rx-delay-ps =3D <400>; + + status =3D "okay"; +}; + +&mdio0 { + ext_rgmii_phy: ethernet-phy@1 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <1>; + }; +}; + &mmc0 { vmmc-supply =3D <®_cldo3>; cd-gpios =3D <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>; /* PF6 */ --=20 2.49.0 From nobody Mon Feb 9 13:08:31 2026 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 EF4BF1E2853; Wed, 30 Apr 2025 05:33:16 +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=1745991198; cv=none; b=ZZDTkwl8gLbzNcb0HYDgrdW/KnFAx8tAI3gEGoSwaVUkShBC07bDZFBpzHK1Zd18yTd7ut6qWdlu1JHg9dJBbeoFoArsU62+U/vIL0609B3sxRgzjwqsO1qcKup6K3BbQG9cudbECA5/9fbApqs0npUtBfHBV7wek9J4hV1OvJA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745991198; c=relaxed/simple; bh=KQtVVkxqKgq++RrOtQPY3AP4zXz78fWySFRMQ+WV2cw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DYY6T/AjO6SSqB1ZQYw7CMDUw5JHVBqScC21/uictsg5qw4XDfMDS0d7sUrz3iF+5ndr2NSgOUFldM5Ks3EFSYHJ4wXQLwqzQbYIt1UJqK12xBUnvCKtCVNFPzEfadJnI2MpLscMphuTrUxPVf6IMIJVtaWWlupQZzp/cNbO15w= 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.147.253]) (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 D62F4342FF8; Wed, 30 Apr 2025 05:33:10 +0000 (UTC) From: Yixun Lan Date: Wed, 30 Apr 2025 13:32:07 +0800 Subject: [PATCH v3 5/5] arm64: dts: allwinner: t527: add EMAC0 to Avaota-A1 board Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250430-01-sun55i-emac0-v3-5-6fc000bbccbd@gentoo.org> References: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> In-Reply-To: <20250430-01-sun55i-emac0-v3-0-6fc000bbccbd@gentoo.org> 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 , Corentin Labbe , 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=1431; i=dlan@gentoo.org; h=from:subject:message-id; bh=KQtVVkxqKgq++RrOtQPY3AP4zXz78fWySFRMQ+WV2cw=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoEbXxaftpe1NJ9cfpRt022XLIsXHhvqeP/+lrN m3gmTKPy3uJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaBG18V8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277dNvEACeKULnlu5Zk1MfpK yFz42975F08U5nXUWjXpJ+dsJ+loBIeJ/f2vkvtVqTj89Rm7vG3CLPPpjS7Oy7EEumMogyINsP5 q9F8GateiqiLR7QU5FsoaB90gavEActY7+USEUqEE5UmFxuRX6AhhKG6aUy8VVkyiPokgkptcvB pz3pPsyg22fBo3Tz4TBVp7O9TyJLGvW+++BPewKoc0PFPUOlcarVraKMm+I+9uAwLsgGSjL0hz5 Ka6uCcZVQf6VpkUMBfoVj+CqUfbrLAdrMs2SUgxUC2QwMLKRtthXF41CKYSSrVtw/isObSgBPPw 932xGk//aOyGX4mEYRTttXm5mgFUnB84/y6N/s8FrVUK0/+y1fVSqi0MnX1NsGa/LOsQn4+CBWs NhThpLovc21IjaVakM3bgkL2QzGKfOmA6e/Qek4c3Iq78GGNJ8WccjktK1I/+uWer/4FUePaRQL +I0IPjaTSFiG4Qkgv/0NJUFcMSO5R9J3ddEwFLjyuEzOUk/3L3OkPBevxnUN8uTBrYa13Yq3QLu puGs9vF+R+41UZFqAOl3nAsQmUwHqY5XGusqKXaDukMAK6Uh3iFENHt7saULfWyY/J4MLu5oP82 mITBKX8eCawg617cCed6gQvKRtTJWR5aXcV4d880ZlDm2eJIdFSZW2+Db43GwT+/CXJg== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 On Avaota A1 board, the EMAC0 connect to an external RTL8211F-CG PHY, which features a 25MHz crystal, and using PH8 pin as PHY reset. Signed-off-by: Yixun Lan --- I don't own this board, only compose this patch according to the schematics. Let me know if it works. --- .../boot/dts/allwinner/sun55i-t527-avaota-a1.dts | 19 +++++++++++++++= ++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts b/arch= /arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts index 85a546aecdbe149d6bad10327fca1fb7dafff6ad..4524a195e86d20089cc35610495= 424ed2dec7e95 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts +++ b/arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts @@ -12,6 +12,7 @@ / { compatible =3D "yuzukihd,avaota-a1", "allwinner,sun55i-t527"; =20 aliases { + ethernet0 =3D &emac0; serial0 =3D &uart0; }; =20 @@ -64,6 +65,24 @@ &ehci1 { status =3D "okay"; }; =20 +&emac0 { + phy-mode =3D "rgmii-id"; + phy-handle =3D <&ext_rgmii_phy>; + phy-supply =3D <®_dcdc4>; + + allwinner,tx-delay-ps =3D <100>; + allwinner,rx-delay-ps =3D <300>; + + status =3D "okay"; +}; + +&mdio0 { + ext_rgmii_phy: ethernet-phy@1 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <1>; + }; +}; + &mmc0 { vmmc-supply =3D <®_cldo3>; cd-gpios =3D <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>; /* PF6 */ --=20 2.49.0