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 06909C43217 for ; Fri, 18 Mar 2022 08:56:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234034AbiCRI5O (ORCPT ); Fri, 18 Mar 2022 04:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233975AbiCRI5N (ORCPT ); Fri, 18 Mar 2022 04:57:13 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF721F519C; Fri, 18 Mar 2022 01:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1647593755; x=1679129755; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vvkuDnq+ZxtZD+FoxpOTvqLp+VMIHz7k4FAK2MSc3jo=; b=T03UBVKPi8ALDtLCPdELxsM+cO2VkQpLdoM1TUsAOCnePfU9zqOIO2oP x2m7gBklzzYq/OxBrNbAph+ZjYolizUu/Flcx2iYnvoq0CNW6NpYv+CvM i++y0S6JOb9rpnQDIdJt5Yt2RN38dWq3W+Vw0+epvNj3ydl5RWSX38GK2 Oo37qWT/DW+k1/DhnNI0FfZCiDi2pg6n6QcslBm5W3eaDM5O0h/rjHChY /nGRwbUBCd8TQE1nPNND3V50ImW9ICCqXrXX2Ryh2pfBPBIXkqa93GSWZ 1mc419x66LYiw3JhDPeraIMPUG6oJRnOxM3LwhGCQ6FMS8cLHyQcs1MQU A==; X-IronPort-AV: E=Sophos;i="5.90,191,1643698800"; d="scan'208";a="152459688" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 18 Mar 2022 01:55:54 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 18 Mar 2022 01:55:54 -0700 Received: from CHE-LT-I21427LX.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 18 Mar 2022 01:55:49 -0700 From: Prasanna Vengateshan To: , , , CC: , , , , , , , , , Subject: [PATCH v9 net-next 01/11] dt-bindings: net: make internal-delay-ps based on phy-mode Date: Fri, 18 Mar 2022 14:25:30 +0530 Message-ID: <20220318085540.281721-2-prasanna.vengateshan@microchip.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220318085540.281721-1-prasanna.vengateshan@microchip.com> References: <20220318085540.281721-1-prasanna.vengateshan@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org *-internal-delay-ps properties would be applicable only for RGMII interface modes. It is changed as per the request, https://lore.kernel.org/netdev/d8e5f6a8-a7e1-dabd-f4b4-ea8ea21d0a1d@gmail.com/ Ran dt_binding_check to confirm nothing is broken and submitting as a RFC patch to receive feedback. Signed-off-by: Prasanna Vengateshan --- .../bindings/net/ethernet-controller.yaml | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index 34c5463abcec..609483a8e404 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -123,12 +123,6 @@ properties: and is useful for determining certain configuration settings such as flow control thresholds. - rx-internal-delay-ps: - 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: @@ -140,12 +134,6 @@ 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: - 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 @@ -222,6 +210,31 @@ properties: required: - speed +allOf: + - if: + properties: + phy-mode: + contains: + enum: + - rgmii + - rgmii-rxid + - rgmii-txid + - rgmii-id + then: + properties: + rx-internal-delay-ps: + 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. + tx-internal-delay-ps: + 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. + additionalProperties: true ... -- 2.30.2