From patchwork Fri Apr 21 11:37:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 676017 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 396E5C77B76 for ; Fri, 21 Apr 2023 11:39:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231845AbjDULjf (ORCPT ); Fri, 21 Apr 2023 07:39:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231846AbjDULjd (ORCPT ); Fri, 21 Apr 2023 07:39:33 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CF301024B; Fri, 21 Apr 2023 04:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1682077149; x=1713613149; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=N6OimIKQ3i6ehsTOK+r+zS/LiCq1sp3AESutKH+CGnc=; b=iNmgpNESzs7LRNQ0FHakpAAcGzsZzFYx5PMiyWWWKpSU8Lw/FKVFM0+M iUSJWCGfOsgcf26blbrTFCMtdE1rkB2SeITh/QSCbq1OgRW0AGbLYK5/K Ae0Z+DO7V7QP7oLfClSrAgM0wrFO7G5dV8/YQHcsJiajvEqYGUFaQ7KP5 t/0Kf1Mov73fhCaDIMJSOJNFwMBWQsN3DeTAUiaPWWnjlE+86jSU/nt48 zz5udh92FrRzSAO3r1LyVyZdSAwuDSJE5n21SN942aZvMpHEWKwQDFaxe /qygijKfzShrkvjhQcE7JYQtR+Hj2DEFqC1CHPpcb+Fn7W12+d7lm+kL6 g==; X-IronPort-AV: E=Sophos;i="5.99,214,1677567600"; d="scan'208";a="210581661" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Apr 2023 04:38:35 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 21 Apr 2023 04:38:34 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Fri, 21 Apr 2023 04:38:32 -0700 From: Horatiu Vultur To: , , CC: , , , , , Horatiu Vultur Subject: [PATCH] ARM: dts: lan966x: Add support for SMA connectors Date: Fri, 21 Apr 2023 13:37:58 +0200 Message-ID: <20230421113758.3465678-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The pcb8309 has 2 SMA connectors which are connected to the lan966x chip. The lan966x can generate 1PPS output on one of them and it can receive 1PPS input on the other one. Signed-off-by: Horatiu Vultur --- arch/arm/boot/dts/lan966x-pcb8309.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/lan966x-pcb8309.dts b/arch/arm/boot/dts/lan966x-pcb8309.dts index c436cd20d4b4c..0cb505f79ba1a 100644 --- a/arch/arm/boot/dts/lan966x-pcb8309.dts +++ b/arch/arm/boot/dts/lan966x-pcb8309.dts @@ -144,6 +144,18 @@ fc4_b_pins: fc4-b-pins { function = "fc4_b"; }; + pps_out_pins: pps-out-pins { + /* 1pps output */ + pins = "GPIO_38"; + function = "ptpsync_3"; + }; + + ptp_ext_pins: ptp-ext-pins { + /* 1pps input */ + pins = "GPIO_39"; + function = "ptpsync_4"; + }; + sgpio_a_pins: sgpio-a-pins { /* SCK, D0, D1, LD */ pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35"; @@ -212,5 +224,7 @@ gpio@1 { }; &switch { + pinctrl-0 = <&pps_out_pins>, <&ptp_ext_pins>; + pinctrl-names = "default"; status = "okay"; };