From patchwork Wed Apr 19 15:14:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shmuel Hazan X-Patchwork-Id: 675258 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 63D25C77B75 for ; Wed, 19 Apr 2023 15:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232796AbjDSPYJ (ORCPT ); Wed, 19 Apr 2023 11:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232643AbjDSPYI (ORCPT ); Wed, 19 Apr 2023 11:24:08 -0400 X-Greylist: delayed 503 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 19 Apr 2023 08:23:28 PDT Received: from synguard (unknown [212.29.212.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3A3749DB; Wed, 19 Apr 2023 08:23:28 -0700 (PDT) Received: from dali.siklu.local (dali.siklu.local [192.168.42.30]) by synguard (Postfix) with ESMTP id 81FB64DFC8; Wed, 19 Apr 2023 18:14:59 +0300 (IDT) From: Shmuel Hazan To: Russell King Cc: Marcin Wojtas , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , horatiu.vultur@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Shmuel Hazan Subject: [PATCH v3 3/3] dt-bindings: net: marvell,pp2: add extts docs Date: Wed, 19 Apr 2023 18:14:57 +0300 Message-Id: <20230419151457.22411-4-shmuel.h@siklu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230419151457.22411-1-shmuel.h@siklu.com> References: <20230419151457.22411-1-shmuel.h@siklu.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add some documentation and example for enabling extts on the marvell mvpp2 TAI. Signed-off-by: Shmuel Hazan --- .../devicetree/bindings/net/marvell,pp2.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/net/marvell,pp2.yaml b/Documentation/devicetree/bindings/net/marvell,pp2.yaml index 4eadafc43d4f..5e4fc9c5dc92 100644 --- a/Documentation/devicetree/bindings/net/marvell,pp2.yaml +++ b/Documentation/devicetree/bindings/net/marvell,pp2.yaml @@ -31,6 +31,21 @@ properties: "#size-cells": const: 0 + pinctrl-0: true + pinctrl-1: true + + pinctrl-names: + description: + When present, must have one state named "default", + and may contain a second name named "extts". The former + state sets up pins for ordinary operation without extts + support whereas the latter state will enable receiving + external timestamp events. + minItems: 1 + items: + - const: default + - const: extts + clocks: minItems: 2 items: @@ -241,6 +256,9 @@ examples: <&cp0_clk 1 5>, <&cp0_clk 1 6>, <&cp0_clk 1 18>; clock-names = "pp_clk", "gop_clk", "mg_clk", "mg_core_clk", "axi_clk"; marvell,system-controller = <&cp0_syscon0>; + pinctrl-names = "default", "extts"; + pinctrl-0 = <&cp1_mpp6_gpio>; + pinctrl-1 = <&cp1_mpp6_ptp>; ethernet-port@0 { interrupts = ,