From patchwork Sun Apr 24 14:58:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Horatiu Vultur X-Patchwork-Id: 12824913 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 C4109C433EF for ; Sun, 24 Apr 2022 14:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239636AbiDXPAo (ORCPT ); Sun, 24 Apr 2022 11:00:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239528AbiDXO6y (ORCPT ); Sun, 24 Apr 2022 10:58:54 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C912C37A06; Sun, 24 Apr 2022 07:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1650812151; x=1682348151; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=j8Lu4AiqbRbjV2E8MKRFPqyrfc9jWVbRk95FXIFed+c=; b=qlylYjrcnuHfKO8SWgMxny1IOQB2uXjCZ1mzU1Gie9Aw1WDdhmfcNUEe WwqsYQWqGhKXyD6lXQckmylKEXqIlkUFo9Oz7KczJa/JpKLlh/5qWPayz jlfwWDOgLtVJl5MjvOTwGEsj4vxN3UBJMiAfAXfws09DezNRk2jsH4Rsz fpNr0q6B3Az3Yp4Ga/FbXPC3phmQwB8Y31BVWoa6+NTYe87MDm5+fT0VJ a7ccHYwoA37/9VujXOxsYMXuNupD/8/AFuVAqywl903kyIidIWTTXxo+5 +SBSHFDFVvZpJpsHu9VY4UkjO3HQrFBF8WUJFSITBa0auGHgOzu1ifQRa Q==; X-IronPort-AV: E=Sophos;i="5.90,286,1643698800"; d="scan'208";a="153623558" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 24 Apr 2022 07:55:50 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Sun, 24 Apr 2022 07:55:49 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Sun, 24 Apr 2022 07:55:46 -0700 From: Horatiu Vultur To: , , CC: , , , , , , , Horatiu Vultur Subject: [PATCH net-next 0/5] net: lan966x: Add support for PTP programmable pins Date: Sun, 24 Apr 2022 16:58:19 +0200 Message-ID: <20220424145824.2931449-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Lan966x has 8 PTP programmable pins. The last pin is hardcoded to be used by PHC0 and all the rest are shareable between the PHCs. The PTP pins can implement both extts and perout functions. Horatiu Vultur (5): dt-bindings: net: lan966x: Extend with the ptp external interrupt. net: lan966x: Change the PTP pin used to read/write the PHC. net: lan966x: Add registers used to configure the PTP pin net: lan966x: Add support for PTP_PF_PEROUT net: lan966x: Add support for PTP_PF_EXTTS .../net/microchip,lan966x-switch.yaml | 2 + .../ethernet/microchip/lan966x/lan966x_main.c | 17 ++ .../ethernet/microchip/lan966x/lan966x_main.h | 4 + .../ethernet/microchip/lan966x/lan966x_ptp.c | 276 +++++++++++++++++- .../ethernet/microchip/lan966x/lan966x_regs.h | 40 +++ 5 files changed, 338 insertions(+), 1 deletion(-)