From nobody Fri Sep 25 20:47:58 2026 Received: from sender6-op-o15.zoho.com (sender6-op-o15.zoho.com [165.173.180.15]) (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 A0D3D57D20E; Tue, 8 Sep 2026 16:30:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=165.173.180.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885003; cv=pass; b=CwVSYx1LxloHD0TqqQveDpQQ+Gqbnu46YpdAbxOm6UWZ9U2Fcv6itjX0cVJfg1u3sa6LnldjDJXFYooptYehthtBTjJGzR5pa2UZpGp/sQVC0UL1GYozNqZAWT8jKpzWch+ZmS+osaHjuDsOpbpW9pszDdxCzXrz90PHpLPVWxs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885003; c=relaxed/simple; bh=M8l1jtPedX+yuhMxau3fhuR9JMGYtb7SfMQHVR7q9mA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=k3q615WzWhFI/qbBsoB22qrIFJRgcn0+KgwCm4w4BMU9Fy+zj+TgQ348hPM4f9grWPPrwAMMbwvNI1Bx6h1uGVxHin1BHTkZBnpHFipNxDKLcISo3kX9YJKRS0bjAn6PvMFOxyvJffetO1DhgP0RQ4MvWrMop/avW1I+bh7+H/M= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b=JCiT73TT; arc=pass smtp.client-ip=165.173.180.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b="JCiT73TT" ARC-Seal: i=1; a=rsa-sha256; t=1788884967; cv=none; d=zohomail.com; s=zohoarc; b=YAojYMrh1mpl0OZTQQhhqUnrlVmeCG4cyIryNGIh9qW5JsV5rPljoOPSbkKhhJry/dmOdOMtGUEBiTvOOGGlPT02ChA7PHH5OhqPx2yu3ay99yjEQHXYICUFxY5spJmC5VQ+pWrAam8gjN6dEJiwW1MeDGF+q5bxeLYfP5Wqy2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788884967; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=DQoiqW8LFnr/Ma1L6Fqh+4FwBViHty6yiwi8fLlKFtA=; b=QhsOpGixvLTuY/6tpLK0BzF+qbLiRMRs9TunsHCK36l5V22zjDLCqPehSntR+TP+bNx+t9u3dTK0N/jChcP1hK/35lsx30aBWWXTshXtlRe/47dMnMT0WZ6j9qncdpNPI5gSpQrhZbDldQrXXTD7bj5IQLa6cG1xJAc24S0eLhs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788884967; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=DQoiqW8LFnr/Ma1L6Fqh+4FwBViHty6yiwi8fLlKFtA=; b=JCiT73TTj/Yf80fzBNIf10ZoDV29mLiYy9+zofsBc8UdMH3YpCbpiJSd15xUVyiS JKKfz/MOG70NiUQOHDa8ERLeo63Ht4OcoZKPi/3PTM2YvrUbaw/tv/NVb/TJ1kEOCCn GW6Ui2jcE7tgJIgoFCsGez4LdGGsmYx89u4RD6t0= Received: by mx.zohomail.com with SMTPS id 1788884965681902.6763923374004; Tue, 8 Sep 2026 09:29:25 -0700 (PDT) From: Junhui Liu Date: Wed, 09 Sep 2026 00:28:44 +0800 Subject: [PATCH v2 1/6] dt-bindings: timer: thead,c900-aclint-mtimer: Add SpacemiT K3 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: <20260909-k3-aclint-v2-1-7931e5bc86ad@pigmoral.tech> References: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> In-Reply-To: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Inochi Amaoto , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , Guodong Xu , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Conor Dooley , Junhui Liu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=848; i=junhui.liu@pigmoral.tech; h=from:subject:message-id; bh=M8l1jtPedX+yuhMxau3fhuR9JMGYtb7SfMQHVR7q9mA=; b=owGbwMvMwCWWvDb1VEXc8j+Mp9WSGLIWmB/s6nji5DQ7tTEuom3enfonLRstKlgDfoQG3Sq+Z feds0+3o5SFQYyLQVZMkYXLX/yftQ7PtyMCrfdh5rAygQxh4OIUgIkkCTIynGQwMHp/TPS4weqM uz0MAotPuy/qPBwqctBo3/0I8YkfOBj+mQZVLakrffbkQPnBG/87WDk0fLm8lyzXPhX/6iPjlc3 qXAA= X-Developer-Key: i=junhui.liu@pigmoral.tech; a=openpgp; fpr=15B30CC69C4BF0CC3C08F85A2A90CDC122DF37BF X-ZohoMailClient: External Add support for the SpacemiT K3 ACLINT MTIMER, which provides per-hart timer interrupts in Machine mode. Signed-off-by: Junhui Liu Acked-by: Conor Dooley --- Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtim= er.yaml b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.= yaml index cf7c82e980f6..082378b04d72 100644 --- a/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml +++ b/Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.yaml @@ -12,6 +12,7 @@ maintainers: properties: compatible: oneOf: + - const: spacemit,k3-aclint-mtimer - items: - enum: - sophgo,sg2042-aclint-mtimer --=20 2.55.0 From nobody Fri Sep 25 20:47:58 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (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 D99B157ED8C; Tue, 8 Sep 2026 16:30:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885006; cv=pass; b=WvIbQ7JznWHWkCoAVnww78BOIMx1WkmLneWc/DughiytXxK2jXZWUN1a4XxY4ayg99woIxm+DsdCi7OTZF/CAfkXAHF8tTY6mY0OpNHe8CBSvJIhe8Bvzyi4Ri12U+sKdeivJh8fXepcsuFXxhF9L/ZWGXCzYsAGtNUJqdXQVkw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885006; c=relaxed/simple; bh=guQvgJL+i2yMWqW+sqtT+I2+RFzEn3+LbYcQKlU5LLU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Vig/D3UOMMuefmsL0QF/3OYrkHrxFCTq2R3+hY8YlkEoekSX3xjLedJlHVoMnv5oIRYNvGVN1nSGQUMMXXollNJwUjrToDm+AHrRHVXdV9GwSDYz7HecEismnjwNfrAQWZSF/4/mVtcHD++77LSHjOLEq1dBK7tJQNEWSYhNPOw= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b=PG6ZZqKC; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b="PG6ZZqKC" ARC-Seal: i=1; a=rsa-sha256; t=1788884975; cv=none; d=zohomail.com; s=zohoarc; b=GvH11no9PiDQpCG3zF56uF8hvrr+hJBX6nG93Afn4/llRvrzbUGkCrcIwUgCPpq23vtXyg7OTpL0NhPs15l8CRvTMPlt5ROy2vHA3K4DanXu5viu8I3r36w9fwJWM8mu9SaX3K2MmBr0Ca167zynJWk8ULTQpIi0Px98LPrLjPE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788884975; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=7Ivy2h4Be2PMjQHoNZULax8EWFCNj6CIwvlu8TFP1mY=; b=IMbYAHn+i5CP3kKxDAw9yPdR1yrPhkC6cZC6SJkjh2CWgdYDTK1Gj7k3b4kar2LhvUf7R2VjBAFGi1O+OKwaZBXzjYdgPAx/5BAAxhiLQhgNprLVlsVi2LiwutZgAHUAPPUir1MrAiVpm8OHFN+zO0/E6+QYYYZ0AjLxpv/HVbM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788884975; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=7Ivy2h4Be2PMjQHoNZULax8EWFCNj6CIwvlu8TFP1mY=; b=PG6ZZqKCJNkkWBrRHLvYmwfzvP0PF6nXoHmCQ3C8R7FnB9EQofKJhTiUOLwIuWlc F2WKj74UPyoFI24+oYHoWPfW05iJmG0EXwEnkSMGPKuT671D7NVDUUdvCFOkNO4mppd faKUczY+swl7N1SHOcIvoL9TkePnUT5qUikwj/1k= Received: by mx.zohomail.com with SMTPS id 1788884973229662.9652143897716; Tue, 8 Sep 2026 09:29:33 -0700 (PDT) From: Junhui Liu Date: Wed, 09 Sep 2026 00:28:45 +0800 Subject: [PATCH v2 2/6] dt-bindings: interrupt-controller: thead,c900-aclint-mswi: Add SpacemiT K3 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: <20260909-k3-aclint-v2-2-7931e5bc86ad@pigmoral.tech> References: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> In-Reply-To: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Inochi Amaoto , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , Guodong Xu , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Conor Dooley , Junhui Liu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=934; i=junhui.liu@pigmoral.tech; h=from:subject:message-id; bh=guQvgJL+i2yMWqW+sqtT+I2+RFzEn3+LbYcQKlU5LLU=; b=owGbwMvMwCWWvDb1VEXc8j+Mp9WSGLIWmB9716fVqsxdH5a5fnFGge6TGWu+9CRkTqhYsVqVx SZvzcSIjlIWBjEuBlkxRRYuf/F/1jo8344ItN6HmcPKBDKEgYtTACayYCUjwyyxw086vXtq9vEK B6U+2D417lnusYueK45LGn8T2eTnvYfhvyvjFY5pkjmmWSWycVbBqhyPIyUWPK/W5+FJad7fP6O NEQA= X-Developer-Key: i=junhui.liu@pigmoral.tech; a=openpgp; fpr=15B30CC69C4BF0CC3C08F85A2A90CDC122DF37BF X-ZohoMailClient: External Add support for the SpacemiT K3 ACLINT MSWI, which provides per-hart software interrupts for inter-processor communication in Machine mode. Signed-off-by: Junhui Liu Acked-by: Conor Dooley --- .../devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml |= 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/thead,c= 900-aclint-mswi.yaml b/Documentation/devicetree/bindings/interrupt-controll= er/thead,c900-aclint-mswi.yaml index 62fd220e126e..d17f5613612c 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-acl= int-mswi.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-acl= int-mswi.yaml @@ -12,6 +12,7 @@ maintainers: properties: compatible: oneOf: + - const: spacemit,k3-aclint-mswi - items: - enum: - sophgo,sg2042-aclint-mswi --=20 2.55.0 From nobody Fri Sep 25 20:47:58 2026 Received: from sender6-op-o15.zoho.com (sender6-op-o15.zoho.com [165.173.180.15]) (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 435414A1E01; Tue, 8 Sep 2026 16:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=165.173.180.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885007; cv=pass; b=sLGJ0BJjFhFvOe+xCG4bb5ZdhXiQf6i11moHidJMBYoV8PkUT9Ood6x0AcF3g1VWavHHJnVzvpS0J8aJOMUgtM6JH3Di7Km8kppwUquTxtfW08Ev8cpWuH/QTtZoNIacN6QwQ2HLNVm4PccRaFlvYC4oRGtNMuJTs5Gmlo9+wjM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885007; c=relaxed/simple; bh=NLcr87f2JQThparZC7f+83o97uk7/2T64hwhuqbiP2c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Xv6nyFDTHO57WeanRDFNb9SHmZFf/bTbwuGkricGpK1uwNo+CKKL9vavtAsFAyABcw9Ssokhql7apDeBIU8n6xr+9DlNH+mWEicNb3ihvUHszU8Xxctji/eKPBcaTLG8Ci4vho33cZ2zbcb341tNzW4yCHthrLKpp6XUeWJQPDY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b=T4QqIRZL; arc=pass smtp.client-ip=165.173.180.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b="T4QqIRZL" ARC-Seal: i=1; a=rsa-sha256; t=1788884983; cv=none; d=zohomail.com; s=zohoarc; b=A9ILT2xT2EgU35yTIjB9mboQAwF3ssLCR7HjRSdbyoRpYzJzZejXC4F2EIKmhm9344nXKJOmo8VSLQ5p2cOkKcvYjM0N8Hv6NjwSSldApCOI/gNJFOXqXH1fjON9cC5qWLTgN8KAoP/mFetKeFNOeZOhFHiYRyzlo/uOb3ck/2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788884983; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=Wlcyi9R/T0YiHsT+iArPXhEOqRlQss3EnsJ+phzT+HQ=; b=My6WwhTY8RYGkXbaGkfWcodZbldac1xOBak7M08DdAkppocr51CndZ2qVtpVQme1HsL7KUrNteEu8O4FJSxGrG/O7o8zOkUKnAn0vTZzWqX8cPV2mTp1hzvb0HTEslSvmem7xHHzse6MTmqkXegdDNux8NuCWXppZqncjkFoMtU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788884983; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=Wlcyi9R/T0YiHsT+iArPXhEOqRlQss3EnsJ+phzT+HQ=; b=T4QqIRZL6MlX75+ZsvSv9VtorcaZXFWkangyGofVmbEWZ3vGH6TT/ovf2xP3T4O7 IkO+gaQl4D+njiIaPT4BDIlTF/N/gFqDHlwMEQdcpGjmEi86G5uu81wP8l1ykLHxwGh 1uHDH9wh6LDsmHNNjdI/el1STYXVJ5EBJauAygWM= Received: by mx.zohomail.com with SMTPS id 1788884982005663.2234173377049; Tue, 8 Sep 2026 09:29:42 -0700 (PDT) From: Junhui Liu Date: Wed, 09 Sep 2026 00:28:46 +0800 Subject: [PATCH v2 3/6] dt-bindings: interrupt-controller: thead,c900-aclint-sswi: Add SpacemiT K3 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: <20260909-k3-aclint-v2-3-7931e5bc86ad@pigmoral.tech> References: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> In-Reply-To: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Inochi Amaoto , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , Guodong Xu , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Conor Dooley , Junhui Liu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1201; i=junhui.liu@pigmoral.tech; h=from:subject:message-id; bh=NLcr87f2JQThparZC7f+83o97uk7/2T64hwhuqbiP2c=; b=owGbwMvMwCWWvDb1VEXc8j+Mp9WSGLIWmJ/c9uzcDXHvA81rl09VeKvUvSzxfql1QsD+f2aJO 4TjVrrEdpSyMIhxMciKKbJw+Yv/s9bh+XZEoPU+zBxWJpAhDFycAjARURGG//n375S+PZ37bG/C 9PCnHaZPzvkGJlk3/9y/yeJtw/LL+74y/A/ofC5VZ58So2FzZPHNc+dUSliOvjv30OT9mlfyx+M W7mMHAA== X-Developer-Key: i=junhui.liu@pigmoral.tech; a=openpgp; fpr=15B30CC69C4BF0CC3C08F85A2A90CDC122DF37BF X-ZohoMailClient: External Add support for the SpacemiT K3 ACLINT SSWI, which provides inter-processor interrupts in Supervisor mode without calling into Machine-mode firmware. Signed-off-by: Junhui Liu Acked-by: Conor Dooley --- .../bindings/interrupt-controller/thead,c900-aclint-sswi.yaml | 5 += ++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/thead,c= 900-aclint-sswi.yaml b/Documentation/devicetree/bindings/interrupt-controll= er/thead,c900-aclint-sswi.yaml index d02c6886283a..0b34ed5b4639 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/thead,c900-acl= int-sswi.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/thead,c900-acl= int-sswi.yaml @@ -24,12 +24,13 @@ description: properties: compatible: oneOf: + - enum: + - mips,p8700-aclint-sswi + - spacemit,k3-aclint-sswi - items: - enum: - sophgo,sg2044-aclint-sswi - const: thead,c900-aclint-sswi - - items: - - const: mips,p8700-aclint-sswi - items: - enum: - anlogic,dr1v90-aclint-sswi --=20 2.55.0 From nobody Fri Sep 25 20:47:58 2026 Received: from sender5-op-o15.zoho.com (sender5-op-o15.zoho.com [165.173.182.15]) (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 A25EC577E54; Tue, 8 Sep 2026 16:30:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=165.173.182.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885018; cv=pass; b=URgadVfX9v5e2WwdRc/HiGnYU1iYHXpvkrpBm4XaPTvha2+MQhvpNlPAiFJlgioYQWIydLbVi0RovMuV2/earhf7g4unnrqnRkO6mUmnBDyUK6l8gxjxzONbrVr3zB9RA0MY0SdvJDyLWLvW2/TcfKaFKlb/iXXJ+SLqeEqY3O8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885018; c=relaxed/simple; bh=v6JrUjrzrdCIbaOlSOoebt20KhWC8xvvqpXbkT9cQx8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qljH43H+wXkiJvKoqcSvaL4NhzhakvNXUopPI6ObykNFIHEgkNYgzaRg1XCduHi+dr4aJJp/renohL+MCjT0fidff5LlJ1d76EIMY7cT4nZGdk+lBg/2GBQFpfz7lSfkjvzmvVxS+ANTtDlBYCwWJINPbAItnh5W02Z7TkbQFyk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b=APjkHUQq; arc=pass smtp.client-ip=165.173.182.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b="APjkHUQq" ARC-Seal: i=1; a=rsa-sha256; t=1788884991; cv=none; d=zohomail.com; s=zohoarc; b=boK9vYXnxR/YWBYNjKtZZutjveIttpelz4kLBY5m3i37/Geq7mXInqMx8AEj1yrIgMKS35PprZCTt+pUN+yv6k/+WX3dSdg4VzkUTaMs4cwjlQ8fai3qJ9pQnTZ2UITpk2LoV40JnHT4ZU9FxKEDfH3FiPOqdhWtnpchyU94RtA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788884991; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=/9QZvkOZHRFMbQlA8yETT7Zrff/My6zZYclqPzswPRI=; b=KEJtKMdXA6pxMb1suCo4ibrsgbZdiRm8N92KvDMAiNqt2NexrypDyGPPd3RuP72hu6An012/+d72N1hBwTfD3ClWxMUS7Xrjhie/Tq1SuQbUigeNy6KuBZh1H9otDO9taA2OQKoynb7w6ovpU9FChURUeNogw4z5rCffdQ6mKmk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788884991; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=/9QZvkOZHRFMbQlA8yETT7Zrff/My6zZYclqPzswPRI=; b=APjkHUQqMofmkYL0mJ+nItLfYYgrxhCVLEz5oP85MLjoS/C9nSBk+UOUnRbOnmm+ LbD1fqymk/WApxlqwMMYnacve600HoNlJyxdiTrnEFH/7uDosUcyIBEyp4kX2qlrQpy O3mBrQO0j5C6kWgSpd1lIzFjfbAky7U86OoRO4Is= Received: by mx.zohomail.com with SMTPS id 1788884990679638.4373991668011; Tue, 8 Sep 2026 09:29:50 -0700 (PDT) From: Junhui Liu Date: Wed, 09 Sep 2026 00:28:47 +0800 Subject: [PATCH v2 4/6] dt-bindings: timer: sifive,clint: Deprecate spacemit,k3-clint 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: <20260909-k3-aclint-v2-4-7931e5bc86ad@pigmoral.tech> References: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> In-Reply-To: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Inochi Amaoto , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , Guodong Xu , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Conor Dooley , Junhui Liu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1637; i=junhui.liu@pigmoral.tech; h=from:subject:message-id; bh=v6JrUjrzrdCIbaOlSOoebt20KhWC8xvvqpXbkT9cQx8=; b=owGbwMvMwCWWvDb1VEXc8j+Mp9WSGLIWmJ9p2Xqln7uu4Xvy9eL3Pw4GbFI+/PODZbZG0bmoi /JZB+PXdpSyMIhxMciKKbJw+Yv/s9bh+XZEoPU+zBxWJpAhDFycAjCRHkdGhif/Zj7s+VtrUTlx ssRR9/nnFKIdkz4Ile88cViCuz5nqykjw+1ZhRUJ/h4rkjVcTuh0c02Q8vP28ZXIy1s75dxyvSI mFgA= X-Developer-Key: i=junhui.liu@pigmoral.tech; a=openpgp; fpr=15B30CC69C4BF0CC3C08F85A2A90CDC122DF37BF X-ZohoMailClient: External The SpacemiT K3 implements separate ACLINT MSWI, MTIMER and SSWI devices. The existing spacemit,k3-clint compatible incorrectly describes the SSWI register space as a legacy CLINT. Deprecate this compatible in favor of the K3-specific ACLINT compatibles. Fixes: 6cdeb30db4d8 ("dt-bindings: timer: add SpacemiT K3 CLINT") Signed-off-by: Junhui Liu --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Do= cumentation/devicetree/bindings/timer/sifive,clint.yaml index 3673836e14de..88b9be2230a1 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -34,7 +34,6 @@ properties: - microchip,pic64gx-clint # Microchip PIC64GX - sifive,fu540-c000-clint # SiFive FU540 - spacemit,k1-clint # SpacemiT K1 - - spacemit,k3-clint # SpacemiT K3 - starfive,jh7100-clint # StarFive JH7100 - starfive,jh7110-clint # StarFive JH7110 - starfive,jh8100-clint # StarFive JH8100 @@ -62,6 +61,10 @@ properties: - const: riscv,clint0 deprecated: true description: For the QEMU virt machine only + - items: + - const: spacemit,k3-clint + - const: sifive,clint0 + deprecated: true =20 description: Should be ",-clint", followed by "sifive,clint" --=20 2.55.0 From nobody Fri Sep 25 20:47:58 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (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 E18AB582BA6; Tue, 8 Sep 2026 16:30:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885026; cv=pass; b=tJfMDYjD4lOtoFNIwBUupqktTrSE0t9g8RIRCFKVDPUQ6mnrW+nhKibXyMBlBmlctb00QKkOuUDA7aVqWi6rrPtbMAjbCQnDj92Hr25MvpDL2Y97ZLTNHXR991IOwdCNCxs3w+bfR0tEfhPkSf6P89F4AKaXIanedkvAqE2F1Bw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885026; c=relaxed/simple; bh=h8aJIH7hyzSaiZSkDnw2JIZGmRG2/AZ362IquoczBB8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Um77Ke6DksYYSBhgBVTgoBuea2WDAabOWoEzZg0CSiVrnptp3RdKuFMvK0HbnacfeWMYWFPnJOMPs24rM00v8MN116DBbrM4o/fnc4V6RdfztWj4WCUIUO+ZHfSD4jOwLMJbvhsrEsFfC9hNvL6uM/kGARXh01akATyN8JY0UVc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b=CFhx5rPn; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b="CFhx5rPn" ARC-Seal: i=1; a=rsa-sha256; t=1788885001; cv=none; d=zohomail.com; s=zohoarc; b=LQPOiqHS8O2y0iWeuFbT0sDgA308iisGfKmHfixf/fhl+s644VSV6iO0734sEnK5JeHzXqzDXuQW/duBbWZ+kKEcpuMMJmLJw/liCg70fRykKk+Wcf+9B9yq1oVXBTsONVdzGHDD7TR7xMp3mnyyF74F1AsKAJn4iYSrznubv+A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788885001; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=DbZb7rgl/7w1w4tb13GdbjXjUAAevHFVnXZh+5Ul2mc=; b=I4g3Zax4KezFYoqEQWJQL+4mprqq6oE+EUsuckrOKRlRm5uZWvhR2mHfZTLk3YI1H6MJSMjZHBgMR/Ak3rMOR3On2dJwA3yGBIZ3hPB/jYXOazGYFo/4xmsVxObOyz1fGGiR7SpfM4ipYqh6TVYaBCStSP3XL57OFH7ObMylF9g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788885001; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=DbZb7rgl/7w1w4tb13GdbjXjUAAevHFVnXZh+5Ul2mc=; b=CFhx5rPnXtUuX7tm+BFhX/+6YWoO4k42HdsW8MIuiMlfQhH/7AhwoI8JqgLzIjJ+ 59cUQSrpYbeCy1Wy3T9Y59kaZ/TrvcOzVOIJEb88QpLHgDU9K6aR/jvO1NHClCmMOAM UxCsxCSFl3db1JLqhH5mpX3TUY0b8xucJTDFIPsI= Received: by mx.zohomail.com with SMTPS id 1788884999420980.2422992482639; Tue, 8 Sep 2026 09:29:59 -0700 (PDT) From: Junhui Liu Date: Wed, 09 Sep 2026 00:28:48 +0800 Subject: [PATCH v2 5/6] irqchip/aclint-sswi: Add support for SpacemiT K3 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: <20260909-k3-aclint-v2-5-7931e5bc86ad@pigmoral.tech> References: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> In-Reply-To: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Inochi Amaoto , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , Guodong Xu , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Conor Dooley , Junhui Liu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1002; i=junhui.liu@pigmoral.tech; h=from:subject:message-id; bh=h8aJIH7hyzSaiZSkDnw2JIZGmRG2/AZ362IquoczBB8=; b=owGbwMvMwCWWvDb1VEXc8j+Mp9WSGLIWmJ+/eFOyw/1A06Y7ZTcPitVX1TZMeXJNmEnMve74D aHNIi+edpSyMIhxMciKKbJw+Yv/s9bh+XZEoPU+zBxWJpAhDFycAjCR6LOMDG+/Mu7cEcN9cYMQ 765JzMfmBLwV29nI+vU3391dfiwmt5sY/nA+ObVvzuHQ5bkyVfPm7mh6Pe3mtMiE/Q7lxzg45KT q7nIAAA== X-Developer-Key: i=junhui.liu@pigmoral.tech; a=openpgp; fpr=15B30CC69C4BF0CC3C08F85A2A90CDC122DF37BF X-ZohoMailClient: External Add a match entry for the spacemit,k3-aclint-sswi compatible. The K3 SSWI device requires no special handling and can use the existing generic ACLINT SSWI initialization function. Signed-off-by: Junhui Liu --- drivers/irqchip/irq-aclint-sswi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-aclint-sswi.c b/drivers/irqchip/irq-aclint= -sswi.c index ca06efd86fa1..d3ef2cd3b5c5 100644 --- a/drivers/irqchip/irq-aclint-sswi.c +++ b/drivers/irqchip/irq-aclint-sswi.c @@ -179,6 +179,7 @@ static int __init generic_aclint_sswi_early_probe(struc= t device_node *node, } IRQCHIP_DECLARE(mips_p8700_sswi, "mips,p8700-aclint-sswi", generic_aclint_= sswi_early_probe); IRQCHIP_DECLARE(nuclei_ux900_sswi, "nuclei,ux900-aclint-sswi", generic_acl= int_sswi_early_probe); +IRQCHIP_DECLARE(spacemit_k3_sswi, "spacemit,k3-aclint-sswi", generic_aclin= t_sswi_early_probe); =20 /* THEAD variant */ #define THEAD_C9XX_CSR_SXSTATUS 0x5c0 --=20 2.55.0 From nobody Fri Sep 25 20:47:58 2026 Received: from sender4-op-o15.zoho.com (sender4-op-o15.zoho.com [136.143.188.15]) (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 2BFB8356751; Tue, 8 Sep 2026 16:30:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.15 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885037; cv=pass; b=sXIelffiZdaLUkhbQGtOJHtkvrJxnR2nOVNPeYVuhigijJIyMM5fdQwJwyDJRUAxr8s806zChCPPC9teObZq09MwXlaBKZTa7ePSMPguAD/RzqaFARbiDm3RcNflN37hv+eo7Tk2CaduPDt8j8cqwQnuS/QiP9Xrgzbh+yhu2h8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788885037; c=relaxed/simple; bh=Hpr95jbM/sR2JxMTRY4YvEG+OTtC4teW4pez2f5B6YI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Uhz1LeoG9VZl7CRhYBUzqukVNVvTmWkAuO/KnYAzDZQY0/Djxwnvro/UvWUxdciuBppe+BiC6ncOCgMyh7VHu8wywRbjcHTIDcz1lVHQ66r6YKL6EjeKkbTGXXZHeb96lkaGGrCwK1zATTmbYSJVLH2ghRyYJCpJlxVi3OBocGA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b=h5L6VwQf; arc=pass smtp.client-ip=136.143.188.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pigmoral.tech Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=pigmoral.tech header.i=junhui.liu@pigmoral.tech header.b="h5L6VwQf" ARC-Seal: i=1; a=rsa-sha256; t=1788885009; cv=none; d=zohomail.com; s=zohoarc; b=A78XGafLDFq/hA6y+C4/VdxktzVIi9IxmXy+55XFuE4L7Ehi7SDsGaBs1fWKo6vCZb2bd7s4nhkxES1vViqoqb57pMG26uW2z04QuE1+g2UbDy8EpTBe9c1IkKgTRzBB+dh9/XQB2uEmxa5/wWB4hSe66Y9TxjYRudAyT5UaWOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1788885009; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=XRqgXkSF0hdJubvDrWL/fRamzT/dwFoSEjwRXMrvAcg=; b=P13W4BPbvWRYzuSf7WMIT3HZke3X/nh4FLntXfQ756mEv6oj9uE6ZTdf6lA/RKHCwmJMw8kCH0X6DB3bf5K2J1xwXVk8ExUJ8UmNE3xMJMgXIJ+bsvab8j6vdMoBDyqD30Ofh+ozNLZChnV9wkFBXkha02W4wBLinPp2MBEvgM8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=pigmoral.tech; spf=pass smtp.mailfrom=junhui.liu@pigmoral.tech; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1788885009; s=zmail; d=pigmoral.tech; i=junhui.liu@pigmoral.tech; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=XRqgXkSF0hdJubvDrWL/fRamzT/dwFoSEjwRXMrvAcg=; b=h5L6VwQfZ4sxFHUpat31iaj+dLwdjHrTv/EJWgnMkZupwOmuZ+cLPzZVguz9Tsx9 sMe5tfmcUxWVyk4t+QvXcxispHN2BvqlvbCxjTEN9a3O1AuIk2Pzv882YDF4eR4F8gb XfdwfAkwHewGGxFsfhPTgtFTh2bhWcusl5TzquVY= Received: by mx.zohomail.com with SMTPS id 178888500800317.84862533376429; Tue, 8 Sep 2026 09:30:08 -0700 (PDT) From: Junhui Liu Date: Wed, 09 Sep 2026 00:28:49 +0800 Subject: [PATCH v2 6/6] riscv: dts: spacemit: k3: Replace incorrect CLINT node with ACLINT nodes 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: <20260909-k3-aclint-v2-6-7931e5bc86ad@pigmoral.tech> References: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> In-Reply-To: <20260909-k3-aclint-v2-0-7931e5bc86ad@pigmoral.tech> To: Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Inochi Amaoto , Radu Rendec , Paul Walmsley , Samuel Holland , Palmer Dabbelt , Anup Patel , Guodong Xu , Albert Ou , Alexandre Ghiti Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, Conor Dooley , Junhui Liu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3001; i=junhui.liu@pigmoral.tech; h=from:subject:message-id; bh=Hpr95jbM/sR2JxMTRY4YvEG+OTtC4teW4pez2f5B6YI=; b=owGbwMvMwCWWvDb1VEXc8j+Mp9WSGLIWmF+yXT8rKffb1oBYGQ39Qxc/e8/8mxrJ8dRlOV9XS NgyN5/CjlIWBjEuBlkxRRYuf/F/1jo8344ItN6HmcPKBDKEgYtTACayIJThf6bl2vlCbe46Llwf HH22Skj669qF3L3nt4ojWbel646/C8P/8uf3J0cXb2XzjWitvv149i9G30T18CWyT77nHtu88/I mZgA= X-Developer-Key: i=junhui.liu@pigmoral.tech; a=openpgp; fpr=15B30CC69C4BF0CC3C08F85A2A90CDC122DF37BF X-ZohoMailClient: External The K3 implements separate ACLINT MSWI, MTIMER and SSWI devices. The existing CLINT node at 0xe081c000 incorrectly describes the SSWI register space as a legacy CLINT. Replace the CLINT node with an SSWI interrupt controller using the K3-specific compatible and supervisor software interrupt IDs. Add the MSWI and MTIMER nodes to describe the machine-level devices for firmware such as OpenSBI. Use the secure addresses for MSWI and MTIMER, as their non-secure aliases are inaccessible. Keep SSWI at its non-secure address, 0xe081c000, because an efuse bit can restrict access to its secure alias at 0xf181c000 to Machine mode. Fixes: 56f37e391a62 ("riscv: dts: spacemit: add initial support for K3 SoC") Signed-off-by: Junhui Liu --- arch/riscv/boot/dts/spacemit/k3.dtsi | 37 ++++++++++++++++++++++++++------= ---- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/spa= cemit/k3.dtsi index c3f2dce0969c..7ca662fe4cbe 100644 --- a/arch/riscv/boot/dts/spacemit/k3.dtsi +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi @@ -1261,17 +1261,15 @@ saplic: interrupt-controller@e0804000 { riscv,num-sources =3D <512>; }; =20 - clint: timer@e081c000 { - compatible =3D "spacemit,k3-clint", "sifive,clint0"; + aclint_sswi: interrupt-controller@e081c000 { + compatible =3D "spacemit,k3-aclint-sswi"; reg =3D <0x0 0xe081c000 0x0 0x4000>; - interrupts-extended =3D <&cpu0_intc 3>, <&cpu0_intc 7>, - <&cpu1_intc 3>, <&cpu1_intc 7>, - <&cpu2_intc 3>, <&cpu2_intc 7>, - <&cpu3_intc 3>, <&cpu3_intc 7>, - <&cpu4_intc 3>, <&cpu4_intc 7>, - <&cpu5_intc 3>, <&cpu5_intc 7>, - <&cpu6_intc 3>, <&cpu6_intc 7>, - <&cpu7_intc 3>, <&cpu7_intc 7>; + #interrupt-cells =3D <0>; + interrupt-controller; + interrupts-extended =3D <&cpu0_intc 1>, <&cpu1_intc 1>, + <&cpu2_intc 1>, <&cpu3_intc 1>, + <&cpu4_intc 1>, <&cpu5_intc 1>, + <&cpu6_intc 1>, <&cpu7_intc 1>; }; =20 /* sec_i2c3: 0xf0614000, not available from Linux */ @@ -1305,5 +1303,24 @@ maplic: interrupt-controller@f1800000 { riscv,num-sources =3D <512>; status =3D "reserved"; }; + + aclint_mswi: interrupt-controller@f1810000 { + compatible =3D "spacemit,k3-aclint-mswi"; + reg =3D <0x0 0xf1810000 0x0 0x4000>; + interrupts-extended =3D <&cpu0_intc 3>, <&cpu1_intc 3>, + <&cpu2_intc 3>, <&cpu3_intc 3>, + <&cpu4_intc 3>, <&cpu5_intc 3>, + <&cpu6_intc 3>, <&cpu7_intc 3>; + }; + + aclint_mtimer: timer@f1814000 { + compatible =3D "spacemit,k3-aclint-mtimer"; + reg =3D <0x0 0xf1814000 0x0 0x8000>; + reg-names =3D "mtimecmp"; + interrupts-extended =3D <&cpu0_intc 7>, <&cpu1_intc 7>, + <&cpu2_intc 7>, <&cpu3_intc 7>, + <&cpu4_intc 7>, <&cpu5_intc 7>, + <&cpu6_intc 7>, <&cpu7_intc 7>; + }; }; }; --=20 2.55.0