Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1376211rdb; Sat, 18 Nov 2023 13:54:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjPS5cyeedsSCorbQ6VeMcDg/WZh7NwHyHOgHySl1cINpDVwJPbS3hHYiGyQ9f4jACPPat X-Received: by 2002:a05:6808:3c9b:b0:3ae:3d0:d74a with SMTP id gs27-20020a0568083c9b00b003ae03d0d74amr5828224oib.52.1700344443883; Sat, 18 Nov 2023 13:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700344443; cv=none; d=google.com; s=arc-20160816; b=l54PvsHTVlkNYnp6fLj1KtU8xyRDALZJOOKBDhTYUB3Zrrh4F4p5yxGLpzm6SJlCtf Ee6JTm0bZHMloizzNH95Psf1hSH56J6QmzyGnqTiYSW8G8ohRPT/fvHBslOmudU3SD22 ckvBYLSFC39EuBvTlEDsTFPbAKwmE9vOdCo6JI3czV5Bx4bFP0W6lU0oWxuT8eDFAY0i Opm6hNVgdi7KQ7/cL/Ob6GrK7VETWOoCq4CUkIAy/w1x+/kP6Rn4O6/2VbD38Ik9L3E6 hJ4TqOQmJnop/H6RLxQ8DGAY4qgN3W4g94n6uxO7uHG/GbS/sIbmXqkIEsp2PgPeJS9f juQg== 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 :dkim-signature; bh=Wtt/oFJ6mp4pvc5MxO64v8GI8P+1Sx5CjrqoYf23NVA=; fh=sAOsaEjtrtpjUjGIaN1OZ9rt+mrYfr4GlJqh05wfyRY=; b=0OlnGxcyUqgw0Ur/CDmOeWDYloQbv/Fsq+CMHYHxKMAvJdbZGR+/to6fQbU9ETHOf8 KHS6uNpLhS+BLicz62NDvoubSAPf7kL8CaQgU607r6GH31EiiX5IirKU9VSFQVp7fKqZ tR2OSUteWtSaRbNr+aPmzbaCv8DWZWW4Z908apMn53TZM7VUM0Ax68Jjm4Zge9KGzjZM VFRpo//UhC6HKT69GD5HyylCetQ1DQdm1nsl2IiSxsN9FTbsWwCCxj2YD38+mKAfSuGs u/WvTozb2ZOjXSALgQpTWkuaL9lBPyDd4598q/0IgcetF4Tknnp65Cwy6rh/tDsLdLWk 6aYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cbBFKT7B; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id l4-20020a632504000000b005c200b11ba3si4722191pgl.888.2023.11.18.13.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 13:54:03 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cbBFKT7B; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1B62780942E0; Sat, 18 Nov 2023 13:54:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjKRVxk (ORCPT + 99 others); Sat, 18 Nov 2023 16:53:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjKRVxj (ORCPT ); Sat, 18 Nov 2023 16:53:39 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEFC0EA; Sat, 18 Nov 2023 13:53:35 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-53e70b0a218so4510658a12.2; Sat, 18 Nov 2023 13:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700344414; x=1700949214; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wtt/oFJ6mp4pvc5MxO64v8GI8P+1Sx5CjrqoYf23NVA=; b=cbBFKT7BmXU4GV/bgV/otEe6mlIKW00Xpzq/9Kfvpsbg6GNKTeB6bchq/K/9YDhnHk OL4dN4PULZYtx40aKcOAAvaVXFOgphjqtXxjUiw3vPeUGI9cLndDSAFi5yq3glP8KLge dIfmyZox6mGBRRu7/TvGfn2rDieZNl+RHHWt9Td2ewtFGw6YlVGDPVEmd8fp3AXHZoHM x4iXA0eJxCGcr0j1i3KLaULqL/wr+PAYNFk6mR+mbMUNgonm04Vo3FXExKQIk2srVxxW JxxlIaYEgMWa2o7lRrbU2E0LClgl8iq/hlbDJJuT1eSQ3ceBwviygECZoJiw/6y0WLGx v2sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700344414; x=1700949214; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wtt/oFJ6mp4pvc5MxO64v8GI8P+1Sx5CjrqoYf23NVA=; b=C2YWyeG3nhCqM9QqlTj/3YBc6xvjRVvc0uRFOzDtgFb81MqTEFLDZ61MX6eiEC2TtP QPaW+BrfgT/xi0cDYGuq27deL7agPKikC6rWz0n4Ny+a8VBv8YzVOgiMp741IE9RBqQR e6L5M7tHLRlPM04Tila8cMKwGLLJrjDsZ3hVPMnEattFio8eERUOUuJcHhzZMd+jNNqi +p6zAiEBjfzofhLPvS9OLqj7an3J/Ysn6UkIqEjszNeGbF6uPJoFj6+wCFE8j84Mlr3q F/nq+u4aEH+q1TRID/GjKyzfgr3VNA+GxnwvCJM5haoLCPrq7mvq8zJlTjYnqMQRW9XN IwEw== X-Gm-Message-State: AOJu0Yz5xiWoR3mbqKEDv2vCQsChbyDaXJRfPCKt4byBVMvfQuPXkvvq i/pp3oujiIUu6jQ/J9ZfY81j2IOVnMk= X-Received: by 2002:a17:907:7401:b0:9bf:60f9:9b7c with SMTP id gj1-20020a170907740100b009bf60f99b7cmr1955872ejc.62.1700344413958; Sat, 18 Nov 2023 13:53:33 -0800 (PST) Received: from jernej-laptop.localnet (82-149-12-148.dynamic.telemach.net. [82.149.12.148]) by smtp.gmail.com with ESMTPSA id ca3-20020a170906a3c300b009fc42f37970sm296837ejb.171.2023.11.18.13.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 13:53:33 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chukun Pan 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: Re: [PATCH v2 1/1] arm64: dts: allwinner: h616: update emac for Orange Pi Zero 3 Date: Sat, 18 Nov 2023 22:53:32 +0100 Message-ID: <2303336.ElGaqSPkdT@jernej-laptop> In-Reply-To: <20231029074009.7820-2-amadeus@jmu.edu.cn> References: <20231029074009.7820-1-amadeus@jmu.edu.cn> <20231029074009.7820-2-amadeus@jmu.edu.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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]); Sat, 18 Nov 2023 13:54:01 -0800 (PST) Dne nedelja, 29. oktober 2023 ob 08:40:09 CET je Chukun Pan napisal(a): > 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 Best regards, Jernej > --- > 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>; > }; > >