From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.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 9B14F1BBBFD for ; Sun, 25 May 2025 08:48:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748162922; cv=none; b=roMlQGSSGeoSpzUwtBveOYgYRBvfGlrBzCeji/IFLCEK3XDWrZR37SBlIS5iPCHPmnxqgl2B0lgg6et91CI3zP7MB0SsdGseB2dFTITd5rfDMPANhkCsi16ylvBVj7mpuHbQo3SNJegJafdBOgK7B5gUftZMPpno/g86C6h7HXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748162922; c=relaxed/simple; bh=Q274OnfG3podIQmVKmeGWN09V8KF3qj8jlwfrCOnBJY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NmdpnRY21rSuenD5eSmaJPkTG+pkXp4rgiNxtqW9B5gR1Ht0RxU9Nr+MuDCZC/tHghaovrrke2uuCFChXuKPmOo5zZPomLmjg7iGCyMjuht41FU76WcgdS1TkIZc0dj+kQHj5NWrbDsmWPMawAHwCTYKZM/lz0xYAYiR5a/zNNM= 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=HxCuwtn0; arc=none smtp.client-ip=209.85.210.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="HxCuwtn0" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7426c44e014so1023033b3a.3 for ; Sun, 25 May 2025 01:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1748162920; x=1748767720; 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=cYmzV5+laFQZlY1OUMxuPLa7G32W7v4o4U3ZvBmHKpM=; b=HxCuwtn0gy8YQpVaZ/DqyOYs+FDe88YLvUYkbeOgNQazfou4atN6bfO9ujK4v3uyow 0NMfEBBT25gFjMoSN0QCcBQz7RA2sOZVCug6pVcJcX7iAUO0cQVA5C0jys7oUehBBHOs a9qrlztxJPoey3HuuRtlMzF4sCuU70OrT28yVzEKPWsyo6+jAhUq5Ipm742w1JEMp5ST El83n3S7IPfUZPi4MJJKtYIJOeMvFvJuKkmE6lCH7JI+XkcyF33F00nrvnVaohJeTybz BKYp47WnVt1/aEQog2huNBY2FuHGtplLIu5AxV8xT81cRq0jU9H51Z2LAp2x2Zue9QjP jC8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748162920; x=1748767720; 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=cYmzV5+laFQZlY1OUMxuPLa7G32W7v4o4U3ZvBmHKpM=; b=EGhDUD+pYNlKDc9XUgzRu3qgDzvizEx/duZxBuiTr4YbkMWw7xBz9jdS0N8apF08A/ uBVKZn57XnvqaNJt/FY8Jg7ZN889kFM2WSPqsb/p4F/i6bYn6jDrmNIoSZSNV0CNjEiH CYrXpUBjCOAaOlJtiulgDe0UPQRJ9taIZkp/1da0cq361qiKONM3zzKLFTp7CK3sHqSZ ILaSFLX7XP54BVcmi3BtrPYRndpUXnwPEN9P8yh27AvEkb9GXeROz0nvOPd/MGgA6/79 LR5MHLTTZyiQFe5+qDqBqBQROgdzEsFskE4VSmywQpkYW08fZp+Ht4e/fFqlTiwmBI1J nCJw== X-Forwarded-Encrypted: i=1; AJvYcCUq1RGDpCubmQZ56vw11jcVkcrraky4Ebphf0UIuFz4RKdefX9LiHndT8WupgLUmGOk1GWpZCU9pqi1@vger.kernel.org X-Gm-Message-State: AOJu0YynhWgcuYH0OtUfS3f1+oMhzNxaxtpY8kxk54yLtJQNzpmO/bpj 51JuJZTiPZXfPiYLvS56t4s3TSeuNDjeNxDOZFIjIVPUR2Q2DTUTzhKfBl/k6FJgGgo= X-Gm-Gg: ASbGnctL5pQjn/k3ZdY2AcD0PLnSoSg5W81IJmMGBtKC+k+RHB2QGhL4deDHppAsWEU j7xg1Q8GQNUA4NiKAtApT3QpMGSjwKKZXHi5c/g8OMc84NcEiXK3ZTj6e85lJjTFRsjctx/xunW 06XSQ1Mr0tZEUCuGP3EO4EHHvKPIx4gfcmyJno4bzNbLRYPeQ4KyHwHkTQKgb7KnsZy7Km9sgp4 YJ5W1nCFXzr+GJkHSmqpezbwkUmNOAB9GD5L5laPsYuiKTLwoBXhlp9aQr5B9T87DhlN1+qQYqw mWDUVUF4mOTzM8g0OX+7wRSfWXaOfroZOf/NCEsk2+iX452kGvauT8xiOfU9Sc9kbHtjwEyKEqK WXL0YFTIZLl7y4MQ4Src= X-Google-Smtp-Source: AGHT+IHUnb/u4n1K3qHty9R2e5pY494m3bRF78DjZ/CBOUPR5X0ZgCZesJiwyw+6JH9lhPQ/s8o6iw== X-Received: by 2002:a05:6a21:8ccb:b0:215:d38f:11d1 with SMTP id adf61e73a8af0-2188c37f541mr9574210637.29.1748162919824; Sun, 25 May 2025 01:48:39 -0700 (PDT) Received: from localhost.localdomain ([122.171.22.180]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b26eaf6dd83sm15250627a12.18.2025.05.25.01.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 May 2025 01:48:39 -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 v4 09/23] dt-bindings: clock: Add RPMI clock service controller bindings Date: Sun, 25 May 2025 14:16:56 +0530 Message-ID: <20250525084710.1665648-10-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250525084710.1665648-1-apatel@ventanamicro.com> References: <20250525084710.1665648-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 clock service group based controller for the supervisor software. 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-clock.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/riscv,rpmi-clock.yaml diff --git a/Documentation/devicetree/bindings/clock/riscv,rpmi-clock.yaml b/Documentation/devicetree/bindings/clock/riscv,rpmi-clock.yaml new file mode 100644 index 000000000000..9c672a38595a --- /dev/null +++ b/Documentation/devicetree/bindings/clock/riscv,rpmi-clock.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/riscv,rpmi-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RISC-V RPMI clock service group based clock controller + +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 supervisor + software can access RPMI clock service group via SBI MPXY channel or + some dedicated supervisor-mode RPMI transport. + + =========================================== + 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 supervisor software. + const: riscv,rpmi-clock + + mboxes: + maxItems: 1 + description: + Mailbox channel of the underlying RPMI transport or SBI message proxy channel. + + "#clock-cells": + const: 1 + +required: + - compatible + - mboxes + - "#clock-cells" + +additionalProperties: false + +examples: + - | + clock-controller { + compatible = "riscv,rpmi-clock"; + mboxes = <&mpxy_mbox 0x1000 0x0>; + #clock-cells = <1>; + }; +... -- 2.43.0