From patchwork Tue Oct 10 15:38:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 150845 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp299817vqb; Tue, 10 Oct 2023 08:49:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiXTFITv2v+kGUhMQ1Bxxw2i6flABP7PPd6HbngD5KO+idXGp0bWXUUrhn1sdueLAqYjsc X-Received: by 2002:a17:902:f814:b0:1b3:d4ed:8306 with SMTP id ix20-20020a170902f81400b001b3d4ed8306mr15305149plb.19.1696952950912; Tue, 10 Oct 2023 08:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696952950; cv=none; d=google.com; s=arc-20160816; b=VysMQ+lOnZdJF/PaTADrHJfHq4KMgquv+COixS4PS0uB4xJyfwnS4G4Bcu5lHRonIc YOG8KYypcnRuUnsUUzaPttrggzzvdFnHti4x4Ry94wN6RLzBQBolZFcGSNrcm6XcdPLp hPBE7XKApEC50v0KzpyudvuwGeupE69wHBCP5qbRQu/J6AnvvzsvaZX+g94nLtb7l+Wu dBZ6QSt/YYgQhWU6nZ5rVtqAjo22J9C6uhkpwf4qArp6uNj1xQiZL5sQwL8eGaMNIzgk J2QTQxff4KVxDdk2CayX2tK8eXF9Bh7VeCPvserLKI+5NnXxYRq37sTrHUTAMR8EkcsR HwNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=17FLa4XMXighQ1OdS5uL4ZnJ2qlRTxahXYur6hxBFHg=; fh=VFDI8ygGUq/8xQt3raLZGviK3Q72QwS1T7ESASdcKuQ=; b=VXFWLDF9bIY2KcKVWd/DLeD8NF4s2YkpCtrUoxwqgXAZr4T2IFJGCjlfOq1RXDYbbj 5emTeyQjRHyrckE6lthuE5s65X2GECQ1PsTBRJ/xrNwlarFaO9koe67e6TwYP2n91hUF RPxWLnAWkkSy4gYepOiCi6qtyjGcl6kYFA7QXjAKFxvKBwxI2O+2LvzBADkCO+SIa06D eT6+BckXHAPUoh/vIY2eQ+KWeBxtcVYRPMXXM0k0aWnBfHl8NLv7j2cUgwgN+ukGMBJ7 xTQA7O+DK39yQMKPe9RXRshEQ0IBsZAWFq6iecx9Op1T6hvx4uOtbwHfWuamqHIUsi/h 7SMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n15-20020a170902d2cf00b001c62cfff799si1535235plc.176.2023.10.10.08.49.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 08:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2146080755F8; Tue, 10 Oct 2023 08:49:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232601AbjJJPss (ORCPT + 20 others); Tue, 10 Oct 2023 11:48:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232344AbjJJPsr (ORCPT ); Tue, 10 Oct 2023 11:48:47 -0400 Received: from mail-m49198.qiye.163.com (mail-m49198.qiye.163.com [45.254.49.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF56797; Tue, 10 Oct 2023 08:48:44 -0700 (PDT) Received: from Vostro-3710.lan (unknown [58.61.141.228]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 5E3D38000AE; Tue, 10 Oct 2023 23:38:20 +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 1/2] arm64: dts: allwinner: h616: move emac delay back to Orange Pi Zero 2 DT Date: Tue, 10 Oct 2023 23:38:11 +0800 Message-Id: <20231010153812.2869633-1-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaTBlIVkgZHUtMTUgYHR5KGlUTARMWGhIXJBQOD1 lXWRgSC1lBWU5DVU1KVUpPSlVJSUNZV1kWGg8SFR0UWUFZT0tIVUpKS0hKQ1VKS0tVS1kG X-HM-Tid: 0a8b1a3d34a8b03akuuu5e3d38000ae X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NhQ6Tio4Azw*SRAJPCJCEz0B TRkKFAtVSlVKTUJNQk5JSEtKSEpDVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWU5D VU1KVUpPSlVJSUNZV1kIAVlBSUNDSzcG X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 08:49:06 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779384137551265045 X-GMAIL-MSGID: 1779384137551265045 The current emac delay value is not suitable for Orange Pi Zero 3, move it back to Orange Pi Zero 2 DT. Fixes: 322bf103204b ("arm64: dts: allwinner: h616: Split Orange Pi Zero 2 DT") Signed-off-by: Chukun Pan --- arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi | 2 -- arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi index 15290e6892fc..02a4776c9f2b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi @@ -70,8 +70,6 @@ &emac0 { pinctrl-0 = <&ext_rgmii_pins>; phy-mode = "rgmii"; phy-handle = <&ext_rgmii_phy>; - allwinner,rx-delay-ps = <3100>; - allwinner,tx-delay-ps = <700>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts index d83852e72f06..84daa309893b 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts @@ -13,6 +13,8 @@ / { }; &emac0 { + allwinner,rx-delay-ps = <3100>; + allwinner,tx-delay-ps = <700>; phy-supply = <®_dcdce>; }; 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: 150844 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp299805vqb; Tue, 10 Oct 2023 08:49:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEG+aqVgLFe//TaPOPfRSIVLfEBZorQm3vLScAgyuXiEthh0j/bQLqCftffo36T7aS6qBUS X-Received: by 2002:a54:408c:0:b0:3a7:4b9a:43c2 with SMTP id i12-20020a54408c000000b003a74b9a43c2mr20359798oii.13.1696952949930; Tue, 10 Oct 2023 08:49:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696952949; cv=none; d=google.com; s=arc-20160816; b=tH98qbaW5V/ew4fV/9qrupmsQ6EH1/MIaghbJV6Fgk750ZIvmzwQyD3oUPgP7a+OI4 1UvvG+Mc364gPi7gw//VpdZLKODuTe0/INY+IeQCZXlC7n0GFfuF2noqEWBLcpCcTl4b yVGpeKjg8C5jRETonmF7Q+Tf6EgyGhVDn6Sgfsdy/f86Yyi9DgoYj70yrNP4UebBXqXG 5tlarh/wMOcwsb/XLUewJKB+YBUQixEOf4AVmelIf7b9P/gB8fnfI0Egj2g9Vk9znFXT DPaEink/w6JGoxnR+NQJlFZuPwygBsKfvtcLrq7eUPuI/5IrYfI3pyc7N6/xKg2GWa0K sA+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=o3kI1eezsAFgS/F4dxGCc89YjmySiezYHAVsF+bRYBs=; fh=VFDI8ygGUq/8xQt3raLZGviK3Q72QwS1T7ESASdcKuQ=; b=AyiGs+OOqMe/STHc2YyqyPoZUIqzat90AofG3HY4/gP/LNipku2fcUIl21iiidNxVW g1NTgenmV0sdCT52EZPR9cwjI5NcGHZWqUZXB6b00t9lIEh7gKQzojlT9LEhMNJQemt3 mGnHhlqPtYW1S5DJg6ZMFySELRSKB/yy6FTwIS58fev0lHqsHhgTIHDzPyq8LKsEU1Fz QjiM4kXjPMAVMBk2qoCs1R0ZCPnTTkOnNSZaFqsuuET1ijelMYQhU2AVIzNo9HZO83NM GfgPR+Yoih/kE2Am7tmtmXicYS+DB+1gpKslc0RxoKmhOLWsekt0Nu8rSWbzRDNk7Rfp /9aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o15-20020a656a4f000000b00578a28df3e2si14191376pgu.816.2023.10.10.08.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 08:49:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5D7198276C19; Tue, 10 Oct 2023 08:49:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232226AbjJJPsr (ORCPT + 20 others); Tue, 10 Oct 2023 11:48:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231565AbjJJPsq (ORCPT ); Tue, 10 Oct 2023 11:48:46 -0400 X-Greylist: delayed 554 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 10 Oct 2023 08:48:42 PDT Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D91F93; Tue, 10 Oct 2023 08:48:42 -0700 (PDT) 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-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 08:49:03 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779384136454105540 X-GMAIL-MSGID: 1779384136454105540 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>; };