Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp476247pxa; Wed, 19 Aug 2020 06:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfexgoYMTpule1mqnw82pTsxG9Asy6cSJsONSzxq/wVidCS4XX+NWKJEiXJfjzk9e83zMo X-Received: by 2002:a17:906:9512:: with SMTP id u18mr24627870ejx.207.1597844860026; Wed, 19 Aug 2020 06:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597844860; cv=none; d=google.com; s=arc-20160816; b=KpWO9L3N7sxCLZ0CC3vg9fJye8mw4ikY3ciHD9SKMof0Gfjq0wwZ5R8fWrun6LPANi HYClH2jLoeRNzej/VR7HoIyDAbrPsvXU7MOb3VDERGV4M0yv3sWOxRWEU/4FDIOV6O9s ZpTNukOLnqMjLu4QNrQxucatvA7xa0AV5XEQb9R+uDmwTU5MPsdr4SR3+vOjQdNHtQ47 v+tyMgMCRxp1iVf4FWUZHoeyAZMJJGt8ajtLQoudIPvKq84CCTyj4oAXPBECHhnTr+XY 5puY9HqAYf2a3cHlKgZ7snpdWqh3dUiLRPVnR/FCQ+E5t5yIOzF2BKONeAsV/8fZ7M2h wfUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=nqVtQ8aa9t75w8VHM5sJWhfanInFX9gTBvrUcxUvSU0=; b=y3Ukue2VAkfliQEFGn+grV+mtzgKB64RDbIN8nOxxmMfGCNPgDyV8gsPSNIs/IwTWg wZbOtLe9uPt/Ub8PmV2OadsEdT/gLENKn2VJA2k2VFsb69mty9SUdje7wJWQX5Sl/qDQ L+Jw3uXSFGELn9shyQI4V9kHKxZRNOW2VX4Sg18GCFpq/rw1i+wY+hZJ7D+8oLpUuMVZ xNAOPqucINNemrwXdMf+Nmu0FfdLVKHHI6y7nHl46iI4+2yOkEnuczaOngCq9iEZJpl1 Qg+TaLYFxbi0QU4xMQtej+NzsaJ13dZLsddhExNn/g816/FSxW/PdO/Nt+0sZmgE5dT1 xDZg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc16si14834185ejb.746.2020.08.19.06.47.16; Wed, 19 Aug 2020 06:47:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728624AbgHSNpj (ORCPT + 99 others); Wed, 19 Aug 2020 09:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728511AbgHSNoV (ORCPT ); Wed, 19 Aug 2020 09:44:21 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB677C061350 for ; Wed, 19 Aug 2020 06:44:00 -0700 (PDT) Received: from ramsan ([84.195.186.194]) by xavier.telenet-ops.be with bizsmtp id HRjl2300G4C55Sk01RjlxW; Wed, 19 Aug 2020 15:43:56 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1k8ONV-0003Dn-Cb; Wed, 19 Aug 2020 15:43:45 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1k8ONV-0007FT-Ai; Wed, 19 Aug 2020 15:43:45 +0200 From: Geert Uytterhoeven To: "David S . Miller" , Jakub Kicinski , Rob Herring , Sergei Shtylyov Cc: Andrew Lunn , Oleksij Rempel , Philippe Schenker , Florian Fainelli , Heiner Kallweit , Dan Murphy , Kazuya Mizuguchi , Wolfram Sang , Magnus Damm , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 1/7] dt-bindings: net: ethernet-controller: Add internal delay properties Date: Wed, 19 Aug 2020 15:43:38 +0200 Message-Id: <20200819134344.27813-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200819134344.27813-1-geert+renesas@glider.be> References: <20200819134344.27813-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Internal Receive and Transmit Clock Delays are a common setting for RGMII capable devices. While these delays are typically applied by the PHY, some MACs support configuring internal clock delay settings, too. Hence add standardized properties to configure this. This is the MAC counterpart of commit 9150069bf5fc0e86 ("dt-bindings: net: Add tx and rx internal delays"), which applies to the PHY. Signed-off-by: Geert Uytterhoeven Reviewed-by: Rob Herring --- v3: - Add Reviewed-by, v2: - New. --- .../bindings/net/ethernet-controller.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 1c4474036d46a9dc..e9bb386066540676 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -119,6 +119,13 @@ properties: and is useful for determining certain configuration settings such as flow control thresholds. + rx-internal-delay-ps: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + RGMII Receive Clock Delay defined in pico seconds. + This is used for controllers that have configurable RX internal delays. + If this property is present then the MAC applies the RX delay. + sfp: $ref: /schemas/types.yaml#definitions/phandle description: @@ -130,6 +137,13 @@ properties: The size of the controller\'s transmit fifo in bytes. This is used for components that can have configurable fifo sizes. + tx-internal-delay-ps: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + RGMII Transmit Clock Delay defined in pico seconds. + This is used for controllers that have configurable TX internal delays. + If this property is present then the MAC applies the TX delay. + managed: description: Specifies the PHY management type. If auto is set and fixed-link -- 2.17.1