From nobody Sun Feb 8 14:53:47 2026 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF6C73B8D56 for ; Thu, 8 Jan 2026 12:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875237; cv=none; b=h022atXNBJUj9UR2tCGLIrybqIqBnWQ7U+/zl6VHwlahiuWBWW33ndq9kzWfOtdfrwsYhRImu9rz/5dzFpTixg00A17GjBXxFL8XWiSZ7mEIoQkIMpk1kVStOv2zwB1aJkXciwb4iQakMk8I6ZRiC7eeTWFGzH/ZJ+M0SW/ioeo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767875237; c=relaxed/simple; bh=JNc8LtlSqbUM1gYtb1AiNOnq7DSnYAfiDqB4gjysnbQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LboGM81mzVCweZrODQRhz/zPnsjls8OBhbvAl9EdpqW4sKyvvM3RpTp3I6xBZWgbUBIGRKCVy6MawhiQykzKmuYbhd5SIJViKSnPY+1MlrhX3qRtLVOpz96u5Bsiuo0L4bW9OSuBbZTZv8SZfyui+g1OtByk1084aqLgOF5raVU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b=F6giAJOr; arc=none smtp.client-ip=209.85.210.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=riscstar-com.20230601.gappssmtp.com header.i=@riscstar-com.20230601.gappssmtp.com header.b="F6giAJOr" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-8035e31d834so2500751b3a.2 for ; Thu, 08 Jan 2026 04:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar-com.20230601.gappssmtp.com; s=20230601; t=1767875235; x=1768480035; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=PQRNhZyBrryZ4W75vN/HbLrPnH9UQ6pAq5yFj98AFr8=; b=F6giAJOrD8SEr5WoFCyZ/0TCE6d4bbNrYtbsQzXXEMmRpchQw7rXMmsb3MIKmba4P2 LNvgKhxjq9p+cHcsuGL1yLf7JmBSNYrNj3kL69F19Gru4aJF1xmWAtcogvRWuMOLY+QS LSu3Nv8h3Oefr137bSqY16iXnCwNbAxw2EUPpNekPHU1jWhYLLtSKqq5/hSscWEJLE2t qDfTbZKqE4zZF9Grlsh8mCjNXXR+SMtzpXSjhAzjwN6LH/jpehT1H1xRBaMH8L1EBUwi 9JqJbGOAFjRDpKNzO8gg083dqQymNuKLE5HDXCrB082Kqpnb1ArDK7KwY0tJqyG5BXSb uQDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767875235; x=1768480035; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PQRNhZyBrryZ4W75vN/HbLrPnH9UQ6pAq5yFj98AFr8=; b=wn5raEs6Lf/KlCEUIEqwEt/y0B3bWQKcCYOV94xBKbvLTqZWW+3sKtYULF89gXPq5m KSvDj99gdKWSX1/3vlL8f5+VVuaUP2tKqDm4cXNFD8PahsChTje6ib1czCgFHvdNavRK Ui4Ak6RQ08UTEAytpnbI1QEdEHswqNx4rkP/anUlw41Tzl8+i1XJBWr1PEwWb7WTZit1 ZmmI8YsdW0yR4D5bhC9dqXW2LIEm+C3OMTb+RpcV3PZYcGt55V7PiiBlpFRY+Sm3wqo5 /OW4Mezvf45xP5W87MKWyMDr45nrTn+ff+V5xHioRvuoWy0uMC/d0DrnsP1fU+5fQanv X9pg== X-Forwarded-Encrypted: i=1; AJvYcCXtkcKlnDwrRpQTOGzXOpHnkra0bCGxYtfc43MwNvkkRod7R4cF0kWqP83xNXkdZXMK4pFNQSVCAhMpGNI=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3ZJtyQqjKw5JhKAMwCHQhRJ+TTcfdDaKxreNL+Q4MfEEVDqgP lu24lY089lliDxd1bdWVVYRS39BUB6IncckDHSJjxDlbLNSeSsb64vFPEe5r9w3uUk8= X-Gm-Gg: AY/fxX6Tbqzp1TSFr94tV9pqu/sAniVkty6/5F1je/rmOGqTiAJ6OImS1nJrBRB4App E5/9hRxJ/T5eHRN0woPM1ItqsYEKmr6s3PAvR7u8KSX2Cb7uu7gop5Rce9W2Ebgce5A0Uf1gNRa dAolJyBTZgrA4cfP2JcAus14iYE1EqwUGWazMgeV4CP9C9Mfxi/+GU0Oj3/EHTfbY7Xgnb3rf3y etsMfV8930k4uS5cfXgQuizt/zZvsWcgNaIsRVgUC79t9dTNyHfEE+V81miN4HeT7yeS85H+uQU vnT2cfIIi29+h8ucfRzpRzZGLk0SUzXTw+6JF+DiLbMQRi3mx5BN4e3kI3e6UwR9LMM1BbtFq9S 3KFxnfCo1szkgUKW62iyD0Jd8ewc3U/KkwyryDbxbZYefokn++41B0tEblZPcgDnEiWe0voCe9z zX0XBzE8q80YIaDNVM+hFchIRGMnTqltg= X-Google-Smtp-Source: AGHT+IFRYciZVmuwXxqgs2+z9bm/vSux/mZP8+GYdPklVFiskGwlhaojZKgF/mVDfvC0CzsE/D+StA== X-Received: by 2002:a05:6a00:1d12:b0:7ff:c51d:7e0 with SMTP id d2e1a72fcca58-81b7d3584f2mr5778224b3a.3.1767875235211; Thu, 08 Jan 2026 04:27:15 -0800 (PST) Received: from [127.0.1.1] ([2a12:a305:4::40df]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-819bafe991dsm7656401b3a.16.2026.01.08.04.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 04:27:14 -0800 (PST) From: Guodong Xu Date: Thu, 08 Jan 2026 20:25:57 +0800 Subject: [PATCH v3 06/11] dt-bindings: riscv: Add B ISA extension description 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: <20260108-k3-basic-dt-v3-6-ed99eb4c3ad3@riscstar.com> References: <20260108-k3-basic-dt-v3-0-ed99eb4c3ad3@riscstar.com> In-Reply-To: <20260108-k3-basic-dt-v3-0-ed99eb4c3ad3@riscstar.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel , Yangyu Chen Cc: Paul Walmsley , Conor Dooley , Heinrich Schuchardt , Kevin Meng Zhang , Anup Patel , Andrew Jones , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, spacemit@lists.linux.dev, linux-serial@vger.kernel.org, Guodong Xu X-Mailer: b4 0.14.2 Add description of the single-letter B extennsion for Bit Manipulation. B is mandatory for RVA23U64. The B extension is ratified in the 20240411 version of the unprivileged ISA specification. According to the ratified spec, the B standard extension comprises instructions provided by the Zba, Zbb, and Zbs extensions. Add two-way dependency check to enforce that B implies Zba/Zbb/Zbs; and when Zba/Zbb/Zbs (all of them) are specified, then B must be added too. The reason why B/Zba/Zbb/Zbs must coexist at the same time is that unlike other single-letter extensions, B was ratified (Apr/2024) much later than its component extensions Zba/Zbb/Zbs (Jun/2021). When "b" is specified, zba/zbb/zbs must also be present to ensure backward compatibility with existing software and kernels that only look for the explicit component strings. When all three components zba/zbb/zbs are specified, "b" should also be present. Making "b" mandatory when all three components are present. Existing devicetrees with zba/zbb/zbs but without "b" will generate warnings that can be fixed in follow-up patches. Signed-off-by: Guodong Xu --- v3: Update the commit message to explain the retionale why B and Zba/Zbb/Zbs should all exist in DT. v2: New patch. --- .../devicetree/bindings/riscv/extensions.yaml | 31 ++++++++++++++++++= ++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Docu= mentation/devicetree/bindings/riscv/extensions.yaml index 5bab356addc848abf8240991ff525c619b9fc0dc..e026b366c8f5dbe7d6988d3ed37= 4183c165de35a 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -109,6 +109,13 @@ properties: The standard C extension for compressed instructions, as ratif= ied in the 20191213 version of the unprivileged ISA specification. =20 + - const: b + description: + The standard B extension for bit manipulation instructions, as + ratified in the 20240411 version of the unprivileged ISA + specification. The B standard extension comprises instructions + provided by the Zba, Zbb, and Zbs extensions. + - const: v description: The standard V extension for vector operations, as ratified @@ -749,6 +756,30 @@ properties: then: contains: const: f + # B comprises Zba, Zbb, and Zbs + - if: + contains: + const: b + then: + allOf: + - contains: + const: zba + - contains: + const: zbb + - contains: + const: zbs + # Zba, Zbb, Zbs together require B + - if: + allOf: + - contains: + const: zba + - contains: + const: zbb + - contains: + const: zbs + then: + contains: + const: b # Zcb depends on Zca - if: contains: --=20 2.43.0