From nobody Mon Feb 9 02:38:06 2026 Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011051.outbound.protection.outlook.com [52.101.62.51]) (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 3EF1822FDE6; Fri, 16 Jan 2026 13:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768569087; cv=fail; b=i0chTt+ffiToOoNVDabhhau2p7MjcPZxrHbnx3iew+jTXbixV7PW0M2mfiJa6aaiZ5yK8iW0FOALLhlu5QK6FFgrCmeDdCNrBtsf3cWm6OcL3KJOQ7bYvLo23K7h8M/qofid+XbvKDJLkPaHd6ZmneGL/0SDlwp8UIa7o5M+HbU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768569087; c=relaxed/simple; bh=M7WuY9/OdIM0ee4mcawoIsxAHskRdnvel3KOVkgOVqk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=lgMQta9envm2BBzdvVCY+rQQbU5qduN1qJUNsSnW0dVQDulmLDkRwbQKsgp+sEjEhtn6F3yrfF+xQJKe58ztNha33yqENHFc2/4jf6swZ9V6bf8POKOEhr+p55lmw5ms8BPmQA0CmyDDX1jZHZhW04xMFbt6OHvp5G+coYVmlDo= 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=Dy1TBqxE; arc=fail smtp.client-ip=52.101.62.51 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="Dy1TBqxE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CUwLz14EEvMj9X97AyP9N59AXuPvL9UabrI00mqLbsGP6sTt52YGre56YNvmtJo0jP6Kl81pne58GRt4Ntnb4zLxYQkf6gq0ZQPXtTAdSrzp3UIbiHqo9FWt8EjGPhBKqeo9Gq66fJyuc5alKjYb6Q99fqMgZzp5kdOT6plXqJsFS+vlVjWdrR9Avo3ZmlgMa3UGSKdTZZsDCAoXvqKwBh8vya/yK45G5lVDuG1c0Mxu4TRykF7VyFV9EzyCq13kezyQc8N1Ep85B69TcUIjKRoX3bKAjkMNE1126MYIVbcZAXTSmuZr8FPG0GQsZuJ1JVVb3EVoQWGwd25f8PWgbA== 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=eqWSRxEo1PMrKiGT4i1yXUBYM7aRqrafRjPy59IfNMA=; b=otaGbgnGYbX50a/VCngIap0T7Po+edCtwqWjdr9KZyp8+t+/aNc+Whx5ZQ4lmCRLpsobFWN/iUH62mz+sXMDoZrTYFmJoGEEvUynTh95Q1D3YgBsk779pT3Kflhzw0oiYD+2TXJpSfG8MhpflMy8nWqwJy3G59iy1HbR5Wdvhiivdeibyz3eA6Km7GOF7k3Fddck1d2UrwAEpas9JTPZ5V16eFFg/MgLIAbJXaQ4n5gfd+EKLywPD7MzUnl8nhKRiGdCoOmCmzXmEpa7/DaPWjQerzl4yFQM7NVlWCbk5aIRFM0iUeqZu16nTIPDQRuYLeJve6sr+pPehtC+qg4iDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.21.195) smtp.rcpttodomain=vger.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=eqWSRxEo1PMrKiGT4i1yXUBYM7aRqrafRjPy59IfNMA=; b=Dy1TBqxEl7uV8+s6wQD9JwTQz80xgu7klRJDoo+I+4d7adkD80RktshK6i1OJ1D0HRwsE+n2UgRaGBimyv85ET50pADesrkjnfRzlxA+jT8bQgUvdZQ9Pqs+VcpGW8n4Mc7gJeKateId1Dft+KCV45o4G7zmA/QACfM2kWZKnBk= Received: from CH0PR03CA0080.namprd03.prod.outlook.com (2603:10b6:610:cc::25) by SA1PR10MB6565.namprd10.prod.outlook.com (2603:10b6:806:2bd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9520.5; Fri, 16 Jan 2026 13:11:18 +0000 Received: from CH1PEPF0000A347.namprd04.prod.outlook.com (2603:10b6:610:cc:cafe::f7) by CH0PR03CA0080.outlook.office365.com (2603:10b6:610:cc::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9520.8 via Frontend Transport; Fri, 16 Jan 2026 13:11:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.21.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.21.195 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.21.195; helo=flwvzet201.ext.ti.com; pr=C Received: from flwvzet201.ext.ti.com (198.47.21.195) by CH1PEPF0000A347.mail.protection.outlook.com (10.167.244.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.4 via Frontend Transport; Fri, 16 Jan 2026 13:11:17 +0000 Received: from DFLE205.ent.ti.com (10.64.6.63) by flwvzet201.ext.ti.com (10.248.192.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 16 Jan 2026 07:11:12 -0600 Received: from DFLE206.ent.ti.com (10.64.6.64) by DFLE205.ent.ti.com (10.64.6.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 16 Jan 2026 07:11:11 -0600 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DFLE206.ent.ti.com (10.64.6.64) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Fri, 16 Jan 2026 07:11:11 -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 60GDB0HG3181044; Fri, 16 Jan 2026 07:11:06 -0600 From: Aniket Limaye Date: Fri, 16 Jan 2026 18:38:41 +0530 Subject: [PATCH 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: <20260116-ul-driver-i2c-j722s-v1-1-c28e8ba38a9e@ti.com> References: <20260116-ul-driver-i2c-j722s-v1-0-c28e8ba38a9e@ti.com> In-Reply-To: <20260116-ul-driver-i2c-j722s-v1-0-c28e8ba38a9e@ti.com> To: Vignesh Raghavendra , , Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lokesh Vutla 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: CH1PEPF0000A347:EE_|SA1PR10MB6565:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ade1d57-82ee-4bb7-e841-08de5500bbe3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|82310400026|34020700016|1800799024|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?B?bUtTYU81MDNZNDJ3OURHbHBheDF6bXFHYzNjTTVaa3I2Zi9NMFdoWXpvSEFO?= =?utf-8?B?Y2Y2bk5NVmJVaFRUUndQVlhmU0ZneDJlZEJvNjZrN2Jrb0sxTy9rZ3pveDV3?= =?utf-8?B?OG5ZalhHelBzczRQTXRaT1A2QU5MSGRsbzNRcDFQek9PWW9XWWtZdWhMWVRS?= =?utf-8?B?NUtXYTA2NWdXUTNTRlNVQWlSVEVKMnpMMmtqV0JaOFAyem41Yy9ac0tKaTZ5?= =?utf-8?B?OTZQZjhjYklKc0dzWTYrR0ttU09sQklITkhhUlNoaE8zcmdwbDZPMXNDTmNl?= =?utf-8?B?SXlURWpGbm13UHhKZ3Z5ZHNMb2U1RmptbXNmcXRlWnAraCt5cGovWWhHaVNR?= =?utf-8?B?V2tBU2RmYmlmZGJFemhaNGNWaEpzVytXOGl3c1l3cWFaQmpSZEtGUWMxVE9X?= =?utf-8?B?aFFEY3g5VlRWYXgwSXpXRGY1ZThVTEFud3pnSWR6cFYvcWFJdTdHakpWZ0Q5?= =?utf-8?B?YVBOU2V6MTUxWFFuWkkzNmx0TzZJdEhQZXJBQmlpOWJqeTBIdklxV2lrY2w5?= =?utf-8?B?U1NTVlRqcXJ6RFZwWXF2d1gzNWxRc00yMlJqYVVlN1BPTXNu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5L0NoNTJIMys3eWIzZmwwUUdNVDZv?= =?utf-8?B?TkVTUzljL292OWlhdElVYnA0V2VRVjhCZDlqUkJtM0lobGhJM1NNSzhaMU0z?= =?utf-8?B?QXN1djhxdWVuSHgzWkNidVlJMDNwS0lsdjNzQVlPR3dzTk55RTVQRXQzK3li?= =?utf-8?B?U0dmd3lwNFhhMDZqM1VDWG5iMXBxWWg4TGF0MnFFTmJXTDd3QmVtb0JpVDdQ?= =?utf-8?B?MHJ1MVJBSncyaGVtMEJwaXFGdlgvQVUyeFNkaUUwZDRaM3lNVzdxMC9XdllT?= =?utf-8?B?bDZkeGxoOWpNdFBneWxFNDlaVFVWTnRPWTdzdDRzeEh3TFBtcW42RjY3TFlw?= =?utf-8?B?Vjdld1BLZlZsZjNDcWlRVjdMWi9LVWpZR1RZeXk3ZnM0ck0raGF6TzJhVVQ1?= =?utf-8?B?RDIrVmVtNk1RTFROZUtRZVlWQnJveVBBZkxubmFkM09uYkZSekJEVkZ4THI4?= =?utf-8?B?eXNpMWJnMlp3ZkswR3R0cVZ2K3NwS0RuRTlTRHcyR1djT3p2UzdYZDA4eEZa?= =?utf-8?B?YlB6U1dsK3kwbzk4VjdpVjI3OCtZS29iK3FDTVNWbFBUSzZ3djZIRnFlK09h?= =?utf-8?B?YiszeUNuQmFacHB5ejd4eDJCYW03ZXZvdzlzWEZyWnhIR1RuNlZNbGlzekZk?= =?utf-8?B?RVJSbkErTnMvQUFuZzd2aDBhQXdKVmZNcjMvandJaEpmdFlQamd1RDZKSDlW?= =?utf-8?B?aW1nUTVFNm5nZVROb1pndkZNbFk0MENiazBCUUFNZCs5ckVidjc4RE9aL3A0?= =?utf-8?B?THN2aFI0RUE4bW5GaG91TmExVElRPT0=?= X-Forefront-Antispam-Report: CIP:198.47.21.195;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:flwvzet201.ext.ti.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(376014)(36860700013)(82310400026)(34020700016)(1800799024)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2026 13:11:17.2860 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ade1d57-82ee-4bb7-e841-08de5500bbe3 X-MS-Exchange-CrossTenant-Id: e5b49634-450b-4709-8abb-1e2b19b982b7 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=e5b49634-450b-4709-8abb-1e2b19b982b7;Ip=[198.47.21.195];Helo=[flwvzet201.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000A347.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6565 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. Previously this binding enforced setting the interrupt type globally via the mandatory "ti,intr-trigger-type" property with values 1 (edge) or 4 (level), meaning all interrupt sources for that router instance had to be homogeneous -- All edge or all level type interrupts. Add a third enum value 15 (IRQ_TYPE_DEFAULT) to indicate the router acts as a passthrough. When set to 15, #interrupt-cells becomes 2 to allow each interrupt source to specify its trigger type per-line. Signed-off-by: Aniket Limaye --- .../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 From nobody Mon Feb 9 02:38:06 2026 Received: from BL2PR02CU003.outbound.protection.outlook.com (mail-eastusazon11011008.outbound.protection.outlook.com [52.101.52.8]) (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 38B93230274; Fri, 16 Jan 2026 13:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.52.8 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768569087; cv=fail; b=TBCYag19LMoB1/RYh7rbCOQu8CbLfkRXv5LnsNGuK84y9g229WQ/MiGuOFVzuqXcUU8WQkusIJ0ADL/6xuq+oFe/vgjk2BnJfD1HMpx57swGcSfVG/WCzCKQ4x/QJ5Q91y1lWoBzobothRWM6uXx5cUQXXi6y0903uJ9LoSJIKw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768569087; c=relaxed/simple; bh=tOUR7mgqTzdieorsXwqZa4x3GYvmgWvu7uGuC8CwAPg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=BI6Jn0pbtHx3uxZOfLpob1N0rPRaETVAYjPP1K6lFG7QTpGWax+0XpEqaBKOBeFzGZEjQ2scXuTsQspbdzH2NoxBMQXlxKvu74o3F36JiNgrACi1HY78OrBZvb+q5Bdyds+glm7DQzMFhkrv4Vu0R05Aa4cI09KH4jsN24PMDCc= 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=drWml+Qv; arc=fail smtp.client-ip=52.101.52.8 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="drWml+Qv" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e/sH3gqKWeen7cBvkYc5DHg41clZ5lNPL9n6qrrBSpTZ2LTnH3IlePwa8yu4Ld69RFmDjQEejZE/JF16S61kzAKqNNL638p3yy6+hvcmaSbOtVIn+35LAANEjpDzWrfgJ8NIVeRRzveqQh6VRTfxX8Q42xYci9Z5fSGy6UohovAuZXebRPp65Vf9nBC7MNuc+GjWCdUZ4owJquT8cThT4gjNIWd1X6KPHNpzm17bWREF2B7OY49XpoQmtgByU8SWpvaLeBBEjt1S8StxS6sWB6sAstArqXxV4bPPjNTj/ffLe8DZBvlq3f6EYqYl5kShAEx6yzzDzo5vPcFuuhIFSA== 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=0XXUdDl56XWwHf025a/0Qu9VsfN6W/tz6PoWHWTL3u4=; b=seIxclNUW+tz2e87a53c/SSY3mjfROWOL8dFyr8XFqYlvUYFjCRU2OoGM7NSZL3GZHkxrxb2/unNFDrBOkr6M7L8bC1A9CnQOvcYaOEr8C7Y6Wyvn6RRp+EgBhE+IkTrYPN8QmaRkKWpI4H9wbk95JGrJXREjAMew79erP4NO7D090818XI3DHfeqZ5vohxCfW7W2RwaOo6h1SSxTG1rf1UxdtA66r00eBPjLr3JrMy8q0fPQ97uXcIADm2rYd8ho5aMfmhVwshxy+1ym6JOeXsVM6ykcY+W4L9PTldywuGpkep4p0gmK+ObV4NTBIt/rgX6bhvOVgdqCodjeGBGVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 198.47.23.194) smtp.rcpttodomain=vger.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=0XXUdDl56XWwHf025a/0Qu9VsfN6W/tz6PoWHWTL3u4=; b=drWml+QvdRjmjY5Pz3pIOQL2Yho5iPmbzMcXZTC83wiyR9JX+tWy5PafK745lQ8uL4SvIpuNpJ0IAqAz8YjN17B48V/x9Adz6uvUZGUkkyNFAkCzskY54WI9KmJdi4Vh9aFsPORvOYtL2HbTmzH7C5fb6ivDq1Mf+Pgg1BvOVj0= Received: from DS7PR05CA0042.namprd05.prod.outlook.com (2603:10b6:8:2f::29) by CO6PR10MB5555.namprd10.prod.outlook.com (2603:10b6:303:142::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9520.5; Fri, 16 Jan 2026 13:11:18 +0000 Received: from DS1PEPF00017090.namprd03.prod.outlook.com (2603:10b6:8:2f:cafe::6) by DS7PR05CA0042.outlook.office365.com (2603:10b6:8:2f::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9542.2 via Frontend Transport; Fri, 16 Jan 2026 13:11:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 198.47.23.194) 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.194 as permitted sender) receiver=protection.outlook.com; client-ip=198.47.23.194; helo=lewvzet200.ext.ti.com; pr=C Received: from lewvzet200.ext.ti.com (198.47.23.194) by DS1PEPF00017090.mail.protection.outlook.com (10.167.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9542.4 via Frontend Transport; Fri, 16 Jan 2026 13:11:18 +0000 Received: from DLEE201.ent.ti.com (157.170.170.76) by lewvzet200.ext.ti.com (10.4.14.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 16 Jan 2026 07:11:18 -0600 Received: from DLEE201.ent.ti.com (157.170.170.76) by DLEE201.ent.ti.com (157.170.170.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 16 Jan 2026 07:11:17 -0600 Received: from lelvem-mr06.itg.ti.com (10.180.75.8) by DLEE201.ent.ti.com (157.170.170.76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Fri, 16 Jan 2026 07:11:17 -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 60GDB0HH3181044; Fri, 16 Jan 2026 07:11:12 -0600 From: Aniket Limaye Date: Fri, 16 Jan 2026 18:38:42 +0530 Subject: [PATCH 2/2] drivers: irqchip: irq-ti-sci-intr: Allow parsing interrupt-types per-line 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: <20260116-ul-driver-i2c-j722s-v1-2-c28e8ba38a9e@ti.com> References: <20260116-ul-driver-i2c-j722s-v1-0-c28e8ba38a9e@ti.com> In-Reply-To: <20260116-ul-driver-i2c-j722s-v1-0-c28e8ba38a9e@ti.com> To: Vignesh Raghavendra , , Nishanth Menon , Tero Kristo , Santosh Shilimkar , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lokesh Vutla 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: DS1PEPF00017090:EE_|CO6PR10MB5555:EE_ X-MS-Office365-Filtering-Correlation-Id: fe2582da-7537-4f03-bb0f-08de5500bcb8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|34020700016|36860700013|1800799024|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RkgzcUhadWM5YW1MdENsL1h3L3Z6R3lVL0ZuZElzTXNYdmNsSmxZRE1Id3Mv?= =?utf-8?B?dDRXY2l4czVjdGxDREVWTURlWUJiV05mc3lOcGdnQkVFSU95TE1vVWpiWGJT?= =?utf-8?B?VXE5cHNZdGhaMEpuKy9YTWhDdlRUeHRja1cxUktUU09LOVd1Y3JWcW1SWmtO?= =?utf-8?B?a1A0Sld4Z1N6UzlTV1RzcnRrQnNsVTBjR2NsN0pQMDVrVDBRWHVDVFRvRHA3?= =?utf-8?B?SlNLV21pd1QvT0Uwcjl0dXgxbmUxQVpvTTVDY3psVE5GekZBMGJ2SlJlVkZB?= =?utf-8?B?dlhWWlBOZjRSdFd5ZUF1anpiSHBJYU0zSWpMdlhBYVNCZ1IyVm5kRlhvYWhm?= =?utf-8?B?UGZram9Dd1dxbTFTQ2VOQWUySGxqcEJFb2IyTzNtdGhMbU91Zno5MXB0MHJv?= =?utf-8?B?b2xvT3VjVlRkM3dWeWhPTXBkUU50eDRobzZXZUNIMDF1NyszY2RJR2ZrNXpV?= =?utf-8?B?TGZIc0t2eEIzMENaWEZ0M0QxM1dzbE1Fdi9MYkE1d1VvMGh4cWowSTVyamJw?= =?utf-8?B?RW9WRXpXbmZVVVQ0a05URzR0eEtRVXdCeDR1RzA2aXoxSXN4N0JKa2RrR04v?= =?utf-8?B?MmRyL3llanVWUWF5RzFWSENKVE5UNDVwK2VrL2ZuSjZLU1NZeFRYSy9HL1c4?= =?utf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JwMTY4?= =?utf-8?B?U0tEV3JGeFZFNkhjV2xFaEYzTlAzNUJYUDBjOERvTTlQV1VCRDFvVXdyUEEx?= =?utf-8?B?ZDEvRHFPMFpvZEE4dGM2Y2wvOHExcGMxNFVuYVdPcXNxZG8rcFJGbXVETm9H?= =?utf-8?B?MzRoQmNDb0JsYmpiL2VVSmdjSDdpUm82NzZ5bTl4V2VXcnB6SVpKMnM5cDhk?= =?utf-8?B?VHlnMDBZUlkvRlc2S1hCWGY1OENsby9xeUpzcGxCbGF0UmpXQ3dHQWgrSGFM?= =?utf-8?B?SjMySjE3ZTlxWXlqQVJlNmtQbnJhRmJhSjFtK0FxazB5WU9HMXpRRjRqdkFn?= =?utf-8?B?Tmk1UHpjMmI3Zkd1NEp0NjZiQTJ6QVlHM2NTWTVScHIyMjVhU05OMWVyOFYy?= =?utf-8?B?YWJCajJXOHNkNnprdDk0TnZSR08wTVNac1hackVFYkQwT0M3elpnRmxhYmxD?= =?utf-8?B?b0hadzJvL1pQL0laK1plNm8xMHhxbm41dDc0OVpmZy8xSC90a09vZFp5NU9Q?= =?utf-8?B?WVkwVFc5ZmxpS1NFbjZPRUVDaUZ1TllkTTRDZWZtby9FbzUrSWpqVTVzMkcx?= =?utf-8?B?YzdwL3lvK1lXMC9YbjBNMEJZWnRQTnVxOGM1emVwelA4SDhrME5DNTdrNFlS?= =?utf-8?B?b0Z0aTZENitsWitsaWlkSExzeVFTK2k1UmdpaFN6cUxydWhRK1BYTFM4UzBZ?= =?utf-8?B?dE9TLzVtU0lSTXM5ZEhjaFB1dUFBPT0=?= X-Forefront-Antispam-Report: CIP:198.47.23.194;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:lewvzet200.ext.ti.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(34020700016)(36860700013)(1800799024)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: ti.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2026 13:11:18.6860 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe2582da-7537-4f03-bb0f-08de5500bcb8 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.194];Helo=[lewvzet200.ext.ti.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017090.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5555 Some INTR router instances act as simple passthroughs that preserve the source interrupt type unchanged at the output line, rather than converting all interrupts to a fixed type. When interrupt sources are not homogeneous with respect to trigger type, the driver needs to read each source's interrupt type from DT and pass it unchanged to its interrupt parent Previously, the interrupt type for all output lines was set globally using the "ti,intr-trigger-type" property (values 1 or 4). Add support for "ti,intr-trigger-type" =3D 15 (IRQ_TYPE_DEFAULT) to indicate passthrough mode: - When set to 15: Parse interrupt type per-line from DT - When set to 1 or 4: Use global setting (maintains backward compatibility) Signed-off-by: Aniket Limaye --- drivers/irqchip/irq-ti-sci-intr.c | 50 ++++++++++++++++++++++++++++++-----= ---- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/drivers/irqchip/irq-ti-sci-intr.c b/drivers/irqchip/irq-ti-sci= -intr.c index 354613e74ad0..56028a33a41e 100644 --- a/drivers/irqchip/irq-ti-sci-intr.c +++ b/drivers/irqchip/irq-ti-sci-intr.c @@ -61,11 +61,22 @@ static int ti_sci_intr_irq_domain_translate(struct irq_= domain *domain, { struct ti_sci_intr_irq_domain *intr =3D domain->host_data; =20 - if (fwspec->param_count !=3D 1) - return -EINVAL; =20 - *hwirq =3D fwspec->param[0]; - *type =3D intr->type; + if (intr->type !=3D IRQ_TYPE_DEFAULT) { + /* Global interrupt-type */ + if (fwspec->param_count !=3D 1) + return -EINVAL; + + *hwirq =3D fwspec->param[0]; + *type =3D intr->type; + } else { + /* Per-Line interrupt-type */ + if (fwspec->param_count !=3D 2) + return -EINVAL; + + *hwirq =3D fwspec->param[0]; + *type =3D fwspec->param[1]; + } =20 return 0; } @@ -128,11 +139,12 @@ static void ti_sci_intr_irq_domain_free(struct irq_do= main *domain, * @domain: Pointer to the interrupt router IRQ domain * @virq: Corresponding Linux virtual IRQ number * @hwirq: Corresponding hwirq for the IRQ within this IRQ domain + * @hwirq_type: Corresponding hwirq trigger type for the IRQ within this I= RQ domain * * Returns intr output irq if all went well else appropriate error pointer. */ static int ti_sci_intr_alloc_parent_irq(struct irq_domain *domain, - unsigned int virq, u32 hwirq) + unsigned int virq, u32 hwirq, u32 hwirq_type) { struct ti_sci_intr_irq_domain *intr =3D domain->host_data; struct device_node *parent_node; @@ -156,11 +168,27 @@ static int ti_sci_intr_alloc_parent_irq(struct irq_do= main *domain, fwspec.param_count =3D 3; fwspec.param[0] =3D 0; /* SPI */ fwspec.param[1] =3D p_hwirq - 32; /* SPI offset */ - fwspec.param[2] =3D intr->type; + fwspec.param[2] =3D hwirq_type; } else { /* Parent is Interrupt Router */ - fwspec.param_count =3D 1; - fwspec.param[0] =3D p_hwirq; + u32 parent_trigger_type; + + err =3D of_property_read_u32(parent_node, + "ti,intr-trigger-type", + &parent_trigger_type); + if (err) + goto err_irqs; + + if (parent_trigger_type !=3D IRQ_TYPE_DEFAULT) { + /* Parent has global trigger type */ + fwspec.param_count =3D 1; + fwspec.param[0] =3D p_hwirq; + } else { + /* Parent supports per-line trigger types */ + fwspec.param_count =3D 2; + fwspec.param[0] =3D p_hwirq; + fwspec.param[1] =3D hwirq_type; + } } =20 err =3D irq_domain_alloc_irqs_parent(domain, virq, 1, &fwspec); @@ -197,14 +225,14 @@ static int ti_sci_intr_irq_domain_alloc(struct irq_do= main *domain, { struct irq_fwspec *fwspec =3D data; unsigned long hwirq; - unsigned int flags; + unsigned int hwirq_type; int err, out_irq; =20 - err =3D ti_sci_intr_irq_domain_translate(domain, fwspec, &hwirq, &flags); + err =3D ti_sci_intr_irq_domain_translate(domain, fwspec, &hwirq, &hwirq_t= ype); if (err) return err; =20 - out_irq =3D ti_sci_intr_alloc_parent_irq(domain, virq, hwirq); + out_irq =3D ti_sci_intr_alloc_parent_irq(domain, virq, hwirq, hwirq_type); if (out_irq < 0) return out_irq; =20 --=20 2.52.0