From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F183C46467 for ; Mon, 2 Jan 2023 18:35:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233444AbjABSfO (ORCPT ); Mon, 2 Jan 2023 13:35:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbjABSfM (ORCPT ); Mon, 2 Jan 2023 13:35:12 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47322188; Mon, 2 Jan 2023 10:35:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=9ndz5vBaBmqACnJVA/c07kvOtW14mqhh8FDCUNWTZAU=; b=TAwPjFjB1En3Q9ORCDoeuwVfL7 tPtKE92ui/Pvf+8RHE2qt+1dijpdbWn9GMSjpGOwhzfhvRKogLGix+RVa61exiyvsCXTHQDV+6M7K 7J3gPr2aPPytcmRKBnjDnG0YVKhn87inZhQJghxhoarw94279JfomPKUf7d+EyF/8qs0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pCPe3-000xUI-5H; Mon, 02 Jan 2023 19:34:47 +0100 Date: Mon, 2 Jan 2023 19:34:47 +0100 From: Andrew Lunn To: Roger Quadros Cc: MD Danish Anwar , "Andrew F. Davis" , Tero Kristo , Suman Anna , YueHaibing , Vignesh Raghavendra , Krzysztof Kozlowski , Rob Herring , Paolo Abeni , Jakub Kicinski , Eric Dumazet , "David S. Miller" , nm@ti.com, ssantosh@kernel.org, srk@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 1/2] dt-bindings: net: Add ICSSG Ethernet Driver bindings Message-ID: References: <20221223110930.1337536-1-danishanwar@ti.com> <20221223110930.1337536-2-danishanwar@ti.com> <620ce8e6-2b40-1322-364a-0099a6e2af26@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <620ce8e6-2b40-1322-364a-0099a6e2af26@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 02, 2023 at 03:04:19PM +0200, Roger Quadros wrote: > > > On 23/12/2022 16:28, Andrew Lunn wrote: > >> + ethernet-ports { > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + pruss2_emac0: port@0 { > >> + reg = <0>; > >> + phy-handle = <&pruss2_eth0_phy>; > >> + phy-mode = "rgmii-rxid"; > > > > That is unusual. Where are the TX delays coming from? > > >From the below property > > + ti,syscon-rgmii-delay = <&scm_conf 0x4120>; > > The TX delay can be enabled/disabled from within the ICSSG block. > > If this property exists and PHY mode is neither PHY_INTERFACE_MODE_RGMII_ID > nor PHY_INTERFACE_MODE_RGMII_TXID then the internal delay is enabled. > > This logic is in prueth_config_rgmiidelay() function in the introduced driver. What nearly every other MAC driver does is pass the phy-mode to the PHY and lets the PHY add the delays. I would recommend you do that, rather than be special and different. Andrew