From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 C34342571CC for ; Sun, 11 May 2025 13:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746970874; cv=none; b=Dwp/vgkLDy81EvNOIkOkcd/yyuDN4ogeXrxVGbpLvWUhKBgqdyDl4tqugRKOcJdS6L6V5P9tCYaG37WDrdzVakvRtF345hwMRYLlEnTfNulvYnTM8b4wcy+JX/eeCqrP8QlAPm1bVu76mgGgeNy0S+CXV4HEdEN2Li/+xb+MFRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746970874; c=relaxed/simple; bh=Ex+H6kUov6djH3C9rKVRJ9dQnhJuv3Xa/XrHZBJXO04=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IhQ4cYiN8QTVagZ4rkjKfg4dr1x9EpIc+y8ril2Ylh8SPE3j1zKGbdf46Py/TTIbPMC3qNUAo5QiPMWxIsotoj0aSEnxqceIOvur7UFsqCPmt1ZPkYrK9LBfw3I5tuk+ogvEGXqm3FwiHOCjwMmE8ve3FT8cJWi2goxq8y2HTKY= 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=WynOEITZ; arc=none smtp.client-ip=209.85.214.174 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="WynOEITZ" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-22fa414c565so25112015ad.2 for ; Sun, 11 May 2025 06:41:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1746970872; x=1747575672; 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=RoI4ZQkvSe+gzPq+S2m1Njfoq5y1QbcsqoJbpZojWCQ=; b=WynOEITZV2hGDzpP+KNQbEFkFBBwPsgXpuL8ZmgxkWqrDcd6aZSuMUyfFRpAqGZnRX qM0V958zLYZ1jYFkP/4N/C4ZtKFmwMDwdrkd4KgIXYpyqpVuOFh6hKwhGIWd0Xa5ZCpJ Ul03BCu0826Xh26GzVYWve8HI1Iwgoy6EWtM9ImOug3b3jhYYii6oMhxWPHqg2IakfxK TZJe5Ht/MgQPl7Nnv2oq/NyMiyRxwgfE2WsQAM6jerwQLyrz+FXeQUoCSeZML4o7J2fH k9oObciO9USl+cUZ9BBdTtxw44ZXaDaMXo8bjr1vldTKPvfIsg+xUuL1zjMch6r6l9pu qzOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746970872; x=1747575672; 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=RoI4ZQkvSe+gzPq+S2m1Njfoq5y1QbcsqoJbpZojWCQ=; b=MCI9AZqQDpPGwrqUvG18dtTRAULY/W3MMMSFNCMUfjS0LH644gafY0cwCkMPAsy93a 1AXzODqNsvYmyxusWrTH6zeUkjaFy0//CePBIaaLJKDmalffeJrbYR/mB9fJ62lH/ILn ZwGAm6PJcUr3d5Z0k5vOY2998upwaX+pxKGNTiMFgAfN92iS0dRAaXHrFHWrkdqIrdb0 KbEGjAQ35mqlFmU0Kz/sHKZY4kVTuo3+RUYZcsdezI/BkYJllf6cJtT/Rv6gNGyF2upQ qZ2BwqdQcu1kcFO4mpJk8QXEHkmJjpDaD/zyoU9no2qe9hnJE9vqab/ZUogPjCmxfvSD 8Spw== X-Forwarded-Encrypted: i=1; AJvYcCU6vlwU2ld3yYgG7sYMnhwCGwgt8/NvHQjYRgXn8xCglbAieCjkC6CWkgHoNP0D5Kf7IZ3TUXGXld0=@vger.kernel.org X-Gm-Message-State: AOJu0Yx5xdUJ+lvp6cRxS6u5AfNLE9MKiiuiGxb621/GyobcCiMw884T r+x1UlOhQGxuL2uWo5lZidL/h13Vf6FIiCrv1ayUoi5Dytg9hKRrMf1nahn72n4= X-Gm-Gg: ASbGncv83J7ZPZtcZxt+7iTwhyqJDh1DNrWN0OTk8Q/F4TkOU8lj6p1bpK2v6CHx4xb PQfX/s0+Vv5M0ctE7GkjCj3yOfCCG4GAQsPaPG33B6+yU7BuMTZDH8GH8p05h3bXQxF3sBPUXOb H8CaEjuDToSCaf0pWlFKL//pVPKjYRQBDecQCCudbePr6OzLppwQfSUVXYoq3HV9/1/A6syv+45 5oTKgBtqFWhSm8MuZZ80HFKCdZsTaI2iH1FigCcGj3BX1A1TBMSnwOiNTsBUDTcWlbNRJYJUsiI 42i2608yQKb1DM56cg8MgZaXD7qEMHOGBnaRw7nLp1rmQrhM4bk+Kq6TwveUm3ynnaHKefivxB5 xoWYSOT3L8Pssjg== X-Google-Smtp-Source: AGHT+IFOsC3u7BRod28w2sEoeDfkPdrCH+VUf8yCcNu+XE6UmNmhrKz2V4ln4eo8Qilt/cRL+1dLxQ== X-Received: by 2002:a17:902:e94d:b0:224:f12:3735 with SMTP id d9443c01a7336-22fc8b7c82amr158337005ad.31.1746970871937; Sun, 11 May 2025 06:41:11 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 May 2025 06:41:11 -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 08/23] dt-bindings: clock: Add RPMI clock service message proxy bindings Date: Sun, 11 May 2025 19:09:24 +0530 Message-ID: <20250511133939.801777-9-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: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add device tree bindings for the RPMI clock service group based message proxy implemented by the SBI implementation (machine mode firmware or hypervisor). The RPMI clock service group is defined by the RISC-V platform management interface (RPMI) specification. Signed-off-by: Anup Patel --- .../bindings/clock/riscv,rpmi-mpxy-clock.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/riscv,rpmi-mpxy-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/riscv,rpmi-mpxy-clock.yaml b/Documentation/devicetree/bindings/clock/riscv,rpmi-mpxy-clock.yaml new file mode 100644 index 000000000000..39db52de86b3 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/riscv,rpmi-mpxy-clock.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/riscv,rpmi-mpxy-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RISC-V RPMI clock 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 clock service group for accessing + system clocks managed by a platform microcontroller. The SBI implementation + (machine mode firmware or hypervisor) can implement an SBI MPXY channel + to allow RPMI clock 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-clock + + 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: + - | + clock-controller { + compatible = "riscv,rpmi-mpxy-clock"; + mboxes = <&rpmi_shmem_mbox 0x8>; + riscv,sbi-mpxy-channel-id = <0x1000>; + }; +... -- 2.43.0