From patchwork Sun Oct 29 07:40:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chukun Pan X-Patchwork-Id: 159342 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp1569375vqb; Sun, 29 Oct 2023 00:50:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMr+j7shQWQBtuGb0Lrv4c5L67J7tNR9470SXhOxuhC4FEzlbneB24dMMcv99CKKnYSzeW X-Received: by 2002:a05:6870:54:b0:1ef:c894:41d1 with SMTP id 20-20020a056870005400b001efc89441d1mr1290356oaz.6.1698565816084; Sun, 29 Oct 2023 00:50:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698565816; cv=none; d=google.com; s=arc-20160816; b=gop6PL2ianynDmJ9qJ4ZIb7uQJ1ELn2c5BtiqbnRUpckgJ7RedAiDxZKIMzCf4DJqM V8Sztzjk952MBWd9j4t3Ijz+G5BNpJtklhectu8lJwBYwGguqQW0NScAs7g7trJfgwhf TCis5F4R5FAQUBtyurBXZVZUJs8qwKX7A3TjBAPg2qK1N5tWI7rcZbblnuZs2ooEdYeN Fy+QaOu6t00F2BdPZSk2v5dYFnm8JlVftMO+8uE/zUp3Si6AoYpvMI9qe6abnlpgcMu4 cX+Tnp/zWE084DFi8PCF5A8VaTqoXjqCoQXUbkMY/hmESvRa1tJf2rAMD4BKGu75DQ5q DiEQ== 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 Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id z11-20020a6552cb000000b0059bb496956csi3390711pgp.202.2023.10.29.00.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 00:50:16 -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 B313C8051639; Sun, 29 Oct 2023 00:50:13 -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 S229981AbjJ2Htb (ORCPT + 30 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 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:13 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781075332165217981 X-GMAIL-MSGID: 1781075349140314007 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 Reviewed-by: Jernej Skrabec --- 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>; };