From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.12 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795859183; b=SwzyBTS2vFMvlleyRBxJy3CmA/mgCn2D9IorLYuVle/BU+ihHOpa8Efufn4mjruj2FB/ Ih+RTgSLVvZBxBExh3IGNA1If3+sFdLvzI8K1/gxg2dgmomwq9kcCn52mGXBscojm5FB2 IW6sOGTyzoJWgKtT9JZfAFvPlYBCmbnOJ/PtAoZw9Xxi/7kzsDnBeEL/Gd2TRj7pR5ZT/ gwuYP7bngOzGpACGpALcs6mVUEpMNq+rtUBPg2qipqoVI+wKG3B6Orxdn/fIKq11LMZsv z9QMMOzJ2hNk5nIk9LS3Q9knz8lv5bONnucEFPP9zhRf23nIA5UQtWcor6fSi/mRTWg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795859183; h=DMARC-Filter:DKIM-Signature:Received:Mime-Version: Content-Transfer-Encoding:Content-Type:Date:Message-Id:Cc:Subject: From:To:X-Mailer:References:In-Reply-To:X-ZohoMailClient; bh=N1Pv9e90sqGPpxpDoeaBna5JxW1ylKtr6jEfKiV54yw=; b=OC+WzHFnniKFulwbEHmnFRgFlI0rZ/jrORXtqOSRwGd4baO4JsrRIpQasC4CQVy4Dl8c HWOlW0x9gOhoj2CYojU/0OePBHMY4hqlKkwBu4q7V6GoGA67SC59SMaUgTXQRFFS0DR37 E1wh10jSeomFfc3G9sKbB9G+56wY7ftE/pr8ciyHfOC4CJmcAmcasGImhP7qstxLOqbLc VTaIkuWI/wgM5Hyy/pkiMd/ieybfCqOe6TSYupl6N1Sqqbo55fFhdNX8E67l8ddiUYNzc lr4Lya3wq9CKvZF+vj1jhfdyHT81ZvnvR/Sybwa8Etd84GUWeLoxknvFrLBxnRccwzg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=pigmoral.tech; spf=pass smtp.mailfrom=pigmoral.tech; dkim=pass header.d=pigmoral.tech header.i=@pigmoral.tech header.a=rsa-sha256 header.s=zmail header.b=mh3ywakH; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.180.12 Received: from sender6-op-o12.zoho.com (sender6-op-o12.zoho.com [165.173.180.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2ABBA606A31C; Sat, 28 Nov 2026 09:46:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2ABBA606A31C 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=@pigmoral.tech header.a=rsa-sha256 header.s=zmail header.b=mh3ywakH ARC-Seal: i=1; a=rsa-sha256; t=1795859137; cv=none; d=zohomail.com; s=zohoarc; b=MXA6S8xwgPT1pT0HqddVqnOOSk5JyP0352e6/MSGVG+1MAtzOKD5KsuJ91Fx3oibidgBPFwEwz0Drfwe6Sgp4vZd+2hm+fVTUq18q3kBYVpdps5IKl0kF5LZQJp1EWbg7MxZMqAfbYi4NR4vykcYZG5URXylFqnuLS07QFCtBmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795859137; 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=N1Pv9e90sqGPpxpDoeaBna5JxW1ylKtr6jEfKiV54yw=; b=f5CElqCZ9I0CwSQf4paMuvYkNnHqd2zCAych16WDHYz0zSVNlKNqqYUzJfJcNBjE4cObdNREN67ku2hTut7OBjgis5H7PGC5bhNdkVfeFNF+PIVMySEokbDJf7JdYQ+TDZZV4GfJXYj4MzR3xr0xJdMocd6dmC8bPi1ls/TzKDA= 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: a=rsa-sha256; b=mh3ywakHBA5q8LPU08XHX+FUnPhJIBuxeVEOVI/NtpJpkJBM4WxEo8MNK9GPm3FlLTb77B6QFnRSgoh3UWq3NhabU6cJyLz6BbnO/3ZlYtGTqMGJt7uzHNv86yUrMZopxw57Cismm6Y+oKa3uvQEqtR7Fl2RfeOtjYnCvhgrx4U=; c=relaxed/relaxed; s=zmail; d=pigmoral.tech; v=1; bh=N1Pv9e90sqGPpxpDoeaBna5JxW1ylKtr6jEfKiV54yw=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1795859134420900.6792305425204; Sat, 28 Nov 2026 01:45:34 -0800 (PST) X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 28 Nov 2026 17:45:15 +0800 Message-Id: Cc: "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" , , , , , "Conor Dooley" , "Bo Gan" Subject: Re: [PATCH v3 6/6] riscv: dts: spacemit: k3: Replace incorrect CLINT node with ACLINT nodes From: "Junhui Liu" To: "Anirudh Srinivasan" , "Junhui Liu" X-Mailer: aerc 0.22.0 References: <20260918-k3-aclint-v3-0-cf4fd4050e14@pigmoral.tech> <20260918-k3-aclint-v3-6-cf4fd4050e14@pigmoral.tech> In-Reply-To: X-ZohoMailClient: External Hi Anirudh, On Fri Nov 27, 2026 at 1:27 PM CST, Anirudh Srinivasan wrote: > Hi Junhui, > > On Fri, Sep 18, 2026 at 12:29:38AM +0800, Junhui Liu wrote: >> The K3 implements separate ACLINT MSWI, MTIMER and SSWI devices. The >> existing CLINT node at 0xe081c000 incorrectly describes the SSWI >> register space in the non-secure window as a legacy CLINT. >>=20 >> The ACLINT register space is mapped at two base addresses: a secure >> window at 0xf1810000 and a non-secure window at 0xe0810000. The >> secure window exposes all three components, while the non-secure >> window only exposes SSWI; the MSWI and MTIMER offsets are reserved >> there. Moreover, depending on the eFuse configuration, the non-secure >> window may be entirely inaccessible, whereas the secure window is >> always available. >>=20 >> Replace the CLINT node with the three ACLINT devices, all using >> secure-window addresses: MSWI and MTIMER for machine-level firmware >> such as OpenSBI, and SSWI for supervisor software interrupts. >>=20 >> Fixes: 56f37e391a62 ("riscv: dts: spacemit: add initial support for K3 S= oC") >> Signed-off-by: Junhui Liu >> --- >> arch/riscv/boot/dts/spacemit/k3.dtsi | 43 +++++++++++++++++++++++++----= ------- >> 1 file changed, 30 insertions(+), 13 deletions(-) >>=20 >> diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/= spacemit/k3.dtsi >> index c3f2dce0969c..74831974435e 100644 >> --- a/arch/riscv/boot/dts/spacemit/k3.dtsi >> +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi >> @@ -1261,19 +1261,6 @@ saplic: interrupt-controller@e0804000 { >> riscv,num-sources =3D <512>; >> }; >> =20 >> - clint: timer@e081c000 { >> - compatible =3D "spacemit,k3-clint", "sifive,clint0"; >> - 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>; >> - }; >> - >> /* sec_i2c3: 0xf0614000, not available from Linux */ >> =20 >> mimsic: interrupt-controller@f1000000 { >> @@ -1305,5 +1292,35 @@ 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"; > > I think you'll need to also include the "riscv,aclint-mtimer" compatible > here so that this DT can be used with upstream OpenSBI. OpenSBI doesn't > include the spacemit specific compatible. OpenSBI boot prints this > currently. > > Platform Timer Device : --- @ 0Hz > Currently, "riscv,aclint-mtimer" is not part of an upstream Linux binding, so I don't think we should add it to the K3 DTS yet. Your colleagues at Tenstorrent proposed adding this compatible in v3 of the Atlantis series [1], but it was dropped from v4. The v4 changelog says that the binding will be submitted separately [2]. If the binding is accepted, we can then add the generic compatible to the K3 DTS. Otherwise, OpenSBI will need to add support for the K3-specific compatible. [1] https://lore.kernel.org/linux-riscv/20261109051050.105623-5-joel@jms.id= .au/ [2] https://lore.kernel.org/linux-riscv/20261127061432.17306-1-joel@jms.id.= au/ Best regards, Junhui Liu >> + 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>; >> + }; > > > Regards > Anirudh Srinivasan