From patchwork Fri Jul 24 21:42:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 247142 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2824756ilg; Fri, 24 Jul 2020 14:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOVV00610Ua8yCrIpULuJnX7iUGePkiQ/PwbvbZJRmvv5hzZB7wC/jxVnYIWVgWbPk5GsT X-Received: by 2002:a17:906:3842:: with SMTP id w2mr11330698ejc.273.1595627017296; Fri, 24 Jul 2020 14:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595627017; cv=none; d=google.com; s=arc-20160816; b=R9Q/1OnCZoiPSbHnXoydFGPE2xgG1/IfvS22hxs9HgbKmEEvxq7G1hUxHn+e0IkevD ceh+o0isdpB2enC8suohLxLT4bawd8FgnChUZYf5H2jO2p8GP9FCm8xEg9o4vGYSouRe ByF1ep6D378bZx3ToyoypAEI20s7NaJ9WgtRdSgG+6RK9y3SuuvwZPLwSaZicsJnjBU3 pz1kgRr+YLBfj+wsPUSsFd2C+SSxlomhBaWwgljuGwAYsUpUf01AKkulmdJZ+Fj73rJ0 XFWXEN9x2H+fsbs1VP73ecvAkoKUwHHB7d0q/FlEVaw2pfPCHSqjRALrL8jD+bVtdxOj 9ffg== 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=EENDgKjYGdyjuwWFWxbHFsIqJ467mMOcoygJG/xnCoI=; b=ER+TvcoMcLUOPSBNsmZa45YuWesXdPkOpkK9KVruWf2wSk1pS11ARNVCKRX0cwbFIh wOMWQwKRmswm5+wVpC6otyXtcmzZ3B/LATYWWFuI3wwiuaLVFiu8UEmUkU+linmcA8JF zPvNDKTY+tyIDh5YHE3KBDwcO1OMLSglmbaIa5KFbwA4zerxl/bUNGLEa8ZP7L9kTgAv VMkAgQRvnh9WRPQMcSV71tZrenqm5Ul8DmCPw0uMzWNUtC77SlQR0NP2XJw5ciU7/V0V bCKC4LEncauWgiIKOBkMd+xrbk3ZsRHy4dRXb2ByJN0w5+5qTH9vfRJRY0uChxmc5rOJ 6pRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=EYQ2L2LW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 jo13si1303301ejb.198.2020.07.24.14.43.37; Fri, 24 Jul 2020 14:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-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=EYQ2L2LW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-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 S1726977AbgGXVnb (ORCPT + 9 others); Fri, 24 Jul 2020 17:43:31 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37108 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbgGXVn0 (ORCPT ); Fri, 24 Jul 2020 17:43:26 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06OLgpkG088853; Fri, 24 Jul 2020 16:42:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1595626971; bh=EENDgKjYGdyjuwWFWxbHFsIqJ467mMOcoygJG/xnCoI=; h=From:To:CC:Subject:Date; b=EYQ2L2LWfZP6dD8JOenRLBNQPDb/OQs5WlBya1sjvMntH3dHBipDrHlcKPanQfDa+ FWNeBqUZJ7YL9xl7KcY5jepHyEYPcfQV64NMFRIkL5xHX9lfTM1jHgpcNwzr81B61O OTniMLY8o22xvmkug62G2MTu+j/p30mCV4kUDxOU= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06OLgpNn103365 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 24 Jul 2020 16:42:51 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 24 Jul 2020 16:42:51 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) 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; Fri, 24 Jul 2020 16:42:51 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06OLgodS037326; Fri, 24 Jul 2020 16:42:51 -0500 From: Grygorii Strashko To: Murali Karicheri , Santosh Shilimkar , CC: Sekhar Nori , , "David S . Miller" , , , , Grygorii Strashko , Oleksij Rempel , Andrew Lunn , Philippe Schenker Subject: [RESEND PATCH] ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy Date: Sat, 25 Jul 2020 00:42:21 +0300 Message-ID: <20200724214221.28125-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Since commit bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") the networking is broken on keystone-k2g-evm board. The above board have phy-mode = "rgmii-id" and it 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 by default. After above commit, the KSZ9031 PHY starts handling phy mode properly and enables both RX and TX delays, 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: bcf3440c6dd7 ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY") Signed-off-by: Grygorii Strashko --- Fix for one more broken TI board with KSZ9031 PHY. arch/arm/boot/dts/keystone-k2g-evm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts index db640bab8c1d..8b3d64c913d8 100644 --- a/arch/arm/boot/dts/keystone-k2g-evm.dts +++ b/arch/arm/boot/dts/keystone-k2g-evm.dts @@ -402,7 +402,7 @@ &gbe0 { phy-handle = <ðphy0>; - phy-mode = "rgmii-id"; + phy-mode = "rgmii-rxid"; status = "okay"; };