Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10941442rwl; Mon, 2 Jan 2023 10:43:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4MdKk7ZKFpUUa+PnJtYUmTtNfNCDVMl7ADd3LMnsr6qUG7wkDIGs0oe/vrGHqMhXa8gIJ X-Received: by 2002:a05:6a20:6da0:b0:ad:d633:3235 with SMTP id gl32-20020a056a206da000b000add6333235mr47939214pzb.19.1672684997050; Mon, 02 Jan 2023 10:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672684997; cv=none; d=google.com; s=arc-20160816; b=gZM1XBMKHB7BQ5LIdEpbLvIs0CRb4RVCOCqasiW+y+nBAcAiRiX1OWfil8karzUVQY OUx1+MUjoGW1eZPlF7j6dIcevKYx75ZVK3HyMOapXzQuASoJY27qLTk+ZVWfvx/twlJD SdKRV5qIrlwdPBlY/9JsGw1d56TVNAWwGvsSMpDdoHUgCPdyR1Ovc2kuv60ectbc2jvF ZsoWTrS5SmTbX30C0vz1tq7uJAGtJqsKDTXwqxT2xAihRLyFiVgnbVBWEi3y1aaWQyTr YNdktCvENSSSC1BjNMynUO1Gfn9v4EJYiGqMOe0siO+mXoH14GB+3dttwiyLMUnNRNdK e+dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9ndz5vBaBmqACnJVA/c07kvOtW14mqhh8FDCUNWTZAU=; b=nLFKKCCotasnK098nzY2BVYpaAiVHXyxKMHDzlXl3KGWmd0clJRenQ54Bmaf7c5+Vv ImiAdUMEbenaY5FUmeT0pGZWZwTh2dp26ybpQ0y/P+3Vf2D3bQKP/x+P9i0U2q/TGoCn O7xtGxWAYQk9lDWKSWLm7miEK722U2xXB4CxQPvg+7YY1EezVKyULp/r26WovSLX8wVF xlJW3F8h/cHuJo74mVTFfO/+vQfi1no3aMzjdM1tjkTALpUwRaBDtwsBCaGxfx3a0UOR 3aLI27xyMInwseS7v2EvbyafWffbVps/lsuCYTNGGeLZkngnzZJgONeafnq7nEEGq3cH FVpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TAwPjFjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 1-20020a630001000000b004a252bc5d89si4603200pga.115.2023.01.02.10.43.09; Mon, 02 Jan 2023 10:43:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TAwPjFjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233281AbjABSfN (ORCPT + 61 others); Mon, 2 Jan 2023 13:35:13 -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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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