From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 4C5FE257AE4 for ; Sun, 11 May 2025 13:41:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746970900; cv=none; b=OGNMUIHjBRxUrUoUFExHi3bO7xCm9gH5BSKCT7WO4Cjw2B2h72QT1kCUBtg6JdjORoKWINrf9EBHoKQRYkCvE2P2QjZU+kNyDCPrONVGBSCTEdlz7/48DR7VFjgTWI/M1TKHRtiSpdg36H3LE+joLMm0I9E0iuAt2CsADsIX5YU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746970900; c=relaxed/simple; bh=NxBFGj+cri1SvClLb1edobZ1wrGwRBkx4SOQ21bAQOo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VZNbOaa0+3VMxbgBBM4aV+dFt9dYnoJ5iPYyKJUq0RbFxX+NpmCCd33fS344LNF1wreY7hyA094KuSCyR+IQnBybyLB4/N4m1GUdGL3YePaSPSpb62vnWGNjAlLB2RnEXk4Syq4quCG2tnnFDLEXfwFNEIcdiCQr52LbeXBflfw= 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=Rrc80lsm; arc=none smtp.client-ip=209.85.214.170 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="Rrc80lsm" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-22fcf9cf3c2so21271845ad.0 for ; Sun, 11 May 2025 06:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1746970897; x=1747575697; 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=GNEVmZiv/q5DSw1yW2Dhni3TymNMhn7fmeMDnXK+LxM=; b=Rrc80lsmtVoLHAuMp2yCVcoX+jT3h+8w8rFGo1uF01x8fopV3S5otHKUQCVHuyfCdE fiSfwW4b4IgYZhEftZUOEuUapoYK1B2k892LvKWuRFNuGFgp0PRlvLCVD1BnlRarDoNy yX2owwCNe1NxaER3+z7Lp4W9VNwtSFNAJ+mDlCrcZSkjqklBWqq6uC9MftZu0OeOWoz5 Mvilppr659x/i6puRVIQOzAJkiFAapzRU8NMA7YSYqiMWCXgEmKWnc1hP7hYPNVl6iFl cY4tu1DxxJucBCjofhGifb3UsigCWGencNR3oLPHpsFahN6Wx0sG8VFqSfLsYnDi4owc 1TSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746970897; x=1747575697; 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=GNEVmZiv/q5DSw1yW2Dhni3TymNMhn7fmeMDnXK+LxM=; b=J9G7Kc4V4XBeWEr/fuXdOsqykzbtGw8T96NvjTfKV7QuWdqyTcLy2C3ZUvHq6kHi2p eSYKl8SVGw/LWVwynsa11uuhRDSUFzzbNzvLRB+BNDf7QCmfAIWuiJchdLm53ovEslu+ NwRiepwaSwb2NigKepxiUxwClhPl9OXIdgFDHCjXxg9EDbUgxQvpWccxtdKBVx+9SPeQ KIYUEMDY4ghVH0DSFQzTO90uy/dH18bhoQRrvTLOOON5+VPVPn0B8M0aCqpMSr76IKLW C/9cHdCUGRql+C5hSD98Cn7zcJng62edN1nCBniDcqaaIC5w9yxgc0wMVeO8d8Vg+J/q FR1g== X-Forwarded-Encrypted: i=1; AJvYcCUohqnmVabnYmLKPAkMRqeZni+fz/jBb2nMTvWAfkS+TgDzi2pje6XSoTcEZ9dNgqL+46vq4uof/hWt@vger.kernel.org X-Gm-Message-State: AOJu0YxqpwaQsgaamU6DoqQrJm71VmYxehp/l8hagvMuie+lpgWQ3WA4 Rt0eTRozDbdU1G0rD9+EeUJJJKwzXFqeza0n74vWAwGbN5iVhKhFXExB/qTApYo= X-Gm-Gg: ASbGncvgza8TYFMKJ2oArPODfyLMOV1py4ZcxwpK1yHsLeJdGxVGiS8owrMDUPnNwfo 4/ABMYeav0QSF//lTj0BU+dJulXuSk+dNYr4wYjhINbDqlQNhRIGHIhppFu2cFdbAL2cl7Z2vDR 0CjjMbefWClaZPhw7te+9qE3W80v3SdmiCCQy78lQ6Dn6I3cPGQkab0F0Hol5nHtsxU6eT7VUNV yM+WnOcyUjwTXzCBZFUhk0TNj/Qd2CCyoKz1ixSkunGD3Sfkg5zKjNjHEE66XNkFlv+mnYg+qrr qO8bVNZk8UA6YUBw2REGwlXenX3L4AnFLUoPlrdLG+NwSD1yoceiEKb2FKYoxR3SycKYUQyQb4y Gsz5zIGxg2gt6RQ== X-Google-Smtp-Source: AGHT+IEZtfgx6j1dxRmccdlhlQve03DNV5a4qhTyFu9OpXgdKWOB6OI5l9zeQUqJ0boKf4p0Jt1+Tg== X-Received: by 2002:a17:902:da87:b0:22e:3aaa:8bc5 with SMTP id d9443c01a7336-22fc8c77e28mr174265425ad.24.1746970897361; Sun, 11 May 2025 06:41:37 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([122.171.17.86]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22fc754785bsm46665805ad.20.2025.05.11.06.41.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 May 2025 06:41:36 -0700 (PDT) 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: [PATCH v3 11/23] dt-bindings: Add RPMI system MSI message proxy bindings Date: Sun, 11 May 2025 19:09:27 +0530 Message-ID: <20250511133939.801777-12-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250511133939.801777-1-apatel@ventanamicro.com> References: <20250511133939.801777-1-apatel@ventanamicro.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add device tree bindings for the RPMI system MSI service group based message proxy implemented by the SBI implementation (machine mode firmware or hypervisor). The RPMI system MSI service group is defined by the RISC-V platform management interface (RPMI) specification. Signed-off-by: Anup Patel --- .../riscv,rpmi-mpxy-system-msi.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/riscv,rpmi-mpxy-system-msi.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/riscv,rpmi-mpxy-system-msi.yaml b/Documentation/devicetree/bindings/interrupt-controller/riscv,rpmi-mpxy-system-msi.yaml new file mode 100644 index 000000000000..26dd13731350 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/riscv,rpmi-mpxy-system-msi.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/riscv,rpmi-mpxy-system-msi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RISC-V RPMI system MSI service group based message proxy + +maintainers: + - Anup Patel + +description: | + The RISC-V Platform Management Interface (RPMI) [1] defines a + messaging protocol which is modular and extensible. The supervisor + software can send/receive RPMI messages via SBI MPXY extension [2] + or some dedicated supervisor-mode RPMI transport. + + The RPMI specification [1] defines system MSI service group which + allow application processors to receive MSIs upon system events + such as P2A doorbell, graceful shutdown/reboot request, CPU hotplug + event, memory hotplug event, etc from the platform microcontroller. + The SBI implementation machine mode firmware or hypervisor) can + implement an SBI MPXY channel to allow RPMI system MSI service + group access to the supervisor software. + + =========================================== + References + =========================================== + + [1] RISC-V Platform Management Interface (RPMI) + https://github.com/riscv-non-isa/riscv-rpmi/releases + + [2] RISC-V Supervisor Binary Interface (SBI) + https://github.com/riscv-non-isa/riscv-sbi-doc/releases + +properties: + compatible: + description: + Intended for use by the SBI implementation. + const: riscv,rpmi-mpxy-system-msi + + mboxes: + maxItems: 1 + description: + Mailbox channel of the underlying RPMI transport. + + riscv,sbi-mpxy-channel-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The SBI MPXY channel id to be used for providing RPMI access to + the supervisor software. + +required: + - compatible + - mboxes + - riscv,sbi-mpxy-channel-id + +additionalProperties: false + +examples: + - | + interrupt-controller { + compatible = "riscv,rpmi-mpxy-system-msi"; + mboxes = <&rpmi_shmem_mbox 0x2>; + riscv,sbi-mpxy-channel-id = <0x2000>; + }; +... -- 2.43.0