From nobody Mon Feb 9 15:07:01 2026 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 73C521FC7E5 for ; Mon, 3 Feb 2025 08:50:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738572605; cv=none; b=lAzy67PhCQhtagpFGyGAPuHU02d1QggRyQRANndMwD23R0Ck1qIMCL9Qt8G/DZfEiylz1FoHNHDNiMK3uXfMJehTeSpL94J8k5UiKVKWE2UIQzYiYfsE2zr+vpLqKjAyQJK3xAd2YoENEbmRhExYBJGsuxmVIpH3+vJ0ADyhS/I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738572605; c=relaxed/simple; bh=QiMGpDjHJVbEJ7WtU+aAmU5WmhVGH1iQ/fXC0sMtGgc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fSWhEcZj+22K6pImuJD3ZLwB1XOyDytnnwRhSe8XcMH/vPGR8odTwPkw8oJ1MkORvApY37mYl9v89ChdY6KAzWICl6xP6oOBv1mBzlsTmQboUGonTqf09P2qqVOKTZZ2wzfZwauaw59d4l0CXJzGjNyvnqeXsNAAGi+K8bzqGd0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=HEKQwqUg; arc=none smtp.client-ip=209.85.160.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="HEKQwqUg" Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-4679eacf25cso26954431cf.3 for ; Mon, 03 Feb 2025 00:50:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1738572602; x=1739177402; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ssg9a8o6gZjpZvchZzGUt0Qt044T+B0HdxLRYjAYuuA=; b=HEKQwqUgZdXjfzfNgrR+BXnA5UxePw+MHAYyIwDuBdXZyLIwl0OyTQFJ4OOdBGLmDG 2pdwNm8izip6EBPh40HaU/Pr8QlcH+z9NSPf+im5LeLPeuB2nYqWaMyEd7Ws6iLAoWaH UE3XGhKsg1LIFN3ZsWUOdwoUH4I7zKywNXN+V02eb4gUbr+r25lgbuC1m12OHcAsE4dv B1K5NyUFhpmCvFUhQNzS6VkI96lVTgX/sHvQPLPColhfBJMu72cYDJ/rSO2HfTWoMm/r PU8f9zTEKQVrjDgAJ+NP8taHuMF6DqjXChDSBV8x5YxW/KW8lFy/YHIRuLdQ/owRKEP+ Czwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738572602; x=1739177402; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ssg9a8o6gZjpZvchZzGUt0Qt044T+B0HdxLRYjAYuuA=; b=ul29L7nPnaPPT6/YxYy0JdVk2g/0hmGaU7A+HuiS1fFlxlRHNvDnt3XeFT1t4izO/D vdbAhs+iAwA85sMOm8EZDoFCNQyRZ1QWqh+wKrlc/V9SC9cOG9GURIKE/tSkppzmpsrr Y05lIoXoq8gd3OgOzWJ/iooRLptyHwsU1uhu9hYK0ZD/Tz2aYo9CblEr7fE/5ffDwoYL Y2ve6On1Yge4C11ejhCKyUkOH2EURQM3iPAO24SAXhVNwqAP8spK0beyo1JA/biATjQs KIvCmqArEeYF4lE2fBRJLiQckrMBG249oGxpFElEi3qifMmCysUixKWnCxb2rWKsHjeV aZ8A== X-Forwarded-Encrypted: i=1; AJvYcCXwM6LoB7Hjop2Xb40tlpy+SPMEIprGyPGa3RI/nBCAiW8TQbrzegoMireW9QHx/f72uJX/H3AvUCnmQoU=@vger.kernel.org X-Gm-Message-State: AOJu0YziFMx30qvTXs2zNLciwR0SK0FaMvM+fSBKtSn294v/edZna4iS Q2NRqcuxNpmFoMaTGBpl2paiLtbPyUvrhkWoStsdb7TvIpgYJLP3p2ZHlsVLsG8= X-Gm-Gg: ASbGncto5xg/Q9MBk2AdrbrrhjsUgai3K1aor2Z+Mg3JF5FPFmTFc+yJtNxjLLgKf98 4IvIGV25J0eafVvvxQW86psoFWf6qWtB+YcpaB5PyfeprSR8OB2FC5xVhJzzUyP6g9Ldrr2c1lT tXfOUievM/gRIRoeKYYPj8GoZcSAoxOgi7srDo2RSD3YPETzigsT/O+sUvqQn4J7UrUX4YMnwg9 IsafXf58qf+ku80/3odqKNA1nnxY9psmYb+qhgJ63nO4g4nxB80bhS0ZHhghtB/ooZ9bp4atkyZ 6tpAMgLlec1aBBpWVpbnOBf3QONbJ0MoCbNljAj77AHcirEna0lJ6MU= X-Google-Smtp-Source: AGHT+IEumBd7wOc/wh3jyz0afWhLZy8y7yKZMAluEJD5UqFuCGfrMInxfJFsvFE/QBEyK9tHDtTWWw== X-Received: by 2002:a05:622a:5108:b0:46f:cc36:d51e with SMTP id d75a77b69052e-46fd0b68b70mr329868001cf.35.1738572602314; Mon, 03 Feb 2025 00:50:02 -0800 (PST) Received: from anup-ubuntu-vm.localdomain ([103.97.166.196]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46fdf0e3089sm47657911cf.46.2025.02.03.00.49.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 00:50:01 -0800 (PST) From: Anup Patel To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jassi Brar , Thomas Gleixner , "Rafael J . Wysocki" , Mika Westerberg , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: Palmer Dabbelt , Paul Walmsley , Len Brown , Sunil V L , Rahul Pathak , Leyfoon Tan , Atish Patra , Andrew Jones , Samuel Holland , Anup Patel , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [RFC PATCH v2 03/17] dt-bindings: mailbox: Add bindings for RISC-V SBI MPXY extension Date: Mon, 3 Feb 2025 14:18:52 +0530 Message-ID: <20250203084906.681418-4-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250203084906.681418-1-apatel@ventanamicro.com> References: <20250203084906.681418-1-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add device tree bindings for the RISC-V SBI Message Proxy (MPXY) extension as a mailbox controller. Signed-off-by: Anup Patel --- .../bindings/mailbox/riscv,sbi-mpxy-mbox.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/riscv,sbi-mpx= y-mbox.yaml diff --git a/Documentation/devicetree/bindings/mailbox/riscv,sbi-mpxy-mbox.= yaml b/Documentation/devicetree/bindings/mailbox/riscv,sbi-mpxy-mbox.yaml new file mode 100644 index 000000000000..8a05e089b710 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/riscv,sbi-mpxy-mbox.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/riscv,sbi-mpxy-mbox.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RISC-V SBI Message Proxy (MPXY) extension based mailbox + +maintainers: + - Anup Patel + +description: | + The RISC-V SBI Message Proxy (MPXY) extension [1] allows supervisor + software to send messages through the SBI implementation (M-mode + firmware or HS-mode hypervisor). The underlying message protocol + and message format used by the supervisor software could be some + other standard protocol compatible with the SBI MPXY extension + (such as RISC-V Platform Management Interface (RPMI) [2]). + + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + References + =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + [1] RISC-V Supervisor Binary Interface (SBI) + https://github.com/riscv-non-isa/riscv-sbi-doc/releases + + [2] RISC-V Platform Management Interface (RPMI) + https://github.com/riscv-non-isa/riscv-rpmi/releases + +properties: + $nodename: + const: sbi-mpxy-mbox + + compatible: + const: riscv,sbi-mpxy-mbox + + "#mbox-cells": + const: 2 + description: + The first cell specifies channel_id of the SBI MPXY channel, + the second cell specifies MSG_PROT_ID of the SBI MPXY channel + +required: + - compatible + - "#mbox-cells" + +additionalProperties: false + +examples: + - | + sbi-mpxy-mbox { + compatible =3D "riscv,sbi-mpxy-mbox"; + #mbox-cells =3D <2>; + }; --=20 2.43.0