From nobody Tue Feb 10 05:10:07 2026 Received: from BL0PR03CU003.outbound.protection.outlook.com (mail-eastusazon11012065.outbound.protection.outlook.com [52.101.53.65]) (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 453E740FDB3; Tue, 20 Jan 2026 10:44:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.53.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768905873; cv=fail; b=MpkgAz6xKqGa1Ec/vs4iZKODD+mviHzUY2GfV3dRhzDoSRw81OhsisDQzlbd9afNvPxH1yLJUFRjPDUBBRTXi3qlN+o/jcxaY+3HWmi05yOVqKrJmf9TzmXAtfmqXdA2nXeNyPvvkERRglFc6bQv0edNzN1lCkym8+gwGRpl8v8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768905873; c=relaxed/simple; bh=PREn8x6c8SfJqW4gb1Sf/Ocjr1aSnIxrPLCSWn2and0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=cJWVTjaeGyp9j+EhKGQGtcqKDyjGVi75Ic+n0QpmewMCn/TaenxiVJhsVIQThUTAZY+XhofXF1St6QfBbpix7PfFR0tK4Um+wZI5ry0Xg512A3R/gs5CRteFTpWnz00t+zTGTWbcfiMAQpVGm7HvOjbTkyPB56clApr8QABDc/I= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=C8SGXxEG; arc=fail smtp.client-ip=52.101.53.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="C8SGXxEG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dQJ+VNptDhPAFKTv2wNfk4/iGfEj3U+Lk/OoPd/15c5tc9ytiEclE7LsvACTR5qryCL/c+KS8e80G8YCO+soFnXm9qKqvySnccPMI6MpuOOeGN5T2vFjC8+5WyiobpZLRBqGHdNuLUnCT20CjnYtyagmjlK0cRMMHyN2ifP8brKxT4p/HWgx+nI2fMIMiSDvbAnyFzgCHYJyZZsNDpoOxyZTQga0q2IppYYI/I+t61ikyn1bCh2ZBhmCaPL/ZpY3W4QkJoKX5fWRxpNmPMJFRLVQj4LansE2+uWz782GKwxE1s4C/82W8ZhpiH08K4f+hhdZPgs58+nnWDdOfHkv1A== 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=Vut9EyxL+DOZ5dusAErbvkcZFybgKv/mLkX+z1WkdKM=; b=whuXFkcsxtGBGeo2UUjp2xEMFB+ySLVyuaYMq63w81b0CaPpiyiMlmvabLbMVU6aBzDL5EW7qbUq6VnaFrT8p1kfJeF9f/FDYhblDvcpV34bj6VatJvllA1AG3WviI9vQ/hTGtFcVH5BWmogcAMF80+17lgJeq/YWaG51HuwDUfXM34SL0gW1GhgLSPvTG7DIPGjk+Rwu4aJ/lFJ1hLoLlF8Kk1wVJI8WB7glRVRCymhbiWnJX4d2VhN3L0cLEFJ8KxNN1TGH10URs6lCTywSbz2u9rWp5kLUVfI6u5FD34WRYGACfQ8t9FAQt7p/BzMjQsG8BVveU9Q8CN55/m90w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.195) smtp.rcpttodomain=kernel.org smtp.mailfrom=ti.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=ti.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Vut9EyxL+DOZ5dusAErbvkcZFybgKv/mLkX+z1WkdKM=; b=C8SGXxEGUcJ3Lkanp2OwskdCVPc12Mx12SE/4cXGfarTGpT/fo5lP2N2EkbzOY82Aniv1/dIFbie/u0gXExap7Tu6nS7TUH4ECtbyEGqWLx2tJgityzPoJCDPUeoP8T96EI9Ro/ScITfPP7l1PzjnhGYJP+7ymRfVH4cdLjiRM0= Received: from SJ0PR03CA0070.namprd03.prod.outlook.com (2603:10b6:a03:331::15) by DM4PR10MB6862.namprd10.prod.outlook.com (2603:10b6:8:105::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.9; Tue, 20 Jan 2026 10:44:29 +0000 Received: from CO1PEPF000044FC.namprd21.prod.outlook.com (2603:10b6:a03:331:cafe::d2) by SJ0PR03CA0070.outlook.office365.com (2603:10b6:a03:331::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9520.12 via Frontend Transport; Tue, 20 Jan 2026 10:44:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.195) smtp.mailfrom=ti.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ti.com; Received-SPF: Pass (protection.outlook.com: domain of ti.com designates 198.47.23.195 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.195; helo=lewvzet201.ext.ti.com; pr=C Received: from lewvzet201.ext.ti.com (198.47.23.195) by CO1PEPF000044FC.mail.protection.outlook.com (10.167.241.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9564.0 via Frontend Transport; Tue, 20 Jan 2026 10:44:28 +0000 Received: from DLEE202.ent.ti.com (157.170.170.77) by lewvzet201.ext.ti.com (10.4.14.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Tue, 20 Jan 2026 04:44:27 -0600 Received: from DLEE202.ent.ti.com (157.170.170.77) by DLEE202.ent.ti.com (157.170.170.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Tue, 20 Jan 2026 04:44:27 -0600 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE202.ent.ti.com (157.170.170.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 20 Jan 2026 04:44:27 -0600 Received: from psdkl-workstation0.dhcp.ti.com (psdkl-workstation0.dhcp.ti.com [172.24.234.127]) by lelvem-mr06.itg.ti.com (8.18.1/8.18.1) with ESMTP id 60KAiIEg939676; Tue, 20 Jan 2026 04:44:23 -0600 From: Aniket Limaye Date: Tue, 20 Jan 2026 16:13:46 +0530 Subject: [PATCH v2 1/2] dt-bindings: interrupt-controller: ti,sci-intr: Per-line interrupt-types Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20260120-ul-driver-i2c-j722s-v2-1-832097c6b64f@ti.com> References: <20260120-ul-driver-i2c-j722s-v2-0-832097c6b64f@ti.com> In-Reply-To: <20260120-ul-driver-i2c-j722s-v2-0-832097c6b64f@ti.com> To: Vignesh Raghavendra , , Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , Aniket Limaye X-Mailer: b4 0.14.3 X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044FC:EE_|DM4PR10MB6862:EE_ X-MS-Office365-Filtering-Correlation-Id: afe2d3fb-6f92-442c-0884-08de5810e2fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?B?M2YwQTdmWm14ZlFsWTZia0Njc0NyR1BXMWZoWXAvbHJmY2JvRGFCMWVHVCtW?= =?utf-8?B?K3BWbm1lWGluWWU1MGVUUjJqcWRkL0c3dW9BQWVkOHY1NzNKSXMyZjhCQTBt?= =?utf-8?B?QU1PSGl0SmxUQnJCQTZ3am5GZWExT0RXRXdCdzhjTUNwNXBuVHF0cHFnRmVO?= =?utf-8?B?K0Y2cGh6UUJMNG1ZUS82NTNjU0loWE5OL3N1bjVUMXZweVhjMGdra3ExeS9y?= =?utf-8?B?SnFzSTcxSXpELzVmS2JnSGR5YWt2OXRHLzg4RStSdFIxcEUwQ05NMlczU29w?= =?utf-8?B?QUkvNzJSVmFVNjRnbHFLbDhrMCsySEhZQllMT1lJZVBpekdkdnZHVURuc0hi?= =?utf-8?B?ZnBzUm16dmV6b3FKM3YvZnZyTllzMEdzVHpnbysvaU00ZVhDWk5XSHhNV0pa?= =?utf-8?B?b3cvUExZYUtrVEw4MTk5KzdLWFp4NTliOEViUmhKZURGWW9CTXRlWStSMTVQ?= =?utf-8?B?Y2Fid3UwRVJUcEhpMFZ5Z2xDdXcwQVpVUHFLbGxuQzAycjNJbUw5QmJnOHhR?= =?utf-8?B?djd0YzRQZmNrdTJyTFZveU1rSkZYcU4xRi9wZFVxS05Wa1p4RFZGMnZZdG80?= =?utf-8?B?QTR1VU5nS2FpeTgybUM2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B?dG9vdU1FYVB2bktjY3hOeitialVJbEtJSjIzUmpSVWxPcWJybUlMSFVzUGRX?= =?utf-8?B?UUJvTWNFNG1QVll2YTMzOFpyYlZuY0s3ODh5aXB1eElBTGVlSE0wK0l2Ujly?= =?utf-8?B?THNHNXFCMlkra1lFTXB6a3ZXMnZFTmJYaUtRV2dscC82dUo0VDR0ZlhSZXJQ?= =?utf-8?B?YVU0WFp0NGlia2FZK1NET0JmQk41OGtwWHNYYzR5UnJFWVFOYXlBRzZkdlIr?= =?utf-8?B?S3hxa1NwODJtU0xOb3p3WTNNWmcvNytqZzBTWGtmbjNQTHFsVWh0dHN4cUdv?= =?utf-8?B?MjRNNkJVNk40cFFrY2JxK082NDdnaEI2emJJM3FLUktjdDM5VnljdUtlVHdw?= =?utf-8?B?aGxKTk1GNDltVjN4dFlJM2VnRlFsV205bnUyUDlpWVA5blBRcDFvcVVpL1h1?= =?utf-8?B?QTRFKzFCdjM3bG16OEg1UUVPMzZ3ZmxCR293c21zVm43K0Q1MEc1WWJIRndU?= =?utf-8?B?aURxelJyckVxdHdGVHV3UlEwbjBQNTRHY0x6SE9oVU82cnZybGUzaDRCdkF3?= =?utf-8?B?Ukczc1pMczJHTHZVSy9FQklLSHk3L25LT25zWjR2aDJnYnhYUlR4bmpjcTl4?= =?utf-8?B?eTN2M3BrWW5OSDAxaFpyKy9jb1pINnZsV0phak9XOFFLL0I2SG5lWWxoOE1Y?= =?utf-8?Q?99/CYFK1FNd1pvv0H3UCm1U=3D?= X-Forefront-Antispam-Report: CIP:198.47.23.195;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet201.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2026 10:44:28.2776 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: afe2d3fb-6f92-442c-0884-08de5810e2fc X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.23.195];Helo=[lewvzet201.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: CO1PEPF000044FC.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB6862 Update the bindings to allow setting per-line interrupt-types. Some Interrupt Router instances can only work with a specific trigger type (edge or level), while others act as simple passthroughs that preserve the source interrupt type unchanged. In addition to existing edge or level interrupt setting, add a third enum value 15 (IRQ_TYPE_DEFAULT) for "ti,intr-trigger-type" property, to indicate that the router acts as a passthrough. When set to 15, "#interrupt-cells" must be 2 to allow each interrupt source to specify its trigger type per-line. Signed-off-by: Aniket Limaye --- Changes in v2: - Reword Commit msg to better describe the patch - Link to v1: https://lore.kernel.org/r/20260116-ul-driver-i2c-j722s-v1-1-c= 28e8ba38a9e@ti.com --- .../bindings/interrupt-controller/ti,sci-intr.yaml | 42 ++++++++++++++++++= +--- 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/ti,sci-= intr.yaml b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-i= ntr.yaml index c99cc7323c71..59c01f327f3b 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.ya= ml +++ b/Documentation/devicetree/bindings/interrupt-controller/ti,sci-intr.ya= ml @@ -15,8 +15,7 @@ allOf: description: | The Interrupt Router (INTR) module provides a mechanism to mux M interrupt inputs to N interrupt outputs, where all M inputs are selectab= le - to be driven per N output. An Interrupt Router can either handle edge - triggered or level triggered interrupts and that is fixed in hardware. + to be driven per N output. =20 Interrupt Router +----------------------+ @@ -52,11 +51,12 @@ properties: =20 ti,intr-trigger-type: $ref: /schemas/types.yaml#/definitions/uint32 - enum: [1, 4] + enum: [1, 4, 15] description: | Should be one of the following. 1 =3D If intr supports edge triggered interrupts. 4 =3D If intr supports level triggered interrupts. + 15 =3D If intr preserves the source interrupt type. =20 reg: maxItems: 1 @@ -64,9 +64,14 @@ properties: interrupt-controller: true =20 '#interrupt-cells': - const: 1 + enum: [1, 2] description: | - The 1st cell should contain interrupt router input hw number. + Number of cells in interrupt specifier. Depends on ti,intr-trigger-t= ype: + - If ti,intr-trigger-type is 1 or 4: must be 1 + The 1st cell should contain interrupt router input hw number. + - If ti,intr-trigger-type is 15: must be 2 + The 1st cell should contain interrupt router input hw number. + The 2nd cell should contain interrupt trigger type (preserved by r= outer). =20 ti,interrupt-ranges: $ref: /schemas/types.yaml#/definitions/uint32-matrix @@ -82,6 +87,21 @@ properties: - description: | "limit" specifies the limit for translation =20 +if: + properties: + ti,intr-trigger-type: + enum: [1, 4] +then: + properties: + '#interrupt-cells': + const: 1 + description: Interrupt ID only. Interrupt type is specified globally +else: + properties: + '#interrupt-cells': + const: 2 + description: Interrupt ID and corresponding interrupt type + required: - compatible - ti,intr-trigger-type @@ -105,3 +125,15 @@ examples: ti,sci-dev-id =3D <131>; ti,interrupt-ranges =3D <0 360 32>; }; + + - | + main_gpio_intr1: interrupt-controller1 { + compatible =3D "ti,sci-intr"; + ti,intr-trigger-type =3D <15>; + interrupt-controller; + interrupt-parent =3D <&gic500>; + #interrupt-cells =3D <2>; + ti,sci =3D <&dmsc>; + ti,sci-dev-id =3D <131>; + ti,interrupt-ranges =3D <0 360 32>; + }; --=20 2.52.0