Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp119960ybj; Wed, 6 May 2020 13:02:25 -0700 (PDT) X-Google-Smtp-Source: APiQypJ9aOPJHL8rQoVPCYbxsU4XZnF3c7drohiV3Ll+I5rQmmaWo2mF3UZuMYJIofSL8F+hkcZc X-Received: by 2002:a17:906:808:: with SMTP id e8mr8896071ejd.372.1588795345153; Wed, 06 May 2020 13:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588795345; cv=none; d=google.com; s=arc-20160816; b=ymRrHh+CEFgaHnK15AAQq/BAxIut09r9Wycm/upUD+07sB1VvGGb69AsyUrF6K5z0b 2cVtzIGfMmvUZI6xJ24UHPSgTPmjMEr5HwEMuivTvWtbNn1M8gacIZjiFXhJoe/joeaD 09LP0xCcQRXmazcHS/Dzc6uM7jkvawWJw11nKJbF+tsD0lkdu4TeExjARR2DiQsmPqH5 hmoEBpZcFCEv+vqWeMibUD0k5VzqmsjYZZj01OQ1eU4PbLftL+evkzOiwyMzMBpb2fIZ Mvzqb+HBb0nd46Gk4aaxewrr/96b7+p+ByaaZBiyhOj0snDMNN8Zng5zFTtcyxWoYTYx SflQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=CkQcWvSupPtqAC83l9V2HATNhdv6etMnpYNqdDhGzCk=; b=Y5gZqxs0ZJ8moAYHMEM4NC2vYBgJ8sgX5AC6wXGXRrvO05cmiXqFigE+OvH2/f796P N9vsggOAVQA7ktBky3FTNx/ZKKyTh1Kih5jlaNX7BbcLQxKAtFHER+szHJNVEJo99vN0 j5rkQtwvYW7ry78lhYqYtQMcWiZt/ZCXwEpm3wyChA5cNF7+hggo/CqoUzGy3nZHsaAw 888WK/79YKFpnwz/xGO0LLZCIbJnTU7LRlvXd9kCHeMzBhcbTCc5U1mPwM6r8laUOEha 9Otuqw+IkN2hx/vsde3pnk5PMj0QKAUxP32dhLaYos4pAhPOT5qU5Ln9Io5d2y4XQLuh mgeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VcWlc7x0; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si1811997eje.107.2020.05.06.13.02.00; Wed, 06 May 2020 13:02:25 -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=@ti.com header.s=ti-com-17Q1 header.b=VcWlc7x0; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728124AbgEFTIy (ORCPT + 99 others); Wed, 6 May 2020 15:08:54 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:46648 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbgEFTIx (ORCPT ); Wed, 6 May 2020 15:08:53 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 046J8cfg025249; Wed, 6 May 2020 14:08:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588792118; bh=CkQcWvSupPtqAC83l9V2HATNhdv6etMnpYNqdDhGzCk=; h=From:To:CC:Subject:Date; b=VcWlc7x0b58T1r0AO8MO+KLmi2KTUFjnCS6YsRS7SqGJ9CIP3Kp9zfPIoCmRHwS82 4PA2qm1wQA2JjJGW7P+A8fHilcCxrnirlR9YOtKBbvVfms530CF2Rk+66UPS9I9F34 f0TLE2KaJJPkKIn7bEgj8JX6X9QrqeVnAMVR4W4c= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 046J8cTV045838; Wed, 6 May 2020 14:08:38 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 6 May 2020 14:08:37 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 6 May 2020 14:08:37 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 046J8asH116543; Wed, 6 May 2020 14:08:37 -0500 From: Grygorii Strashko To: Tony Lindgren , "David S. Miller" CC: , , , Grygorii Strashko , Oleksij Rempel , Andrew Lunn , Philippe Schenker Subject: [PATCH next] ARM: dts: am437x: fix networking on boards with ksz9031 phy Date: Wed, 6 May 2020 22:08:35 +0300 Message-ID: <20200506190835.31342-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on boards: am437x-gp-evm am437x-sk-evm am437x-idk-evm All above boards have phy-mode = "rgmii" and this is worked before, because KSZ9031 PHY started with default RGMII internal delays configuration (TX off, RX on 1.2 ns) and MAC provided TX delay. After above commit, the KSZ9031 PHY starts handling phy mode properly and disables RX delay, as result networking is become broken. Fix it by switching to phy-mode = "rgmii-rxid" to reflect previous behavior. Cc: Oleksij Rempel Cc: Andrew Lunn Cc: Philippe Schenker Fixes: commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am437x-gp-evm.dts | 2 +- arch/arm/boot/dts/am437x-idk-evm.dts | 2 +- arch/arm/boot/dts/am437x-sk-evm.dts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index 811c8cae315b..d692e3b2812a 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -943,7 +943,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; }; &elm { diff --git a/arch/arm/boot/dts/am437x-idk-evm.dts b/arch/arm/boot/dts/am437x-idk-evm.dts index 9f66f96d09c9..a7495fb364bf 100644 --- a/arch/arm/boot/dts/am437x-idk-evm.dts +++ b/arch/arm/boot/dts/am437x-idk-evm.dts @@ -504,7 +504,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; }; &rtc { diff --git a/arch/arm/boot/dts/am437x-sk-evm.dts b/arch/arm/boot/dts/am437x-sk-evm.dts index 25222497f828..4d5a7ca2e25d 100644 --- a/arch/arm/boot/dts/am437x-sk-evm.dts +++ b/arch/arm/boot/dts/am437x-sk-evm.dts @@ -833,13 +833,13 @@ &cpsw_emac0 { phy-handle = <ðphy0>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; dual_emac_res_vlan = <1>; }; &cpsw_emac1 { phy-handle = <ðphy1>; - phy-mode = "rgmii"; + phy-mode = "rgmii-rxid"; dual_emac_res_vlan = <2>; }; -- 2.17.1