From patchwork Wed Jul 15 08:54:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 235572 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp428137ilg; Wed, 15 Jul 2020 01:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAvvv2FJENVwbrKN+XMmeaQ1rvZhCFhNHdcqY7nlGPXaVDoGWEtBb3/WxG91tze2kZWTNo X-Received: by 2002:a17:906:1403:: with SMTP id p3mr8086246ejc.106.1594803311030; Wed, 15 Jul 2020 01:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594803311; cv=none; d=google.com; s=arc-20160816; b=DyMiUxFRkDo24e4V8UUGYLz3mTApS7gKNqZyohHV4zGKI6/yRkqoK4XhS+kIqtYT+Y I/L+4kOKXfGgEFTkhAzsmdsIXQv3ZTNllMcXgLuAMY1fmiq9l6XHQFbkqOvI6bUYUEEM 3JeQspCtZlxD/kye04upXyQJHiLNZ3qWeN/ZmgLxKn0SvUD69HZFmEmFQcaWZml6eAq0 uS/EsvWQj76EZ6JB1XiY8lZeYx5rj8TqcZACMRF+VtSXquKFCToFIR6GVZgKkierZDNi GaGRaheUM76bY9qHzZFzN4oyWOxrULO1AtrUELNznxBEgbtn7JDdNmmI3vh1+F9EtE3E 1j/Q== 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=xiIgJvj1o3eU/gu1Mxo9aTC2c+K++W7iHfaAhh99kb0fSKdDPtHDly9m6Ah90BaooM ADmPPyBvll51qLlEJ0775gIYU+tYqIiGqiOIJYP1od+gdqBwwg4AocfTPtC3OZQIWVZV O7K5UJWRkZVn1WzPLWy+TVoDb2KVr02XBxExC4r7vMRMICGfauXdjJ77OWesYXv2Sj63 k2V1k3EpEANb+vYwCpbnp2n3c1/tGzRlCWTZT53/P7omhfl2x91duUkryJruMTz8fSOw M45NMTw2P3i2xl3V0bATD3Ue/trS9E1sN9XQ1xyfloXawR+HMc0q51eOH2d7EAeDDVLp grvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="w/6ahaWO"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ga5si1008623ejb.567.2020.07.15.01.55.10; Wed, 15 Jul 2020 01:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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="w/6ahaWO"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1730097AbgGOIzK (ORCPT + 6 others); Wed, 15 Jul 2020 04:55:10 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:39694 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728145AbgGOIzK (ORCPT ); Wed, 15 Jul 2020 04:55:10 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06F8shml045489; Wed, 15 Jul 2020 03:54:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594803283; bh=EENDgKjYGdyjuwWFWxbHFsIqJ467mMOcoygJG/xnCoI=; h=From:To:CC:Subject:Date; b=w/6ahaWOLc3Al2remRtic1KNxtjy8NyQHZwA6/7kv8bGX42MPZ//WcUfZKVTO/+VC bXBodufclEFzdmdMe5lObjVCP376kpk/ROB70TnAxgTV5V5W3Mv/TNT9e11osRrOT4 laKyEB6zi1501izD9WHYg3VuQsCHr5tqcRDOpn/M= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06F8shsb016045; Wed, 15 Jul 2020 03:54:43 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 15 Jul 2020 03:54:42 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) 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, 15 Jul 2020 03:54:42 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 06F8sf8x088537; Wed, 15 Jul 2020 03:54:42 -0500 From: Grygorii Strashko To: Murali Karicheri , "David S. Miller" , Sekhar Nori , Santosh Shilimkar CC: , , , Jakub Kicinski , Rob Herring , , Grygorii Strashko , Oleksij Rempel , Andrew Lunn , Philippe Schenker Subject: [PATCH] ARM: dts: keystone-k2g-evm: fix rgmii phy-mode for ksz9031 phy Date: Wed, 15 Jul 2020 11:54:27 +0300 Message-ID: <20200715085427.8713-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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"; };