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 6872CC64EC4 for ; Wed, 8 Mar 2023 14:03:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231935AbjCHODG (ORCPT ); Wed, 8 Mar 2023 09:03:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231927AbjCHOCO (ORCPT ); Wed, 8 Mar 2023 09:02:14 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 751132917A; Wed, 8 Mar 2023 06:00:50 -0800 (PST) Received: (Authenticated sender: kory.maincent@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 800A21C0004; Wed, 8 Mar 2023 14:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1678284048; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FucVkdzUMOd65SVJGkH7EDy0k/VJGGY+7Sjp+ByagLo=; b=l2Hy8sxwSbOagOh4qXqiDmXElZB7HrqKG7ChK5wn2lLJc18LegiOwOKou6GV21eLMkr8Ol Vez+EdMLarTZmVFVBsohRf5uzi9gpQMKulobXbOUPiHJGoHvPTe83KqpQiMOOF/plHiG9T 0LdUM1uckTop2CP/6tYlBCzJU2p/9QK4RimTYOMp6TrVBWIr5e8igbC+3mqQLw9fTkT9RA fDmVz3+HLFvCYm/AP4W+jTNggr3yf23PmJZ/s3EXu25+MxLT1eg1pTgwEB8VMlw6tiDEf6 DSo/GrQhraOTQOcJrN6OmPTZB/JEd7Id9uv/i+xDcwHZSTQbbC3+HD0yWw50IQ== From: =?UTF-8?q?K=C3=B6ry=20Maincent?= To: Andrew Lunn , Florian Fainelli , Heiner Kallweit , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-omap@vger.kernel.org Cc: Michael Walle , Maxime Chevallier , Kory Maincent , thomas.petazzoni@bootlin.com, Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , Joakim Zhang , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Grygorii Strashko , Richard Cochran , Minghao Chi , Guangbin Huang , Jie Wang , Oleksij Rempel , Alexandru Tachici , Sean Anderson , "Gustavo A. R. Silva" , Wolfram Sang , Maxim Korotkov , Marco Bonelli Subject: [PATCH v3 5/5] dt-bindings: net: phy: add timestamp preferred choice property Date: Wed, 8 Mar 2023 14:59:29 +0100 Message-Id: <20230308135936.761794-6-kory.maincent@bootlin.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308135936.761794-1-kory.maincent@bootlin.com> References: <20230308135936.761794-1-kory.maincent@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kory Maincent Add property to select the preferred hardware timestamp layer. The choice of using devicetree binding has been made as the PTP precision and quality depends of external things, like adjustable clock, or the lack of a temperature compensated crystal or specific features. Even if the preferred timestamp is a configuration it is hardly related to the design of the board. Signed-off-by: Kory Maincent --- Documentation/devicetree/bindings/net/ethernet-phy.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index ad808e9ce5b9..3ea6d2a59ff7 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -144,6 +144,13 @@ properties: Mark the corresponding energy efficient ethernet mode as broken and request the ethernet to stop advertising it. + preferred-timestamp: + enum: + - phy + - mac + description: + Specifies the preferred hardware timestamp layer. + pses: $ref: /schemas/types.yaml#/definitions/phandle-array maxItems: 1 -- 2.25.1