From patchwork Thu Apr 24 10:08:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 1754 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 D4107225776 for ; Thu, 24 Apr 2025 10:09:46 +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=1745489390; cv=none; b=UmW9owf4Ga1FTmsjUaUW/bAT0z1N7faPpTqJzyUxRwhTOMSrJdfDUUWf4nU8TUjHxgxDFn4LfHME1ybghYCnWpktBVNhhRctxms/j8K4ci99mY8e9EWGkHIk28kHWpGivl/dd7lYzCskRMw/wkOYIxGPbS4ZTtzwIAb5DQ2Hgb8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745489390; c=relaxed/simple; bh=+NlsYWBT81OiKiPSY+YWQO3B5u/NpVPaPxCCQFXhMuU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FDY3Go0fQeAHlcZGc510isLaLnamr06imE2dNySXQTOnY4IjeiBx+fwIyjgb7x+Q+GFzbxAqS9xzNW+/K0iVFjmHXyj2ecwfcU3OY8BXO9KyQqoJ/ML+Rcjm0qOqmR56Iq9DhGWb5IibGzwpqGx9MhJDZvCmVNA57zgoZFyTAms= 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 77E40343016; Thu, 24 Apr 2025 10:09:40 +0000 (UTC) From: Yixun Lan Date: Thu, 24 Apr 2025 18:08:42 +0800 Subject: [PATCH v2 4/5] arm64: dts: allwinner: a527: add EMAC0 to Radxa A5E board Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250424-01-sun55i-emac0-v2-4-833f04d23e1d@gentoo.org> References: <20250424-01-sun55i-emac0-v2-0-833f04d23e1d@gentoo.org> In-Reply-To: <20250424-01-sun55i-emac0-v2-0-833f04d23e1d@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=1360; i=dlan@gentoo.org; h=from:subject:message-id; bh=+NlsYWBT81OiKiPSY+YWQO3B5u/NpVPaPxCCQFXhMuU=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBoCg3DeFF+Lod5Sp4RF40iamQgTlUVUaHaoQ8RN NdermzD1/CJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCaAoNw18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277eLND/9ysWatZ1XvVsDrzi lC4N7NPUNozYOG7M2jBPgSJ6LmyzMG/VbCrpp/tI5sAAeZntM910Kdi4Jh2e4Ywml5ocAihIPRH dnyn166K75K8W/X9ouYXBxnLIm8xNLC5SinPbwisXjgglAre9u9KKpIJAveifvU2k6/0l4Wjdxg 4JCVNRf55Wc5E/eNR3FEQSnMwvP3nSgKRBhaTqdeqpV1FNvTeF+u9pKFkxsa/4KF12LxcAer/SL cHM1ji9JXFnKXzJEC8e4K0b33ymwKMLnNVgHyVnGTjhmRBJDAJtI3VZ42bDmwLGHLmZRdMlOYoQ eM5mZNoGvILg+/HO1vV+5byj48sr6JJzbjGN8SVq9IA2bJ3vjHfhWqWNLgasPb8EVXpj+YGTvhF 6/MIqFG9JYhewYyklri4rqEo3Fx9anPVR7WujXH/fLT8ffXH+A/u1NQpP6RcHaL6Uvb3DBL2vdK TqVXRMeHXnRwJyHtylpk8pvTNXYoOGJxlE4uoVAbdXem1727d5jYXFRlYDjylQrSrRDfJ6oX5Qr OSRdQ0o3kCxDenoj1iOoKcfFDeVfec3Q4tqRKApeYRargtxXN1spG5GSX8eh4APmlK80Wg39+nb P/oS3PF9heMj5bYB95cOQnxo9eztBD2MoIoq7JhJIn4nWod1pIiG9KaDmP280GSe52Wg== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 Status: O On Radxa A5E board, the EMAC0 connect to an external YT8531C PHY, which features a 25MHz crystal, and using PH8 pin as PHY reset. Tested on A5E board with schematic V1.20. 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..4ba01ea6f0db793b08fb0645226126535d91c43b 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 = "radxa,cubie-a5e", "allwinner,sun55i-a527"; aliases { + ethernet0 = &emac0; serial0 = &uart0; }; @@ -54,6 +55,24 @@ &ehci1 { status = "okay"; }; +&emac0 { + phy-mode = "rgmii-id"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_cldo3>; + + allwinner,tx-delay-ps = <300>; + allwinner,rx-delay-ps = <400>; + + status = "okay"; +}; + +&mdio0 { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +}; + &mmc0 { vmmc-supply = <®_cldo3>; cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_DOWN)>; /* PF6 */