From patchwork Sun Apr 30 17:06:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shmuel Hazan X-Patchwork-Id: 678245 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 3AFEDC7EE24 for ; Sun, 30 Apr 2023 17:07:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbjD3RHR (ORCPT ); Sun, 30 Apr 2023 13:07:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjD3RHO (ORCPT ); Sun, 30 Apr 2023 13:07:14 -0400 Received: from synguard (unknown [212.29.212.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D9252709; Sun, 30 Apr 2023 10:07:10 -0700 (PDT) Received: from T14.siklu.local (T14.siklu.local [192.168.42.187]) by synguard (Postfix) with ESMTP id 05BE04E4D0; Sun, 30 Apr 2023 20:07:07 +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 , Krzysztof Kozlowski Subject: [PATCH v4 3/3] dt-bindings: net: marvell,pp2: add extts docs Date: Sun, 30 Apr 2023 20:06:56 +0300 Message-Id: <20230430170656.137549-4-shmuel.h@siklu.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230430170656.137549-1-shmuel.h@siklu.com> References: <20230430170656.137549-1-shmuel.h@siklu.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add some documentation and example for enabling extts on the marvell mvpp2 TAI. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Shmuel Hazan --- v3 -> v4: no changes. --- .../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 = ,