From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from BL2PR02CU003.outbound.protection.outlook.com (mail-eastusazon11011009.outbound.protection.outlook.com [52.101.52.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 148B926A1AC; Thu, 19 Feb 2026 05:49:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.52.9 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771480201; cv=fail; b=EBYWEvwIvrnWA5YG1ybbMmJv2mLbc3TZDSGrKGUYe/BNMenNAAZkcmf6e0NvzVmGJEhKq4iee5phwJbcIIE8USUy0DkBlJv+EhFtH9SLHiSup0rcjgq/n8XmRipe+LFltnffTTT0X1FdEXgeyk0wgzFg7MeXpI5xzA9N2dRBxTM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771480201; c=relaxed/simple; bh=0ca+DFkG9xEk4h/h01KQrzftSXyB9txj1cy88nXwnZw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QAKeCrY6zX9i1iDTJzeRZyDWOGfW1FdOOa62+IbiJcEO7sS899Q3rA9mPovucirUqw3RNnFZD9wRkgQn2cCKwvWIs9nXr5YggYtkK8/1z/1welaV1Y2NvsJpepWcbvozAukuQj+/DBq4rH0iDOTc2AeO4RVqJb4A7G0e6A8Ra2o= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=clD0mNSp; arc=fail smtp.client-ip=52.101.52.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="clD0mNSp" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ci5RuonTpyB472vDTrtAmMWa6uwoajnJrCnuvcsV7b3nzxHoIY7u7x4rc4xUp5x3+Nx/XcsgDFFoqGcb/pjKaWBvGGE3CXE3TQNZkyfIihWyMIJzal2lbvNB5MD6LN57u5qWEV0DvvskcIB3xgHAerl4N4KxGThzyomu0/U+PYVv9iZM8v39AFW0dXB5MwhK30qUu1kTWr2HOpcOboySkgSV6j9L9bX980IYBNwizd0Hc1CbU7x8Ox0gW/+alR+Iz3VKHHNy6fjX+K9P7KdzWBT+kbkdEP3tsOvB0XPz2TePevwDCjDUskFTh3+KzeW2zAoXVSssqnEolX11j4VvmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lJY3k/Ef4ASP3nO3FS4f2r6DlEAH/9P0UjK3ui46QKI=; b=b3LFLRxsHJDbmq2RFluepmPe8YRckhfi4ZxKOCn1TjepuGOXuMIcHK1z6soWygX43VjV/Iawyf1015jpM7aRiZu0/ygNG9vALfutGGXC+YaszvGu9dCXweTWV+5HniEG76g2JM6ktaaOpW6iLG1R5rlypqA1qwoSwBsssFQ5iwxpHPWYWMZ48kli14ZIe7wYeth9nMblvKpTH0BwiIZWyWNzhVU+DFZaSl5u+92Bx8P2uQVUTvgchxHj7ZzKfVUH71ziHGwqgszTSrkilruR4Bl+0gv/pjjnbgrwuMqjkks7WwzDEPgCL5qFDzCiF2jLeTVuwNg64hg5LJJsFpqoeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lunn.ch smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lJY3k/Ef4ASP3nO3FS4f2r6DlEAH/9P0UjK3ui46QKI=; b=clD0mNSp46rUgUD3GNng72f8MkQMRBUTAbjFyBF/DLFl0Nbr7ynnICty8vfWKKlAYfzkd2DhWCRlDNjeHk1BSRaQG/WbW96DgfZftM9dp1vsoWxzQ2kBR0MBLLL3LfzbL+xZF0+5ezvmL/Fws64G+NhWLEboHXT+OCIVLWzgfyk= Received: from BY1P220CA0007.NAMP220.PROD.OUTLOOK.COM (2603:10b6:a03:59d::13) by IA0PR12MB8255.namprd12.prod.outlook.com (2603:10b6:208:404::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9632.14; Thu, 19 Feb 2026 05:49:55 +0000 Received: from SJ5PEPF000001CD.namprd05.prod.outlook.com (2603:10b6:a03:59d:cafe::c9) by BY1P220CA0007.outlook.office365.com (2603:10b6:a03:59d::13) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9632.16 via Frontend Transport; Thu, 19 Feb 2026 05:49:55 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by SJ5PEPF000001CD.mail.protection.outlook.com (10.167.242.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9632.12 via Frontend Transport; Thu, 19 Feb 2026 05:49:55 +0000 Received: from Satlexmb09.amd.com (10.181.42.218) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Wed, 18 Feb 2026 23:49:53 -0600 Received: from satlexmb07.amd.com (10.181.42.216) by satlexmb09.amd.com (10.181.42.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Wed, 18 Feb 2026 21:49:52 -0800 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Wed, 18 Feb 2026 23:49:48 -0600 From: Srinivas Neeli To: , , , , , , , , , CC: , , , , , Subject: [RFC PATCH 6/8] dt-bindings: net: Add PTP interrupt support Date: Thu, 19 Feb 2026 11:19:09 +0530 Message-ID: <20260219054911.2017362-7-srinivas.neeli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260219054911.2017362-1-srinivas.neeli@amd.com> References: <20260219054911.2017362-1-srinivas.neeli@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001CD:EE_|IA0PR12MB8255:EE_ X-MS-Office365-Filtering-Correlation-Id: 3d2edf4b-f5b4-4e3d-c69a-08de6f7ab568 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|7416014|36860700013|376014|1800799024|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?2cO4QVCsfrJaQhch2lX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.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(7416014)(36860700013)(376014)(1800799024)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3FwqG3EKut1x8Bj/hFr5iIi3Qbh9Ndpo+gbe5+FFgymu3Yv4R5fFg4Y1ZR4A51YUhKDFuUd6TuK5yWXHsM0tvpjLWK+Q7jL2HXTWWg9UGUmLEjxcinQI5THLxq9G+1U3ZcJK9irsAtzSpR/VMo4hlOM8ZYafdxXfBrMfUwqukGACsSP/YWadBhrFNxB2pd3UVHZAAghk6PpMuEyaXd+Si1YLE5casd7uADPH/0AH8hdqv9k6d1VSDPcKQaIli1ILmQ1hu7Yad7nIF4wbRrx3ZiIyN3/I8jWeryrFe1vz0nujmxyDb6PmoRCO2PtaeFZ5GIpnyaNsHjADyYkdwMtrS6ratWrgA8L57uExTyExTm1B7ZgMsg7b2EsULTc5CsAcmUbGK7LBzIkig2+AWW2xxQiSc1sqiQr9H746PPjA4KJlrT4xvxJTTMXQy9i33ETc X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Feb 2026 05:49:55.2169 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d2edf4b-f5b4-4e3d-c69a-08de6f7ab568 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SJ5PEPF000001CD.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8255 Add device tree bindings for PTP (Precision Time Protocol) interrupt configuration in Xilinx TSN Endpoint Ethernet MAC IP. The MAC instances within the TSN IP have asymmetric PTP capabilities based on their hardware configuration. MAC 1 (xlnx,mac-id = 1) provides complete PTP hardware support including a dedicated PTP timer, requiring four interrupt lines: - interrupt_ptp_rx: PTP receive packet interrupt - interrupt_ptp_tx: PTP transmit packet interrupt - mac_irq: General MAC interrupt - interrupt_ptp_timer: PTP hardware timer interrupt MAC 2 (xlnx,mac-id = 2) supports PTP packet processing but lacks the hardware timer block, requiring only three interrupt lines: - interrupt_ptp_rx: PTP receive packet interrupt - interrupt_ptp_tx: PTP transmit packet interrupt - mac_irq: General MAC interrupt Signed-off-by: Srinivas Neeli --- .../net/xlnx,tsn-endpoint-ethernet-mac.yaml | 79 ++++++++++++++++++- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/xlnx,tsn-endpoint-ethernet-mac.yaml b/Documentation/devicetree/bindings/net/xlnx,tsn-endpoint-ethernet-mac.yaml index 0d61a911e1d1..b1b0f4a03d11 100644 --- a/Documentation/devicetree/bindings/net/xlnx,tsn-endpoint-ethernet-mac.yaml +++ b/Documentation/devicetree/bindings/net/xlnx,tsn-endpoint-ethernet-mac.yaml @@ -113,6 +113,34 @@ patternProperties: reg: maxItems: 1 + xlnx,mac-id: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + description: + MAC instance identifier. MAC ID 1 supports PTP timer functionality, + while MAC ID 2 does not have PTP timer support. + + interrupts: + minItems: 1 + maxItems: 4 + description: + Interrupt specifiers for MAC interrupts. MAC 1 (with PTP support) + requires 4 interrupts (ptp_rx, ptp_tx, mac_irq, ptp_timer). + MAC 2 (without PTP support) requires 3 interrupts (ptp_rx, ptp_tx, mac_irq). + + interrupt-names: + minItems: 1 + maxItems: 4 + items: + enum: + - interrupt_ptp_rx + - interrupt_ptp_tx + - mac_irq + - interrupt_ptp_timer + description: + Names for the interrupts. MAC 1 includes "interrupt_ptp_timer" for + PTP hardware timer, which is not present in MAC 2. + phy-mode: enum: - gmii @@ -124,6 +152,44 @@ patternProperties: mdio: type: object + + allOf: + - if: + properties: + xlnx,mac-id: + const: 1 + then: + properties: + interrupts: + minItems: 4 + maxItems: 4 + interrupt-names: + items: + - const: interrupt_ptp_rx + - const: interrupt_ptp_tx + - const: mac_irq + - const: interrupt_ptp_timer + required: + - interrupts + - interrupt-names + - if: + properties: + xlnx,mac-id: + const: 2 + then: + properties: + interrupts: + minItems: 3 + maxItems: 3 + interrupt-names: + items: + - const: interrupt_ptp_rx + - const: interrupt_ptp_tx + - const: mac_irq + required: + - interrupts + - interrupt-names + additionalProperties: false "^ep-mac@": @@ -225,9 +291,14 @@ examples: xlnx,dma-channel-num = <0x0>; }; }; - // MAC 1 Node + // MAC 1 Node (with PTP timer support) mac1: ethernet-mac@0 { reg = <0x0 0x14000>; + xlnx,mac-id = <1>; + interrupt-parent = <&intc>; + interrupt-names = "interrupt_ptp_rx", "interrupt_ptp_tx", + "mac_irq", "interrupt_ptp_timer"; + interrupts = <0 2>, <2 2>, <4 2>, <6 2>; phy-mode = "rgmii-id"; phy-handle = <&phy0>; mdio { @@ -240,9 +311,13 @@ examples: }; }; - // MAC 2 Node + // MAC 2 Node (without PTP timer support) mac2: ethernet-mac@20000 { reg = <0x20000 0x14000>; + xlnx,mac-id = <2>; + interrupt-parent = <&intc>; + interrupt-names = "interrupt_ptp_rx", "interrupt_ptp_tx", "mac_irq"; + interrupts = <1 2>, <3 2>, <5 2>; phy-mode = "rgmii-id"; phy-handle = <&phy1>; mdio { -- 2.25.1