Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1446816pxu; Sat, 24 Oct 2020 10:57:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwQtAK9WugYFpncvjjK7eP3SdkxZd1A/rQIEywz89GwoJrAHZJoltjsEyRjsfNtnlq6lvx X-Received: by 2002:a17:906:3a49:: with SMTP id a9mr8042849ejf.95.1603562273220; Sat, 24 Oct 2020 10:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603562273; cv=none; d=google.com; s=arc-20160816; b=MVQ6rmvssprTPER1WwrBiARMLPg1qDpxjHpUsqA21lG9CbxH3/CTivpJL79fc4BNni Ibb3fC52UD5ulpi2yPlaVFMnlVsDOrBsptIRg6RTRx4fTm4/O2GTZVXh4CPvXHKJtC1D ELinUOnSDZl82AsKzY/Ly02IPCS4BhapapQ1b/kQCfRFOwOsr4v7WAHjuexiIiypqhIj aqVlsCaAIIwVrHoqRxdxIDZHKRxLTgNXNWivcVDo4dgqs8aRwSS/BuNWVuNkh9SMpGmd /qaJ2bZ9AzYnWUpA6pixTN9pHxAt8jD3k9fEMrZ+0crHFrL1wO3dr5WVKZi/5MYCH52d nzKg== 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=nt3UO62V4HdAV2Lu0bDYhYcKgGmybJlTMrx43GyXY+g=; b=gbSv7oSkGyA++EQgZCgLmh1YZCVI64y0JDAgt+A/o+aKZT8R3sdjKOKjIb1X9Z283b zGubElDDELNYEzFkyt9JLAlFkfoamH4UFd8y6na4E5+mcfgR14pwsiMFcr/K9dcCXIzD 1xQVF/FqnpP48h9LrR3ihtZrfqn6IA7IlxLSaofQkYKtGiPtav1JyszUmqAYAg4BQuVb eE5qmD7+46gaMEm4JOrTXmvzz4ULezlrvZkwT5KJhpHzVj4wS5TIWNcr32C04SpkrF2b 5r5Q6twZExMgHpTLA1tKo9Lz45ZcoIqM52cUUH7syqUSuX9LJ+WSFla5EbqZFn2xmzLz 4fgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r2rAd+2d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si3427176eds.217.2020.10.24.10.57.31; Sat, 24 Oct 2020 10:57:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=r2rAd+2d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762258AbgJXQ0T (ORCPT + 99 others); Sat, 24 Oct 2020 12:26:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:46136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760989AbgJXQ0L (ORCPT ); Sat, 24 Oct 2020 12:26:11 -0400 Received: from wens.tw (mirror2.csie.ntu.edu.tw [140.112.30.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9820222BA; Sat, 24 Oct 2020 16:26:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603556770; bh=b33mSnzA5/E4PKY2LtTydWNfdZgZQ2kOjj46gwVlpUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r2rAd+2dgtHFmRk95dg4p1pCHnBfEHPb5ZFOLnaGqtzdAGEj2PKcpqcdqPETQdOfG aeCiEIoEfuPEFBksfdfCA4oTUxG6BhRgSIpIdvQpJcuN4LLIsA6+yargN1AZKC1NKz 3QbChcHh+EVpbXDKkSvtY79bqlC+KO6AHrpPVLko= Received: by wens.tw (Postfix, from userid 1000) id E10BD60223; Sun, 25 Oct 2020 00:25:46 +0800 (CST) From: Chen-Yu Tsai To: Maxime Ripard , Jernej Skrabec Cc: linux-sunxi@googlegroups.com, Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/10] ARM: dts: sun8i: a83t: Enable both RGMII RX/TX delay on Ethernet PHY Date: Sun, 25 Oct 2020 00:25:11 +0800 Message-Id: <20201024162515.30032-6-wens@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201024162515.30032-1-wens@kernel.org> References: <20201024162515.30032-1-wens@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The Ethernet PHY on the Bananapi M3 and Cubietruck Plus have the RX and TX delays enabled on the PHY, using pull-ups on the RXDLY and TXDLY pins. Fix the phy-mode description to correct reflect this so that the implementation doesn't reconfigure the delays incorrectly. This happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config"). Fixes: 039359948a4b ("ARM: dts: sun8i: a83t: Enable Ethernet on two boards") Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 2 +- arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts index 9d34eabba121..431f70234d36 100644 --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts @@ -131,7 +131,7 @@ &emac { pinctrl-0 = <&emac_rgmii_pins>; phy-supply = <®_sw>; phy-handle = <&rgmii_phy>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; allwinner,rx-delay-ps = <700>; allwinner,tx-delay-ps = <700>; status = "okay"; diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts index d9be511f054f..d8326a5c681d 100644 --- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts +++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts @@ -183,7 +183,7 @@ &emac { pinctrl-0 = <&emac_rgmii_pins>; phy-supply = <®_dldo4>; phy-handle = <&rgmii_phy>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; status = "okay"; }; -- 2.28.0