From nobody Thu Apr 2 23:57:14 2026 Received: from fout-b7-smtp.messagingengine.com (fout-b7-smtp.messagingengine.com [202.12.124.150]) (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 51CE9378D70; Mon, 23 Feb 2026 20:43:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.150 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771879389; cv=none; b=GJPWqBd+YGlkXxiAzyrRZGIYfL6GCp2COYwNQIFPySx8G/EFyqsnOxn9p/bHvqUNm6/gCHN6ohbhQ6qrnb481zwHs2z5XhmE3Ca6lCL9TF6sTTxtr6+wXZIIPCkPBnARmvBGz6oZer/XNV4iuJD0MXgMT74N653HPrPerQVFGGU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771879389; c=relaxed/simple; bh=VPp51MAprq4SHwLYa4jR2tbamWpYsJBUnZwXCjFFHyI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZIb+WoUSiOqsVIUfe9OpI/dKUPfU3XIh5+/F/RaaIqJYK3Ggu8MMvcpB6cbYXopGl++t12h2VDaNY1kb0cwwrGEoMKEcYsrPGNav+BPogsNT26CSc+2LkHqGVDhWyvmjhngx4mghn9zGR+mb3vsi5YT9XUHUXa32EqKceV2/QFg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net; spf=pass smtp.mailfrom=jannau.net; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b=uV/BhH9o; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=YtQOho/S; arc=none smtp.client-ip=202.12.124.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jannau.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b="uV/BhH9o"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="YtQOho/S" Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 2DC4B1D00010; Mon, 23 Feb 2026 15:43:07 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 23 Feb 2026 15:43:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jannau.net; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1771879387; x=1771965787; bh=2t5MYacBIJ0oSRfavfmF+oEY6KVP3xbJMjc0+IDtQiw=; b= uV/BhH9ogWryPEni6gAnTAOISlDntYY8JDMttaqznKVHQKXJWsl+l35+lTA2PegL uzHjKRCxj26dpNelCDyf6S0MIDtU6esJkqHQ/xIWRlscF5E3UOEk2y4iMTik6eso 2cJ4Wg6QbewzJx+cXiVUSP2czzOS+Gv8L8VqgqKO0EV6KmZ7YjIUoum/xXnapoSo JpRCsxvgvZq6UwXZqghEZpKZOFAZljy6Hf+QoHkUiUTpYN712BOuKDi297A+TZXL O3IFHxc7sdWdvyOGSgPJG/ISwtp5FchONhd0o+4rAk/OtMX3IorSBJF/R+KBC3Ge 2kjO/poyNpptBU0jbHhj8A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1771879387; x= 1771965787; bh=2t5MYacBIJ0oSRfavfmF+oEY6KVP3xbJMjc0+IDtQiw=; b=Y tQOho/Sqwc8yPbTCt38kF/twb6zfmUCHfutAQ02EbUnBEr+cqPBrjdyLJyptstIi 7lWPOTPBRuU9822C4qEoUt19aAnMKcQRjvWm3521CoTnmUrdZ3db2COSDY8gflp4 6jznMiLl5wn61+XcNEMcxeS4ubZaaCIDeWHRT9HdKKCU0frcExcusCqB9DKotQqD AaJ2gKf0XQSynvW1o/nIeuUd6BX1Fcx1FGxDBtI1xOqgSxw1qP/u4bcq/aZDqUHR KFhXWAZhAyrmflfjj/HbcFzBGV4+oRiPCrTXW2eoIGd9v1fV20KwNTYe0RZA0w3a xH1N+CIZw/nhMMbFMw9pA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvfeekvdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflrghnnhgv ucfirhhunhgruhcuoehjsehjrghnnhgruhdrnhgvtheqnecuggftrfgrthhtvghrnhepve ekgeduheegtdekvdeifeegkeekledujeelkeevhedvvdejtdeuveekffffheelnecuffho mhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehjsehjrghnnhgruhdrnhgvthdpnhgspghrtghp thhtohepuddupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehrohgshheskhgvrh hnvghlrdhorhhgpdhrtghpthhtohepshhvvghnsehkvghrnhgvlhdrohhrghdprhgtphht thhopehtghhlgieskhgvrhhnvghlrdhorhhgpdhrtghpthhtoheptghonhhorhdoughtse hkvghrnhgvlhdrohhrghdprhgtphhtthhopehnvggrlhesghhomhhprgdruggvvhdprhgt phhtthhopegrshgrhhhisehlihhsthhsrdhlihhnuhigrdguvghvpdhrtghpthhtoheplh hinhhugidqrghrmhdqkhgvrhhnvghlsehlihhsthhsrdhinhhfrhgruggvrggurdhorhhg pdhrtghpthhtohepjhesjhgrnhhnrghurdhnvghtpdhrtghpthhtoheplhhinhhugidqkh gvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg X-ME-Proxy: Feedback-ID: i47b949f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Feb 2026 15:43:06 -0500 (EST) From: Janne Grunau Date: Mon, 23 Feb 2026 21:42:46 +0100 Subject: [PATCH v3 1/2] dt-bindings: interrupt-controller: apple,aic2: Add AICv3 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: <20260223-irq-apple-aic3-v3-1-2b7328076b8d@jannau.net> References: <20260223-irq-apple-aic3-v3-0-2b7328076b8d@jannau.net> In-Reply-To: <20260223-irq-apple-aic3-v3-0-2b7328076b8d@jannau.net> To: Sven Peter , Neal Gompa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Janne Grunau X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2843; i=j@jannau.net; s=yk2025; h=from:subject:message-id; bh=VPp51MAprq4SHwLYa4jR2tbamWpYsJBUnZwXCjFFHyI=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhsw5u69cLi94t/Okw9sWz58FOf5V068VdFUclOaoEpvet sxXaf2HjlIWBjEuBlkxRZYk7ZcdDKtrFGNqH4TBzGFlAhnCwMUpABNxPsvIcJ55QThThZWcQ/S5 03V/l3dN6VaMEQ78tCMvT1P2o3uvN8MfDq7QydPPXk21WtU/K/nW9qwJGjukCjma58jdj+Pov3O BCQA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 AIC version 3 as found on the Apple M3 (t8122) is very similar to AICv2 in its base functionality. It can use the same device tree bindings as AICv2 so add it to the AICv2 bindings. This interrupt controller is used on all Apple SoCs starting with M3 up to at least M5. The only apparent difference is the increased IRQ config offset. Apple's device tree codes this new offset as property of the "aic" node but the value stayed constant for all SoCs with "aic,3". Since the SoC specific compatible "apple,t8122-aic3" will be used in the driver this offset can remain a driver implementation detail. Signed-off-by: Janne Grunau Reviewed-by: Rob Herring (Arm) --- .../bindings/interrupt-controller/apple,aic2.yaml | 30 +++++++++++++++---= ---- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/apple,a= ic2.yaml b/Documentation/devicetree/bindings/interrupt-controller/apple,aic= 2.yaml index ee5a0dfff437816056bda0de5523bf38be4f49ba..d0d9a90e96e7ba899bd7c73ca76= 22939e0bd3451 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/apple,aic2.yaml @@ -4,10 +4,10 @@ $id: http://devicetree.org/schemas/interrupt-controller/apple,aic2.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: Apple Interrupt Controller 2 +title: Apple Interrupt Controller 2 and 3 =20 maintainers: - - Hector Martin + - Janne Grunau =20 description: | The Apple Interrupt Controller 2 is a simple interrupt controller presen= t on @@ -28,14 +28,24 @@ description: | which do not go through a discrete interrupt controller. It also handles FIQ-based Fast IPIs. =20 + The Apple Interrupt Controller 3 is in its base functionality very simil= ar to + the Apple Interrupt Controller 2 and uses the same device tree bindings.= It is + found on Apple ARM SoCs platforms starting with t8122 (M3). + properties: compatible: - items: - - enum: - - apple,t8112-aic - - apple,t6000-aic - - apple,t6020-aic - - const: apple,aic2 + oneOf: + - items: + - enum: + - apple,t6000-aic + - apple,t6020-aic + - apple,t8112-aic + - const: apple,aic2 + - items: + - enum: + - apple,t6030-aic3 + - const: apple,t8122-aic3 + - const: apple,t8122-aic3 =20 interrupt-controller: true =20 @@ -117,7 +127,9 @@ allOf: properties: compatible: contains: - const: apple,t8112-aic + enum: + - apple,t8112-aic + - apple,t8122-aic3 then: properties: '#interrupt-cells': --=20 2.53.0 From nobody Thu Apr 2 23:57:14 2026 Received: from fhigh-b4-smtp.messagingengine.com (fhigh-b4-smtp.messagingengine.com [202.12.124.155]) (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 7F90E378D84; Mon, 23 Feb 2026 20:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.155 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771879391; cv=none; b=pCpcXe4en9RFTUKkdYlJ2nN4IBCPuvOje0WZA+UCqJVu+zjhZlK58Cyk6dZkBMCcSIGCkMsoiNoE3fIzqtXw4tItTVVhoJC7c2O4aA+4OKvqwz7seybcOSn7BWRDzkImPzdZbgydtitxyWKN0FvvxM5UmnrRXx7vUZSdCzu970I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771879391; c=relaxed/simple; bh=aKoo4YBq/Uqj0VSrCmwqEjNlbhSMYNVcm3Wkdx9ZwzM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z1MkdU+Y5XPx9xzyVqtynx7V4pEVpy03rm5Yu2bgbknp02mtz2uIH2l4frCnRjLy1cX4AEjdbIHRE8aoCgRjqP29fp2S/LqJqkkc9Cyz6ZS6fMP1MX80kc6yRIhNJl/Fk7tmkTN38pNzdDOBA3UF8K9QUOZo38+E8W8Ypuk37Kg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net; spf=pass smtp.mailfrom=jannau.net; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b=HanKCE7Z; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=V4tYoExd; arc=none smtp.client-ip=202.12.124.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jannau.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b="HanKCE7Z"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="V4tYoExd" Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfhigh.stl.internal (Postfix) with ESMTP id AA5A37A011F; Mon, 23 Feb 2026 15:43:09 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Mon, 23 Feb 2026 15:43:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jannau.net; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1771879389; x=1771965789; bh=K/ry9TdyV+ze9XDoqNcLR1E/YucQKPR47HThywrceSA=; b= HanKCE7ZiuN3LM1gc9gWZECZhnHBFT8iP/z98aRYy/0cscslewa1f09LMHZg+QNT n28LFsTFqDSKXVY9wi8i8Dqnuf6woe8fi8PVD5H5PqcrtAD25XCfUuUmrqjN4jSX ZI42LALffU27k1UZduOpx4V89m34kXKmoYbK08m0g4mrCb3HH0u3o2c8uLCQBfYE gP6F97l6vtDmLqcDw2cjGEIIiSVY316fCJ7GyaizeKlQghVNlERF/MR4kMYFw1Au tT5pK/m67W1LfMhN4j4IoJ0lzISiMxAyxBG6xBjsTe3HqFYz2rXbSEddpC7OrTf/ m0FB5VffzhMGTTS1/f5Xaw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1771879389; x= 1771965789; bh=K/ry9TdyV+ze9XDoqNcLR1E/YucQKPR47HThywrceSA=; b=V 4tYoExdzcDQdJAi5vDsXV+nTqHvK7YMRr+DFHbnyourwG5GahQVUnMWPUANGx+m6 hTcmXV32n+0gmaqsvCZNnDycwoNrIV9UDrKwAr+dlNZMb1LfJxKmyYgVFIkVvqWY bAP9v7WX2vfzikud1irP/JC3GZJwmsVPk7Eea2/FkVrTNRP7yqVBtWbXGYVtZb/Y xgqPMC5RNMDjTTP6e87btB04S1kA5eaxb8ucLh9ELUfIZJQHoFo9OHoERo2yU5Z6 yZWhjDdCJF2h57iX8bi52Wq9Kuf1kyEIMnMRM4eqArGTV4kvihmuE4ydp0LGrv2W yEruYVb5N6Sie5Sah4BNQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvfeekvdefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflrghnnhgv ucfirhhunhgruhcuoehjsehjrghnnhgruhdrnhgvtheqnecuggftrfgrthhtvghrnhepfe ehheeileduffehteeihfdvtdelffdutdeludduiedutedvfeffheekhefgtedtnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhesjhgrnhhnrg hurdhnvghtpdhnsggprhgtphhtthhopeduuddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtoheprhhosghhsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehsvhgvnheskhgvrh hnvghlrdhorhhgpdhrtghpthhtohepthhglhigsehkvghrnhgvlhdrohhrghdprhgtphht thhopegtohhnohhrodgutheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepnhgvrghlse hgohhmphgrrdguvghvpdhrtghpthhtoheprghsrghhiheslhhishhtshdrlhhinhhugidr uggvvhdprhgtphhtthhopehlihhnuhigqdgrrhhmqdhkvghrnhgvlheslhhishhtshdrih hnfhhrrgguvggrugdrohhrghdprhgtphhtthhopehjsehjrghnnhgruhdrnhgvthdprhgt phhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-ME-Proxy: Feedback-ID: i47b949f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Feb 2026 15:43:08 -0500 (EST) From: Janne Grunau Date: Mon, 23 Feb 2026 21:42:47 +0100 Subject: [PATCH v3 2/2] irqchip/apple-aic: Add support for "apple,t8122-aic3" 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: <20260223-irq-apple-aic3-v3-2-2b7328076b8d@jannau.net> References: <20260223-irq-apple-aic3-v3-0-2b7328076b8d@jannau.net> In-Reply-To: <20260223-irq-apple-aic3-v3-0-2b7328076b8d@jannau.net> To: Sven Peter , Neal Gompa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Janne Grunau X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3142; i=j@jannau.net; s=yk2025; h=from:subject:message-id; bh=aKoo4YBq/Uqj0VSrCmwqEjNlbhSMYNVcm3Wkdx9ZwzM=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhsw5u6++u/HcT86ss0Xtt7mB6l6/l/qxTXV8qxilNGckK 3W4/nvSUcrCIMbFICumyJKk/bKDYXWNYkztgzCYOaxMIEMYuDgFYCLimgz/89527d7cOOOUXAX3 599Lqhs2SX3dZNM1t6CLb6/y7k+FUYwMa75tKih7urXlSvPrjY2sWlMbRDtSC35eP/jd59/vjk8 RPAA= X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 Introduce support for the new AICv3 hardware block in t8122 and t603x SoCs. AICv3 is similar to AICv2 but has an increased IRQ config offset. These MMIO offsets are coded as properties of the "aic,3" node in Apple's device tree. The actual offsets are the same for all SoCs starting from M3 through at least M5. So do not bother to follow suit but use AICv3 specific defines in the driver. The compatible string is SoC specific so future SoCs with AICv3 and different offsets would just use their own compatible string as base and add their new offsets. Reviewed-by: Sven Peter Signed-off-by: Janne Grunau --- drivers/irqchip/irq-apple-aic.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-apple-aic.c b/drivers/irqchip/irq-apple-ai= c.c index 2b24c82bb0df5b8e81be97a97d6c87e220f9fc06..4a3141d9f91416abe90ee37cb3f= 3d8ecd0c3673e 100644 --- a/drivers/irqchip/irq-apple-aic.c +++ b/drivers/irqchip/irq-apple-aic.c @@ -134,8 +134,12 @@ =20 #define AIC2_IRQ_CFG 0x2000 =20 +/* AIC v3 registers (MMIO) */ +#define AIC3_IRQ_CFG 0x10000 + /* * AIC2 registers are laid out like this, starting at AIC2_IRQ_CFG: + * AIC3 registers use the same layout but start at AIC3_IRQ_CFG: * * Repeat for each die: * IRQ_CFG: u32 * MAX_IRQS @@ -293,6 +297,15 @@ static const struct aic_info aic2_info __initconst =3D= { .local_fast_ipi =3D true, }; =20 +static const struct aic_info aic3_info __initconst =3D { + .version =3D 3, + + .irq_cfg =3D AIC3_IRQ_CFG, + + .fast_ipi =3D true, + .local_fast_ipi =3D true, +}; + static const struct of_device_id aic_info_match[] =3D { { .compatible =3D "apple,t8103-aic", @@ -310,6 +323,10 @@ static const struct of_device_id aic_info_match[] =3D { .compatible =3D "apple,aic2", .data =3D &aic2_info, }, + { + .compatible =3D "apple,t8122-aic3", + .data =3D &aic3_info, + }, {} }; =20 @@ -620,7 +637,7 @@ static int aic_irq_domain_map(struct irq_domain *id, un= signed int irq, u32 type =3D FIELD_GET(AIC_EVENT_TYPE, hw); struct irq_chip *chip =3D &aic_chip; =20 - if (ic->info.version =3D=3D 2) + if (ic->info.version =3D=3D 2 || ic->info.version =3D=3D 3) chip =3D &aic2_chip; =20 if (type =3D=3D AIC_EVENT_TYPE_IRQ) { @@ -991,7 +1008,7 @@ static int __init aic_of_ic_init(struct device_node *n= ode, struct device_node *p =20 break; } - case 2: { + case 2 ... 3: { u32 info1, info3; =20 info1 =3D aic_ic_read(irqc, AIC2_INFO1); @@ -1065,7 +1082,7 @@ static int __init aic_of_ic_init(struct device_node *= node, struct device_node *p off +=3D irqc->info.die_stride; } =20 - if (irqc->info.version =3D=3D 2) { + if (irqc->info.version =3D=3D 2 || irqc->info.version =3D=3D 3) { u32 config =3D aic_ic_read(irqc, AIC2_CONFIG); =20 config |=3D AIC2_CONFIG_ENABLE; @@ -1116,3 +1133,4 @@ static int __init aic_of_ic_init(struct device_node *= node, struct device_node *p =20 IRQCHIP_DECLARE(apple_aic, "apple,aic", aic_of_ic_init); IRQCHIP_DECLARE(apple_aic2, "apple,aic2", aic_of_ic_init); +IRQCHIP_DECLARE(apple_aic3, "apple,t8122-aic3", aic_of_ic_init); --=20 2.53.0