Message ID | 20231010153812.2869633-2-amadeus@jmu.edu.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;rua109.linux@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <amadeus@jmu.edu.cn> To: Andre Przywara <andre.przywara@arm.com> Cc: Samuel Holland <samuel@sholland.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Chukun Pan <amadeus@jmu.edu.cn> 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 Content-Transfer-Encoding: 8bit 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: <linux-kernel.vger.kernel.org> 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 |
Series |
[1/2] arm64: dts: allwinner: h616: move emac delay back to Orange Pi Zero 2 DT
|
|
Commit Message
Chukun Pan
Oct. 10, 2023, 3:38 p.m. UTC
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 <amadeus@jmu.edu.cn>
---
arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts | 4 ++++
1 file changed, 4 insertions(+)
Comments
Hi! Dne torek, 10. oktober 2023 ob 17:38:12 CEST je Chukun Pan napisal(a): > 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. This is also a fix, so it would also deserve Fixes tag. In fact, please merge previous and this patch into one. After all, you are fixing only one thing - ethernet on OrangePi Zero 3 board. Can you also explain how did you figure out that additional PHY properties are needed? At first glance, based on description of motorcomm,keep-pll-enabled, it's not immediately clear why it should be needed. Same goes for second property. 1800 ps delay basically means that rgmii is not correct type and rgmii-rxid should be used instead. Indeed, schematic confirms that's the case. With that, allwinner,rx-delay-ps can be 0 and thus ommited from DT file. Since there is many differences, I suggest that you remove whole emac0 node from common DTSI file and put specific ones to each board. It will be less confusing that way. Best regards, Jernej > > Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> > --- > 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>; > }; > >
> Can you also explain how did you figure out that additional PHY properties > are needed? At first glance, based on description of motorcomm,keep-pll-enabled, > it's not immediately clear why it should be needed. Same goes for second > property. This is based on a search for 'motorcomm,clk-out-frequency-hz = <125000000>' in the kernel. Refer to device tree of other devices with the same properties. After a simple short test, it seems that it is unnecessary. I will delete these two properties in patch v2. > 1800 ps delay basically means that rgmii is not correct type and rgmii-rxid > should be used instead. Indeed, schematic confirms that's the case. With that, > allwinner,rx-delay-ps can be 0 and thus ommited from DT file. Thanks, rgmii-rxid works for me. Will be corrected in patch v2. Thanks, Chukun
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>; };