Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2108983rdh; Sun, 29 Oct 2023 00:50:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFL/ySp0RlGe5WTXR7w9RqSh3DoHTNIAigIbZW4to+D0Ef8HpWckXy1H26EPUcEMv8qnSww X-Received: by 2002:a05:6808:b11:b0:3ab:88a0:78f8 with SMTP id s17-20020a0568080b1100b003ab88a078f8mr8079199oij.23.1698565805637; Sun, 29 Oct 2023 00:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698565805; cv=none; d=google.com; s=arc-20160816; b=fo47+A5ee82fkCJb3Iz4LJmzeVFLLldLbaE/tgrlj2AwS+lfZipCVTKNMcvlX3R6he VdIyREtaD0LgMeN6ZCXxUpMUpUf0GufRLDJG1lZyh7TM8H/gDFbHPrffbUfmRAoceFpq twia5jnE1/eUgEhirjmA4XU0kT8QfB9ydDSwBeU2/JXCeaMvbFV0TaThEnkHC5Ap+RC/ gaRTmmxHq2N2kLfJTOk8xwdMTtlybj40wVMi99PWsKMXlsx+e2p7jz0/wKmLGIKKqLzN 4to9RpUBYPBqKtMdOJVTCy5ocnmans6rrAnI3C7kQKRagkrK3e8ACmR91NnJpNWEMaME YFpQ== 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=lt/wQDU+I8a8er/3/UslY9YH0n8S0ClRGfHXbMhCRWE=; fh=skHsMKQW61h79FWZ8YiiLVppV09WRTqCGQYJVbwrteU=; b=oH/L/BAxYuK8lTVIWoKSJgjVvnvy5lf8M2AgHHGpyEszzKkcXb2sAlSh7Iuc6MjaDr fl2bkdBCZ/5JPlpusUrW5ar5pxdK2bMuKiCxUIEovTuQQgVSQvo2RP2eLZ+sVDlBUfVZ cRukJfJtCa+CIQ82Z3vbZJ0fQAA5OqhJTjIq8HPwd7g2GBAsvkauDv/iu/kTdkKW8lrj GfHVN0SbBX7FJKibInAn24tEhslQ/g4KpJegtMgVOA2v/DEbn+WF/V+TSxE0wx0SgupG ubdIz5nxYFezfNX2X3P3N4m/toVRD6ckNvvsy++V7buiGtDQtBO7N72vWRvxOF6E19f/ 5iOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=jmu.edu.cn Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id x40-20020a056a0018a800b0069342aef90bsi3399330pfh.3.2023.10.29.00.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 00:50:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 0F36F8051638; Sun, 29 Oct 2023 00:50:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbjJ2Htb (ORCPT + 99 others); Sun, 29 Oct 2023 03:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjJ2Ht2 (ORCPT ); Sun, 29 Oct 2023 03:49:28 -0400 X-Greylist: delayed 531 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 29 Oct 2023 00:49:25 PDT Received: from mail-m17214.xmail.ntesmail.com (mail-m17214.xmail.ntesmail.com [45.195.17.214]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6200BC9; Sun, 29 Oct 2023 00:49:25 -0700 (PDT) Received: from localhost.localdomain (unknown [58.61.140.248]) by mail-m121145.qiye.163.com (Hmail) with ESMTPA id 568F2800086; Sun, 29 Oct 2023 15:40:17 +0800 (CST) From: Chukun Pan To: Jernej Skrabec Cc: Samuel Holland , Andre Przywara , Chen-Yu Tsai , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chukun Pan Subject: [PATCH v2 1/1] arm64: dts: allwinner: h616: update emac for Orange Pi Zero 3 Date: Sun, 29 Oct 2023 15:40:09 +0800 Message-Id: <20231029074009.7820-2-amadeus@jmu.edu.cn> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231029074009.7820-1-amadeus@jmu.edu.cn> References: <20231029074009.7820-1-amadeus@jmu.edu.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkZSUIdVktISktOTBoZQ01MQ1UTARMWGhIXJBQOD1 lXWRgSC1lBWU5DVU1KVUpPS1VJT0NZV1kWGg8SFR0UWUFZT0tIVUpKS0hKQ1VKS0tVS1kG X-HM-Tid: 0a8b7a605d83b03akuuu568f2800086 X-HM-MType: 10 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Ngw6Kio6Fjw8TCkZViEdHAoV NhcwChRVSlVKTUJDTk1OSUpDSUtDVTMWGhIXVRoWGh8eDgg7ERYOVR4fDlUYFUVZV1kSC1lBWU5D VU1KVUpPS1VJT0NZV1kIAVlBSE1DQzcG X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Sun, 29 Oct 2023 00:50:03 -0700 (PDT) The current emac setting is not suitable for Orange Pi Zero 3, move it back to Orange Pi Zero 2 DT. Also update phy mode and delay values for emac on Orange Pi Zero 3. With these changes, Ethernet now looks stable. 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 | 3 --- arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts | 3 +++ arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 2 ++ 3 files changed, 5 insertions(+), 3 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..fc7315b94406 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero.dtsi @@ -68,10 +68,7 @@ &ehci1 { &emac0 { pinctrl-names = "default"; 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..b5d713926a34 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,9 @@ / { }; &emac0 { + allwinner,rx-delay-ps = <3100>; + allwinner,tx-delay-ps = <700>; + phy-mode = "rgmii"; phy-supply = <®_dcdce>; }; 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..b3b1b8692125 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts @@ -13,6 +13,8 @@ / { }; &emac0 { + allwinner,tx-delay-ps = <700>; + phy-mode = "rgmii-rxid"; phy-supply = <®_dldo1>; }; -- 2.25.1