From patchwork Wed Mar 12 13:11:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 14013582 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 DDE4DC35FF3 for ; Wed, 12 Mar 2025 13:41:11 +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-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rMqar2Ip4+x85k9EbiyJjIQNGFldCrfcoNhwygV8hr8=; b=bYm4l8nQHkuvpj k5zsLqZN7Ta661pq7CjQ4ANNIn7xMYpiaLag5Wzh1GM0XVxBlBJ9QCbuYYtn5nnPYpBAx1iBepwD2 z6IUKwqoKRhGzIA+pvPUG4H8r5T1v2W+t1amG9WE523N3D2BzpUTKrpObYQrTtFA63K8WXK/O+M6p C8wkw4gE20vBdsSlQuzBUKPnKbJBJvC71XBdJtCav4g390Ak1mU1FLgHDdisatMXlQYXShQtNpyjE 5O2YKpj7VDLuI+JbBdHQXHFbCpcJV/GUsW1j9NF/dVD/6sYjEz0UKSsUGa+MfqKTaKuwg5YKtIquU 3Oopoy7PAQVxcD42O+Kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tsMKY-00000008bCT-1Oyg; Wed, 12 Mar 2025 13:41:06 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tsLt9-00000008X6Q-2EEH for linux-riscv@lists.infradead.org; Wed, 12 Mar 2025 13:12:48 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 434D45C5AFC; Wed, 12 Mar 2025 13:10:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46A19C4CEE3; Wed, 12 Mar 2025 13:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741785166; bh=Hx6D1rRpddICfBXk7BrrDIlZsj2WNmHzrd9slgJOb4Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uL0QnZF/AmCr1lTHvC3CGU4eIfndJpktr0hFVYpE4lTFegFmXuMwkkzNhSmsPUx7h 0YTwIKbgL1xZmzJ6nmd7J266JQ/H0HphOdEcyqg2u/DubrO8ZOm0Lz9YCCnxhHw4Wi BbrlYDO56pP9dgFbqVoL9JSE3yoUgxmZDPZtzNSxRzDuqsL//fd3Pr92/koG3HHtvY VA47GMEMMLKmaS+Bof2Ufgg6Vj8OVAR8XcfRE3g395LHFc5gjz8Y6rsUpGDaMzabp1 c3vhxuoO2djfzi7zMNhMqyd20eQac1W7iKPVP/jwUfUflT81RZCBXoQekzUxPuF26J yWRl6Mg4t6AOQ== From: Conor Dooley To: linux-riscv@lists.infradead.org Cc: conor@kernel.org, Conor Dooley , Eric Biggers , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Andy Chiu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v4 5/6] dt-bindings: riscv: add vector sub-extension dependencies Date: Wed, 12 Mar 2025 13:11:48 +0000 Message-ID: <20250312-banking-crestless-58f3259a5018@spud> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250312-abide-pancreas-3576b8c44d2c@spud> References: <20250312-abide-pancreas-3576b8c44d2c@spud> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2332; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=GdLuIc5EAIS3gpLTxrlq7jFgE0FxstD07lH/xrh31/s=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDOkXO0SKZZOqWNj/rFdM6zO18+vQaz2QOT13+dtc/oyui pDVN0Q7SlkYxDgYZMUUWRJv97VIrf/jssO55y3MHFYmkCEMXJwCMBHl04wMmy4E/XA6pp0nMH2r /3WThrjC3LNem/0qLpeZNYj17Jx+gJHhKJfKo3jl8ykNqwtYP8xSKT82e9GBt48cLJdWzwvatsm SFwA= X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250312_061247_656774_A32715A6 X-CRM114-Status: UNSURE ( 7.19 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Conor Dooley Section 33.18.2. Zve*: Vector Extensions for Embedded Processors in [1] says: | The Zve32f and Zve64x extensions depend on the Zve32x extension. The Zve64f extension depends | on the Zve32f and Zve64x extensions. The Zve64d extension depends on the Zve64f extension | The Zve32x extension depends on the Zicsr extension. The Zve32f and Zve64f extensions depend | upon the F extension | The Zve64d extension depends upon the D extension Apply these rules to the bindings to help prevent invalid combinations. Link: https://github.com/riscv/riscv-isa-manual/releases/tag/riscv-isa-release-698e64a-2024-09-09 [1] Reviewed-by: Clément Léger Acked-by: Krzysztof Kozlowski Signed-off-by: Conor Dooley --- .../devicetree/bindings/riscv/extensions.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index ebb252275ddd..02065664f819 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -680,6 +680,52 @@ properties: contains: const: zca + - if: + contains: + const: zve32x + then: + contains: + const: zicsr + + - if: + contains: + const: zve32f + then: + allOf: + - contains: + const: f + - contains: + const: zve32x + + - if: + contains: + const: zve64x + then: + contains: + const: zve32x + + - if: + contains: + const: zve64f + then: + allOf: + - contains: + const: f + - contains: + const: zve32f + - contains: + const: zve64x + + - if: + contains: + const: zve64d + then: + allOf: + - contains: + const: d + - contains: + const: zve64f + allOf: # Zcf extension does not exist on rv64 - if: