From: Christian Marangi <ansuelsmth@gmail.com>
To: MyungJoo Ham <myungjoo.ham@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Christian Marangi <ansuelsmth@gmail.com>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/2] dt-bindings: devfreq: Document support for Airoha Subsystem devfreq
Date: Mon, 10 Aug 2026 16:30:54 +0200 [thread overview]
Message-ID: <20260810143057.651478-1-ansuelsmth@gmail.com> (raw)
Airoha SoC contains multiple subsystem that are scaled to a
specific OPP taking the CPU clock as reference. Such sybsystem
can enter idle or performance state based on the system load
and power consumption conditions.
Example of such subsystem are GSW (Gigabit Switch), NPU (Custom
Risc Co-Processor for Network acceleration), SOE (Crypto Module) BUS...
Document all the required property and provide examples for the various
subsystem OPP + devfreq nodes.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
.../bindings/devfreq/airoha,devfreq.yaml | 114 ++++++++++++++++++
1 file changed, 114 insertions(+)
create mode 100644 Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml
diff --git a/Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml b/Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml
new file mode 100644
index 000000000000..2f84486cb209
--- /dev/null
+++ b/Documentation/devicetree/bindings/devfreq/airoha,devfreq.yaml
@@ -0,0 +1,114 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/devfreq/airoha,devfreq.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha SoC Subsystem Devfreq
+
+maintainers:
+ - Christian Marangi <ansuelsmth@gmail.com>
+
+description:
+ Airoha SoC contains multiple subsystem that are scaled to a
+ specific OPP taking the CPU clock as reference. Such sybsystem
+ can enter idle or performance state based on the system load
+ and power consumption conditions.
+
+ Example of such subsystem are GSW (Gigabit Switch), NPU (Custom
+ Risc Co-Processor for Network acceleration), SOE (Crypto Module) BUS...
+
+properties:
+ compatible:
+ const: airoha,devfreq
+
+ clocks:
+ maxItems: 1
+
+ operating-points-v2:
+ description:
+ OPP table of the related subsystem supported rates that referenced
+ clocks will be scaled to.
+
+required:
+ - compatible
+ - clocks
+ - operating-points-v2
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/en7523-clk.h>
+
+ npu_opp_table: opp-table-npu {
+ compatible = "operating-points-v2";
+
+ npu_low: opp-400000000 {
+ opp-hz = /bits/ 64 <400000000>;
+ };
+
+ npu_high: opp-720000000 {
+ opp-hz = /bits/ 64 <720000000>;
+ };
+ };
+
+ emi_opp_table: opp-table-emi {
+ compatible = "operating-points-v2";
+
+ emi_low: opp-400000000 {
+ opp-hz = /bits/ 64 <400000000>;
+ };
+
+ emi_high: opp-540000000 {
+ opp-hz = /bits/ 64 <540000000>;
+ };
+ };
+
+ bus_opp_table: opp-table-bus {
+ compatible = "operating-points-v2";
+
+ bus_low: opp-200000000 {
+ opp-hz = /bits/ 64 <200000000>;
+ };
+
+ bus_high: opp-300000000 {
+ opp-hz = /bits/ 64 <300000000>;
+ };
+ };
+
+ gsw_opp_table: opp-table-gsw {
+ compatible = "operating-points-v2";
+
+ gsw_low: opp-200000000 {
+ opp-hz = /bits/ 64 <200000000>;
+ };
+
+ gsw_high: opp-500000000 {
+ opp-hz = /bits/ 64 <500000000>;
+ };
+ };
+
+ npu-devfreq {
+ compatible = "airoha,devfreq";
+ operating-points-v2 = <&npu_opp_table>;
+ clocks = <&scuclk EN7523_CLK_NPU>;
+ };
+
+ emi-devfreq {
+ compatible = "airoha,devfreq";
+ operating-points-v2 = <&emi_opp_table>;
+ clocks = <&scuclk EN7523_CLK_EMI>;
+ };
+
+ bus-devfreq {
+ compatible = "airoha,devfreq";
+ operating-points-v2 = <&bus_opp_table>;
+ clocks = <&scuclk EN7523_CLK_BUS>;
+ };
+
+ gsw-devfreq {
+ compatible = "airoha,devfreq";
+ operating-points-v2 = <&gsw_opp_table>;
+ clocks = <&scuclk EN7523_CLK_GSW>;
+ };
--
2.53.0
next reply other threads:[~2026-08-10 14:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-10 14:30 Christian Marangi [this message]
2026-08-10 14:30 ` [PATCH 2/2] PM / devfreq: add Airoha SoC devfreq driver Christian Marangi
2026-08-10 14:57 ` sashiko-bot
2026-08-10 14:39 ` [PATCH 1/2] dt-bindings: devfreq: Document support for Airoha Subsystem devfreq sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260810143057.651478-1-ansuelsmth@gmail.com \
--to=ansuelsmth@gmail.com \
--cc=conor+dt@kernel.org \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.