From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3CB86E83EF6 for ; Wed, 4 Feb 2026 17:37:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IjM6JjKEKu/prtjVeE6XJAz8g0CWE0VvIoMB6+x16aU=; b=ppH8Adye8gHvwdWA3dhJNe4Faq qyAavHMv3Bc4XwdYvs34dHL0pCXOZnNTG4j7/inZDvFvnq0ex3pPJUUpTcYe7lr8ApC9Ij/xLdlvS NPv2fLHJburoBaHnaSQTKlfX1dHOCg7c205M2yjpuJLeSYMplRm0tarEwTO5kz8xFJlsBd2PADX+v TYAvYNjaVloqmPC2PNBujxf9WJsdi50mnrwEf6sUqsZadwvOyvA6E4QOaU5qR4+acPOh6oU4QIxkD fml6vrSb9cknvWOuIa0hixlgN7dJ6PrKb2p6/Ir8d28T28JRu+OEkhJX6g0VCfwQljIGAY2fj8sE3 n8x8Vdvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vngoW-00000008rQK-2KCZ; Wed, 04 Feb 2026 17:37:16 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vngoU-00000008rPm-3CBJ for linux-riscv@lists.infradead.org; Wed, 04 Feb 2026 17:37:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 111FB4056B; Wed, 4 Feb 2026 17:37:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FA68C4CEF7; Wed, 4 Feb 2026 17:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770226633; bh=03TqwxPd0/D2HLyCo+C/tXq5z02Y/CpmCpGRC1475F0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U1Aa1ZKfBj4itv4CbBKvlT9PSiRoIA6z+RZEmQ6EVmIe4tVJXgB+lfAI1O5hAWEyz nKJZQUfVC0uE3+nMso4Td2xmy4fUj6SQXkmBgc55e7gPf0ENyRHq3RR87p4lGF3FXy 0NT8jKMqvPB6jFNE6DRjNkBHTgOn6zXM3oV5wBis8Uu9RBUIjN9Qbl19BhtIdI2qdE kNEn0qg4Biu1JMibLR9vrmGQW2M6Wg/zYb5m7lItjCnshzCWE4E3HqZUIfjM+XX95o dCO8/o6mhQarXnPOTyN3MmiX8wpv/sCpmp5tdXQBiu4J3vutzp3g4dNzcw58D9M/gM 1lHVeoheWGMug== Date: Wed, 4 Feb 2026 17:37:08 +0000 From: Conor Dooley To: Lv Zheng Cc: Tomasz Jeznach , Joerg Roedel , Will Deacon , Robin Murphy , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Jingyu Li , Zhijian Chen , iommu@lists.linux.dev, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, devicetree@vger.kernel.org Subject: Re: [PATCH v3 4/8] dt-bindings: iommu: Add spacemit/t100 features Message-ID: <20260204-primer-wrought-6f64b14bf152@spud> References: MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260204_093714_843326_1E60ADF8 X-CRM114-Status: GOOD ( 20.28 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7340207145808343400==" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org --===============7340207145808343400== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7ntmr8QQRm24MhuR" Content-Disposition: inline --7ntmr8QQRm24MhuR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 04, 2026 at 05:09:12PM +0800, Lv Zheng wrote: > Adds device tree bindings for SpacemiT T100 specific features by > introducing spacemit,100 compatible. T100 contains distributed IOATCs, > each of which exposes pmiv interrupt. >=20 > Signed-off-by: Lv Zheng > Signed-off-by: Jingyu Li > --- > .../bindings/iommu/riscv,iommu.yaml | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/iommu/riscv,iommu.yaml b/D= ocumentation/devicetree/bindings/iommu/riscv,iommu.yaml > index d4838c3b3741..2da3456e7402 100644 > --- a/Documentation/devicetree/bindings/iommu/riscv,iommu.yaml > +++ b/Documentation/devicetree/bindings/iommu/riscv,iommu.yaml > @@ -32,6 +32,12 @@ properties: > # should be specified along with 'reg' property providing MMIO locatio= n. > compatible: > oneOf: > + - description: SpacemiT distributed IOMMUs > + items: > + - enum: > + - spacemit,t100 > + - const: spacemit,riscv-iommu What actually is the t100? Is it an SoC or is it the name of the core complex IP that spacemit is using in multiple SoCs? > + - const: riscv,iommu > - items: > - enum: > - qemu,riscv-iommu > @@ -75,6 +81,23 @@ required: > =20 > additionalProperties: false > =20 > +select: false Why is this here? It just breaks the whole binding. pw-bot: changes-requested > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + const: spacemit,riscv-iommu > + then: > + properties: > + interrupts: > + maxItems: 68 This isn't right. You would need to make the interrupts property itself have maxItems: 68, then add an else to this conditional that has maxItems: 4. What you've done just doesn't work, and if you removed the "select: false: you'd see. > + description: > + SpacemiT distributed IOMMU includes additional interrupts for > + IOATCs. Each IOATC exposes pmiv wired vector as standalone > + interrupt and the maximum number of IOATCs can be up to 64. > + > examples: > - |+ > /* Example 1 (IOMMU device with wired interrupts) */ > @@ -145,3 +168,17 @@ examples: > }; > }; > }; > + > + - |+ > + /* Example 5 (SpacemiT distributed IOMMU) */ > + #include > + > + iommu4: iommu@1bccd000 { Remove the iommu4 label, there's no references to it. Cheers, Conor. > + compatible =3D "spacemit,t100", "spacemit,riscv-iommu", "riscv,i= ommu"; > + reg =3D <0x1bccd000 0x1000>; > + interrupts =3D <58 IRQ_TYPE_LEVEL_HIGH>, <58 IRQ_TYPE_LEVEL_HIGH= >, > + <58 IRQ_TYPE_LEVEL_HIGH>, <58 IRQ_TYPE_LEVEL_HIGH>, > + <62 IRQ_TYPE_LEVEL_HIGH>, <63 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-parent =3D <&saplic>; > + #iommu-cells =3D <0x01>; > + }; > --=20 > 2.43.0 >=20 --7ntmr8QQRm24MhuR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaYODxAAKCRB4tDGHoIJi 0q3UAQCg1TsHH+duEmzyrzVzEGU5BoOmSQhJqtrGbl3iYsF2JQD+OrvDaVMRD3l1 6/cgK4rgkqxbBB1b19Zh2zRXlFrIrQc= =curv -----END PGP SIGNATURE----- --7ntmr8QQRm24MhuR-- --===============7340207145808343400== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv --===============7340207145808343400==--