From patchwork Tue Oct 10 15:38:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 13415715 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35836CD8CA6 for ; Tue, 10 Oct 2023 15:39:26 +0000 (UTC) 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-Owner; bh=MQgZGDcV5ykMpF+uBJssZvZehENv6tKdxIjZ1hoahzE=; b=gwLBFB88LkxRD6 9wq7ZFrkJF0nnXSZeife8yNtBRLMtslDsydcWT+LyEYqXZ4pAXkcb49GeyBZ3Tj9wKcoP5Www287z Gnx5c67iTyn9k2WgfNMC0s7DmgBbzMCtDdhKogNlkjJBrqRcO8py2/N1vQMmQoYuQZAL8GP4xZAYP o0NdSrNj+zJie1jAXDQ5XaYdBiwzqlKS2Fj1krVTbCUu9jLjPgZpNm8kCCuGqjJpemNm7dSRfGV/J 0ELtMrWnfdrrM6UiqC3xu+VBYII7gpAtKNCrL34NJgDMDdMabeTtYb/iK3kaoz5M+D+FjNFWOYceb BsbgSiSGDNDs1wHS6ZIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qqEox-00DhPi-2y; Tue, 10 Oct 2023 15:38:55 +0000 Received: from mail-m49197.qiye.163.com ([45.254.49.197]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qqEou-00DhO2-2l for linux-arm-kernel@lists.infradead.org; Tue, 10 Oct 2023 15:38:54 +0000 Received: from Vostro-3710.lan (unknown [58.61.141.228]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 5D8038000B0; Tue, 10 Oct 2023 23:38:21 +0800 (CST) From: Chukun Pan To: Andre Przywara Cc: Samuel Holland , Jernej Skrabec , Chen-Yu Tsai , Rob Herring , Conor Dooley , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Chukun Pan Subject: [PATCH 2/2] arm64: dts: allwinner: h616: update emac properties for Orange Pi Zero 3 Date: Tue, 10 Oct 2023 23:38:12 +0800 Message-Id: <20231010153812.2869633-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231010153812.2869633-1-amadeus@jmu.edu.cn> References: <20231010153812.2869633-1-amadeus@jmu.edu.cn> MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZGUwfVkofTEgYQh5DTk4fH1UTARMWGhIXJBQOD1 lXWRgSC1lBWU5DVU1KVUpPSlVJSUNZV1kWGg8SFR0UWUFZT0tIVUpKS0hKQ1VKS0tVS1kG X-HM-Tid: 0a8b1a3d3885b03akuuu5d8038000b0 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6MiI6SBw*STw8LhASFhkrExpJ OhQaFBVVSlVKTUJNQk5JSEtJSU1PVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWU5D VU1KVUpPSlVJSUNZV1kIAVlBSU5CTzcG X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231010_083853_086283_4EF3342C X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the correct delay value to emac. Also add missing mdio properties for the YT8531 PHY (clock output required). With these changes, Ethernet now looks stable. Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts index 00fe28caac93..02c7836b624a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts @@ -13,10 +13,14 @@ / { }; &emac0 { + allwinner,rx-delay-ps = <1800>; + allwinner,tx-delay-ps = <700>; phy-supply = <®_dldo1>; }; &ext_rgmii_phy { + motorcomm,keep-pll-enabled; + motorcomm,auto-sleep-disabled; motorcomm,clk-out-frequency-hz = <125000000>; };