Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp439178pxk; Thu, 17 Sep 2020 07:09:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxveUd2zhJTC/jlbKDrFMhTCNQrIoLnYn5EApWpwtnSz3osSCjrkF47lMB8xCLza7auBXu6 X-Received: by 2002:a05:6402:1805:: with SMTP id g5mr32077680edy.135.1600351772057; Thu, 17 Sep 2020 07:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600351772; cv=none; d=google.com; s=arc-20160816; b=NVASmgeT2x/RpnLLZRbKwCaS+M4yd2ssmRt8hSUvqGDqSl4wSWOwZ+gb27UP3AbWKU 9oZdeKCixg2Fj121CS0iuClE5sO7qyYj8gcl/bvoXpvL94Eoht4ms39FvR2T//vlFGQv Ljk280pfvYonUjx0woAs7hQghvWkKFOjuyusW9dDOL4Qc7+5RyK1GiwMrOoZ9y1cLuzJ 5+Mkb3cZ5xYQ1/X76tkf3BlHlnng0KD11KvGKuoGm3sr8uoSQU3pbjH7yFCVmZZR1aZi eQxXYBQ3o/atR1kLMIvogUeMdg8y0p0DmB73le5KnDyP5UBsBcQiehcY8MoGn17/wiAq sahA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=edjTrSVd7dNxk4nNjfZCkP36eMIWMoVEqHct4KwRWYE=; b=Cmmq8bIYmnCZBw173qA/aU764oPxCmLVykynO6iextdBo2S3ypXEFrmpuasWiSVgce NoU/CSmJP4PPcVl15MDqe371316Y1uqnBBKjMV2DdrnwENhIyTnW2Mka8s6Wyr+hu5HY XirBKR3bn6pmk7qDZK6PzEI045DPJYfnPYIQROnmFV6VFga451NmSnYsRyGicHedVghV F/1I0cmObHD/+XdRSpLz7JhtWe2dzT80E7Ij/fmH9kwedyDFSCDtpSlWtP04L5BqDb6A aOj82t64IAQXidxDx66tUGeUyj4roq780qNJRMsM2o5ZU2DMV/KSRQrwpE/Snr7+NiR/ og8A== 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 j12si8346942ejk.729.2020.09.17.07.09.06; Thu, 17 Sep 2020 07:09:32 -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 S1727293AbgIQOF4 (ORCPT + 99 others); Thu, 17 Sep 2020 10:05:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727205AbgIQN5x (ORCPT ); Thu, 17 Sep 2020 09:57:53 -0400 Received: from michel.telenet-ops.be (michel.telenet-ops.be [IPv6:2a02:1800:110:4::f00:18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5BB0C06121E for ; Thu, 17 Sep 2020 06:57:26 -0700 (PDT) Received: from ramsan ([84.195.186.194]) by michel.telenet-ops.be with bizsmtp id V1xD230034C55Sk061xDYE; Thu, 17 Sep 2020 15:57:22 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1kIuPQ-0001Ka-Vy; Thu, 17 Sep 2020 15:57:12 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1kIuPQ-0003HV-Ud; Thu, 17 Sep 2020 15:57:12 +0200 From: Geert Uytterhoeven To: "David S . Miller" , Jakub Kicinski Cc: Rob Herring , Sergei Shtylyov , Florian Fainelli , Andrew Lunn , Oleksij Rempel , Philippe Schenker , 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 net-next v4 1/5] dt-bindings: net: ethernet-controller: Add internal delay properties Date: Thu, 17 Sep 2020 15:57:03 +0200 Message-Id: <20200917135707.12563-2-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200917135707.12563-1-geert+renesas@glider.be> References: <20200917135707.12563-1-geert+renesas@glider.be> 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 Reviewed-by: Florian Fainelli --- v4: - Add Reviewed-by, 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