From patchwork Tue Jul 7 15:38:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeniy Didin X-Patchwork-Id: 1324420 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=LpmGDg5Q; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=D8cPGg7d; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B1RSZ4BczzB3tj for ; Wed, 8 Jul 2020 01:39:23 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=5u+dzkVnZq12ljd4rerm2YfLwMf20jYSMhdzWI3q6+4=; b=LpmGDg5QEDZxR7VBoDO+GXZ6mE DyYNCW+D15TEmt8IY9PxWK9j1m7/xUD4z0MZvOWGFkNybv8K9OqoEGGqZchlfTJS7Kbt3GDxjhaFH Ufs1tQax+Ag40ihjAqfoMYkMFtrdBFVaFU9Xg2kRa+1dcpsUpKxqwYE834s8scEiY0PK4ZJXdF8hh hVvVy+ySiCusr+PnOXbdljbXCFSPK/shMog8v2megfcwoV88/r2U8+pAM2+Gcrc/7rpTe2VIWeRq+ rpB56U4I418rkLJ2oc1wrR2PxOjSpefmNXWRhtVrMJ5iw3/6AOOfwI1YvVcx1OSwTzQA575I2+0Hp VRI3rQEA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jspgi-0001Rc-ME; Tue, 07 Jul 2020 15:39:16 +0000 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jspgg-0001R2-JF for linux-snps-arc@lists.infradead.org; Tue, 07 Jul 2020 15:39:15 +0000 Received: from mailhost.synopsys.com (mdc-mailhost2.synopsys.com [10.225.0.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 2C1B8C06F1 for ; Tue, 7 Jul 2020 15:39:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1594136352; bh=emXA/+T0pmzwNTb6aP3sgba45DttNPTBYylzoa4kLio=; h=From:To:Cc:Subject:Date:From; b=D8cPGg7d0eKVGrqlRIfw6mlk1hnfRH3lKGBnOZWFsGY7HFiPhzYXmrHpcYHgdIP/x zcn3ZOJmIceHnkNKKchR1A9PGmZSr0Yp6Wd09xh6WzzGQY16HtR9fzfp9cKMkq0aaH bsPQh47OgBcnLDT2ncKS/hJBuqnyvOYW8g6kUIse8Vc0jXL+V3LBldTBGhm9YRsm2n MiY5aTrc8oJFQsuJpoK1mHu+roI30IwbvAgZtGkRvryRFaBDbLxY1MuVVBqvISIzxi CYZ9mAUYU9EVSHRpksXfxI6cYvH2fKy+hfOZHZJK/C1dctXJOgD/1NnDzCY7ECjrgA NZMR2ppWBBdfA== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id C1153A005D; Tue, 7 Jul 2020 15:39:06 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Evgeniy Didin To: linux-snps-arc@lists.infradead.org Subject: [PATCH] ARC: [plat-hsdk]: Switch ethernet phy-mode to rgmii-id Date: Tue, 7 Jul 2020 18:38:58 +0300 Message-Id: <20200707153858.13280-1-Evgeniy.Didin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_113914_785327_2CA4D1E7 X-CRM114-Status: GOOD ( 10.15 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [149.117.87.133 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Evgeniy Didin , Alexey Brodkin , Eugeniy Paltsev MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org HSDK board has Micrel KSZ9031, recent commit bcf3440c6dd ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") caused a breakdown of Ethernet. Using 'phy-mode = "rgmii"' is not correct because accodring RGMII specification it is necessary to have delay on RX (PHY to MAX) which is not generated in case of "rgmii". Using "rgmii-id" adds necessary delay and solves the issue. Also adding name of PHY placed on HSDK board. Signed-off-by: Evgeniy Didin Cc: Eugeniy Paltsev Cc: Alexey Brodkin Acked-by: Alexey Brodkin --- arch/arc/boot/dts/hsdk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts index 9acbeba832c0..d6427d47e5a1 100644 --- a/arch/arc/boot/dts/hsdk.dts +++ b/arch/arc/boot/dts/hsdk.dts @@ -208,7 +208,7 @@ reg = <0x8000 0x2000>; interrupts = <10>; interrupt-names = "macirq"; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; snps,pbl = <32>; snps,multicast-filter-bins = <256>; clocks = <&gmacclk>; @@ -226,7 +226,7 @@ #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; - phy0: ethernet-phy@0 { + phy0: ethernet-phy@0 { /* Micrel KSZ9031 */ reg = <0>; }; };