From mboxrd@z Thu Jan 1 00:00:00 1970 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 A28D8285056 for ; Wed, 18 Jun 2025 12:15:23 +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=1750248926; cv=none; b=bZMULjS+K/fypqV9HNVxOL7eMNlW+p6jj9s/9KdRkWEFJHeXGb6aqkVll32Cl8EYb705mSnemYWRt+RqTktPlVNs+2u2WRJkXNszhiZNsQLYTZHaus04UgORTWFRI7o/et9IXRG56Ksnc9EuDEA2WJKNTo0KxNEecC/U9uO1ipc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750248926; c=relaxed/simple; bh=g/mEKxnduPVnA4j2RQ4xuGgcCbhqHJCjD2NPYnMDHj4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OcapycBFvhsk5YrqAlctQJJKbhU8ifbVh/ZXSiwmLIxvDxOJBVb8q37L3BVgYOf7CXsNXGot6hfK9oJF+LibN1Uz1Hf35em7IeF6N+kW0psJAiDAzS5iEUjHOg7a4WEzQat5Khb5Rol4hneviTvpHhWEa+g4K36Ks0v0q4oZycI= 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=TAgH1ZP3; arc=none smtp.client-ip=209.85.210.169 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="TAgH1ZP3" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-748a42f718aso3289861b3a.2 for ; Wed, 18 Jun 2025 05:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1750248923; x=1750853723; 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=OBBfxF5Fj3S5/9YMcAuYqu1Hni5U+f+rs2XZF3KHDuE=; b=TAgH1ZP3kKhsNGODsyXeNli9EXQ7PGogpHnoXEhZzA/8fl2ylqm5bvWwUI8NXeE4Mj +IAq6jWCh3PI9egHf+u1I6try050Czonj/apiB8KgZbzA1tX+3EjnUMDuIy9LYXWJadK mW6FMuHExilfKdzTqDpHlEFCpl0owJzZXuz7LBxyf68yQlls+dKJWeJZ0wjRufE4U0Ol p2cTgP20pk6jpcNM0n9p3b9Am9pnYyJRx8Nk0sXadqhambZDHVD7JVcMVSkuhRCZpaNE 9le297HeZji7cfXrdTJNSf/0YD0KXv2LbVWXmo/5QMcE8F7M6mEEM/QgFpO4iSo5tjlM BB8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750248923; x=1750853723; 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=OBBfxF5Fj3S5/9YMcAuYqu1Hni5U+f+rs2XZF3KHDuE=; b=bhN00WnwfqVv55bYSm1kVAgx6lhSZb9Mw3YChjMi24MpYSDTeDIL85I3tezfzng8C5 VcgP/QxpSQDIFWFwp9QbIVBbQQ+9TEe0KCl+I3kODROPWgtLb2gYNRadctbI9x6ahz3h 0d1uSqmeO1E3aGwYSPcQaLBAJAG2RZD4qtR0DXSus8SzUx1YrMyKM1YhHVOJrcXEcYfO Hf3HHl+YipGictbPu3H+FtwGEjdY7ODJiAMRlE9JZLXFyKsVVYeZfN+6IhEYUt/Movi3 vhrtqWEwU2nrF2Bz97327HJK/pSUJWLVYAnTTJdx7nxEVxcgtH0tIn+1VPCwiH0qygbr LR5w== X-Forwarded-Encrypted: i=1; AJvYcCVPOZcSO6dIVvcVlDr5ihToG/wFI1JRmHSpgNVmOGfOT2DNoCZj9zMDnHdoFlhbfwt36+F34tLA1UI=@vger.kernel.org X-Gm-Message-State: AOJu0YxKtkS9LaiyajCIuWQ0upXm1oZM3WNy6gq3zFXXMf8TfHPeHBKP 45dWMwnzvFsGV9OTTRR9eYWm/toi2z18cEgPJRsZOT52vQ7RF0Gk7+giPlxlfFV6IqI= X-Gm-Gg: ASbGncut2mnwVfr2mB6rlXiLl2RLWc2Ekl8OOuzj9CuuPF32GW5PpU4Tkm6Ych8+RfU rpa1NnVDm97xNcNUGW2zM/Atxtuau7HFtzTPRjYpdqXz7SyhPmhsPofqlU12EYOu6KVSEHY2xeX kdLSPUAakbuOZEoXPHcR8dYELDPbsGtpZ97LKpJk4PJ7W7wsrxC+Ehea7v72ZjcNKBFLCKxNZYJ wgJHbzcwLWOovxxLLfjQVGhL7rLYrxApsi1mLaS5pZbfi8gzHa+SCl/4Z5m12Dp0ghQsSzSGBqG rBWjrzzWOqvQ2YCDKbgTOD7pNtw+WwOraLfxWztn2sIb5PsNtGmYXwTJN8XH+c0RQB1FjAhzsmH 0OrgMALDoFIggqO+CMAB3/wg/XPjx X-Google-Smtp-Source: AGHT+IFMKwBOWWxohctdj1ZfYXunjODSapma1HKAoKx1zL6qjMZuHVAg90lx4/8R5CLCW9migGeDbg== X-Received: by 2002:a05:6a00:b4b:b0:742:a91d:b2f5 with SMTP id d2e1a72fcca58-7489cffc1d9mr21468139b3a.13.1750248922660; Wed, 18 Jun 2025 05:15:22 -0700 (PDT) Received: from localhost.localdomain ([122.171.23.44]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-748900d7e0asm11201177b3a.174.2025.06.18.05.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jun 2025 05:15:22 -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 , Conor Dooley Subject: [PATCH v6 08/23] dt-bindings: clock: Add RPMI clock service controller bindings Date: Wed, 18 Jun 2025 17:43:43 +0530 Message-ID: <20250618121358.503781-9-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250618121358.503781-1-apatel@ventanamicro.com> References: <20250618121358.503781-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 controller for the supervisor software. The RPMI clock service group is defined by the RISC-V platform management interface (RPMI) specification. Reviewed-by: Conor Dooley Signed-off-by: Anup Patel --- .../bindings/clock/riscv,rpmi-clock.yaml | 64 +++++++++++++++++++ 1 file changed, 64 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..5d62bf8215c8 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/riscv,rpmi-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-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) v1.0 (or higher) + https://github.com/riscv-non-isa/riscv-rpmi/releases + + [2] RISC-V Supervisor Binary Interface (SBI) v3.0 (or higher) + 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 + description: + Platform specific CLOCK_ID as defined by the RISC-V Platform Management + Interface (RPMI) specification. + +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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BAF0C77B7C for ; Wed, 18 Jun 2025 13:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tx1joVQv5DHtGma5MlB0exKVQp984e/weT3hC7gOusQ=; b=JOF8+dxW7TjENc ub4gO7BjT9ySBtx3G2ujqYTFlxp/N+PP8FRpUpKxKQtpKKFT6PYbFriOAhhVCSlVZ92Mc1Vj3jIOc /hbcWM01JDnqV0hT8sawpS6z5AA0wPJx1uZXPE8egWM5SUbwNqnWf1Ut7c+QSqDkbnNmJU+9pni8J YDsqM5ar2Jf757rqyFo/YkEU8nze+by+02U6p1jNIj2nE66vI+r0YKeDY3ZmXf0yqYulY4YskKEjk cC0XvyumXtlfkt95+iPS489+Q4W+CxUaIdPoDYzDJr8LEF127+CNLaxJjlj/RqY1Tjk9yR6XgT1vq Ue7p54awzPdTfEcwGZMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uRsoO-0000000AHcc-2uF2; Wed, 18 Jun 2025 13:26:44 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uRrhL-0000000A5PA-31mm for linux-riscv@lists.infradead.org; Wed, 18 Jun 2025 12:15:25 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-748764d8540so5900736b3a.0 for ; Wed, 18 Jun 2025 05:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1750248923; x=1750853723; darn=lists.infradead.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=OBBfxF5Fj3S5/9YMcAuYqu1Hni5U+f+rs2XZF3KHDuE=; b=Q/pX/l1U5lgj4l81TawIDue3SIaP42NwVO2+kbs4dNCi1jVnupqIeYzWy5vDxRHRce 9N0dQo5OCnTemlNiz9q6epsJFqKB4K3gFLwLp3smJTUbGUrW8luEC9fGJpiT3svbaEiD QizfbueBM/maoPr3PXz8B7/aXi3NHRyCFAWy2JVUUM5nEFxOfg3EkjJYQ9V9VJY7fQ+5 rE/4aQbDIiFWpIhwFpjsBss0Vs/2tu6nJMvIzIXd9TTbBQcskwJTa1KkgR3Z0I0J75cb 9T6yWwMvXykdWilT+pXq41mj28Ui9oH0A/O1IPD5HO+KKwdd3ZDnMIar0hfe4j1TbG28 PiBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750248923; x=1750853723; 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=OBBfxF5Fj3S5/9YMcAuYqu1Hni5U+f+rs2XZF3KHDuE=; b=YwbxSlvF9eer3OWjjqXNJTAlx2CQo7rN3nI6ZjQcKo2RzbFwLDvIkywu+H2h8QFlZe npN19K8tFatrWTstoF+C51MaDbw6m64633NM4iuYuI+1yUONdSEiVgBNtI9NsKc7Y7PF bETwryuGRI+zQua9sfpbIS4CVmZ6+A/nWaQV4+l+jPUGgaXz68JPIxoqkTg6dK89tBrv pn6+5Z7mEt6xrUIfWab6noDk0h7iIRseg2GgxJoi8goCyg4aDa2WsGmm1n9UkAfEZz2H aAnwjITznzeCTfGr9yyO/F7fgtaKgu5HD9+La/sDyKP8koiobwGSAJO8A2PRvkV/M/p/ FCnQ== X-Forwarded-Encrypted: i=1; AJvYcCW/cIUpULosgtZXYchZVhSwyS2vMkdHT65JF5IOZ2sdQkaVXccIJiMipgk1Z2xnt4GTb95ZYNUjDhfyyA==@lists.infradead.org X-Gm-Message-State: AOJu0YzxaJSnJpeWqi4N/n96M2U1nGiZ8+w3noXN+g1/pBpw8Wmh7evt 0AnP6ibawGlrTQN+RUDH3ihX4cUvuEWVYYZTCMaqE4c7G3WusSBnxvu/M1eTa5pk5LY= X-Gm-Gg: ASbGncsbpBOpv+b7Z2cT1MpU9urI27qSYsF/yqpVlZng0tfqc/WEF0Hp+D2i14IecbF YKLGeq53BY7esCEs1PooA12VeLWXaxuN1MjkOB/jqMxi5my1G36ELhLL50BsCxjc0Nk45vMgeOQ EV4nW+OJNhkGZ2yHxWXHBRq3Sg9nj08antcpemBRcQEwUxD1rMDzSni/sMItvEMjNn4QQJ5sY+P tgxiZwN4XWKXuvLoHQJsYvVTN4R0JCpYCs4d08Em4qq/rKhfmnKAqCszUZJox1QfhhHAfrICUuN FKw3vKBZuSEuJj8weQowYahu/FNpoLG4m0Dys2cEavY55S5mzlpwaa8Ttf2MaMQ9VI6LkMjMwHr khFnuqoH54Iir0lUxt5hgn1A5450u X-Google-Smtp-Source: AGHT+IFMKwBOWWxohctdj1ZfYXunjODSapma1HKAoKx1zL6qjMZuHVAg90lx4/8R5CLCW9migGeDbg== X-Received: by 2002:a05:6a00:b4b:b0:742:a91d:b2f5 with SMTP id d2e1a72fcca58-7489cffc1d9mr21468139b3a.13.1750248922660; Wed, 18 Jun 2025 05:15:22 -0700 (PDT) Received: from localhost.localdomain ([122.171.23.44]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-748900d7e0asm11201177b3a.174.2025.06.18.05.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jun 2025 05:15:22 -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?= Subject: [PATCH v6 08/23] dt-bindings: clock: Add RPMI clock service controller bindings Date: Wed, 18 Jun 2025 17:43:43 +0530 Message-ID: <20250618121358.503781-9-apatel@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250618121358.503781-1-apatel@ventanamicro.com> References: <20250618121358.503781-1-apatel@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250618_051523_759464_C4A77F79 X-CRM114-Status: GOOD ( 13.28 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anup Patel , devicetree@vger.kernel.org, Andrew Jones , Atish Patra , Leyfoon Tan , Anup Patel , linux-kernel@vger.kernel.org, Samuel Holland , Conor Dooley , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, Len Brown , linux-clk@vger.kernel.org, Rahul Pathak Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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. Reviewed-by: Conor Dooley Signed-off-by: Anup Patel --- .../bindings/clock/riscv,rpmi-clock.yaml | 64 +++++++++++++++++++ 1 file changed, 64 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..5d62bf8215c8 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/riscv,rpmi-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-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) v1.0 (or higher) + https://github.com/riscv-non-isa/riscv-rpmi/releases + + [2] RISC-V Supervisor Binary Interface (SBI) v3.0 (or higher) + 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 + description: + Platform specific CLOCK_ID as defined by the RISC-V Platform Management + Interface (RPMI) specification. + +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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv