Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1017252ybj; Tue, 5 May 2020 11:29:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKpAEexcqcFR7QPBxZLJyPnNmtDvlnaP+qouq9aNHgmKuKC5uB3YsJqi/5yhIya8Lb1pwtD X-Received: by 2002:a17:906:f295:: with SMTP id gu21mr4150528ejb.83.1588703350271; Tue, 05 May 2020 11:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588703350; cv=none; d=google.com; s=arc-20160816; b=cFPwSzJxcjr0KJ+WpbIiXsXek6QSAFVwdt4Abd8zBnIACnHirVu/52+iE0t3zDUh/g iVlzlFqec16o2gJGf067eS2IOpepso73QKkIj8I2zckZMYU4AsILXfI7vg7dLzTjBi/N UaOrmV1ND9B5xHp1PUFS851f2QEvN2Bb847MlcTBE6YggnbFhi6XWKdgi6e0F2qx0hYP xkO7+WxuGJJZpykwH69Q3t9PAgwJiK48EFo2VgXc8DMHH5ItVzep0LaGBeqy7cd4Ya47 u+uxPXH/hxuRK9zgEni+utjlb2aVZ3AGJcEG4TdeFjoMpIs3Ujk2IhgXFor4H8QqKhcQ GB4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=N8T0PKzyG6BviCMR5+8NSHwmvWxH4GxCu8FwZPUeanU=; b=WHyAe2ujhl91ohk0hulPGPphayZP9YWq0mgJjx2GQ5IyhN47ZJ5ob7n03v4gCk2z8V 9wzv5wgMb7PwUf8BKwys9qDqEpxgPOJbRvgoYhxmkZmalvANounRGeHiqifYpU8Iwfr4 JxABhntow3WpTlOLpZWZ5v5FCtp/wxLyFbq3wwIagxd1QcoBURQQLnNoD/ueSZcvCc/r yVcjRnQSVm/eTRZpSovupKqwjcpVQLBSypJz6QCPdlsDq9XOOSr1PYar9LzURXyKgUum M0PQj5RTUH9ZfCq+n3sUQkT2Tx6ZcPNE9vIpr/KZsV39XxbqAcelvtUE7JnVBLAfWM/o 19gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=yMQ6o19j; 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 j23si1686475eds.468.2020.05.05.11.28.46; Tue, 05 May 2020 11:29:10 -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=yMQ6o19j; 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 S1728881AbgEES1V (ORCPT + 99 others); Tue, 5 May 2020 14:27:21 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35492 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728608AbgEES1V (ORCPT ); Tue, 5 May 2020 14:27:21 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 045IQoXs013790; Tue, 5 May 2020 13:26:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588703210; bh=N8T0PKzyG6BviCMR5+8NSHwmvWxH4GxCu8FwZPUeanU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=yMQ6o19jG3vJoA4khlTPCWSFA8tTsWEpMr+bzvOSwmguu0K4HfDyGlPZsB3rQfoBP sNedvxZwrA0JrgPtAY58tAzdYoUtjWuxjxATtfx9SJzqM0th+q64sSomjCwk5whARi WzHYdS6MEsmwVNFctlcWdtBw113fouYxT+1UyBmE= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 045IQoWW068476 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 5 May 2020 13:26:50 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 5 May 2020 13:26:49 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE109.ent.ti.com (157.170.170.41) 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; Tue, 5 May 2020 13:26:49 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 045IQk96017215; Tue, 5 May 2020 13:26:47 -0500 Subject: Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY To: Oleksij Rempel , Andrew Lunn , Florian Fainelli , Heiner Kallweit CC: David Jander , "David S. Miller" , , , , Philippe Schenker , Russell King References: <20200422072137.8517-1-o.rempel@pengutronix.de> From: Grygorii Strashko Message-ID: <71dea993-b420-e994-ffa8-87350e157cda@ti.com> Date: Tue, 5 May 2020 21:26:46 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200422072137.8517-1-o.rempel@pengutronix.de> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 22/04/2020 10:21, Oleksij Rempel wrote: > Add support for following phy-modes: rgmii, rgmii-id, rgmii-txid, rgmii-rxid. > > This PHY has an internal RX delay of 1.2ns and no delay for TX. > > The pad skew registers allow to set the total TX delay to max 1.38ns and > the total RX delay to max of 2.58ns (configurable 1.38ns + build in > 1.2ns) and a minimal delay of 0ns. > > According to the RGMII v1.3 specification the delay provided by PCB traces > should be between 1.5ns and 2.0ns. The RGMII v2.0 allows to provide this > delay by MAC or PHY. So, we configure this PHY to the best values we can > get by this HW: TX delay to 1.38ns (max supported value) and RX delay to > 1.80ns (best calculated delay) > > The phy-modes can still be fine tuned/overwritten by *-skew-ps > device tree properties described in: > Documentation/devicetree/bindings/net/micrel-ksz90x1.txt > > Signed-off-by: Oleksij Rempel > --- > changes v3: > - change delay on RX line to 1.80ns > - add warning if *-skew-ps properties are used together with not rgmii > mode. > > changes v2: > - change RX_ID value from 0x1a to 0xa. The overflow bit was detected by > FIELD_PREP() build check. > Reported-by: kbuild test robot > > drivers/net/phy/micrel.c | 128 +++++++++++++++++++++++++++++++++++++-- > 1 file changed, 123 insertions(+), 5 deletions(-) > This patch broke networking on at least 5 TI boards: am572x-idk am571x-idk am43xx-hsevm am43xx-gpevm am437x-idk am57xx I can fix. am437x need to investigate. -- Best regards, grygorii