[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251203032107.31388-1-q691800735@163.com>
Date: Wed, 3 Dec 2025 11:21:07 +0800
From: q691800735@....com
To: Paul Walmsley <pjw@...nel.org>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>
Cc: Alexandre Ghiti <alex@...ti.fr>,
linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org,
devicetree@...r.kernel.org,
jybruceupup <q691800735@....com>
Subject: [PATCH] dt-bindings: soc: canaan: Add K230 power domain bindings
From: jybruceupup <q691800735@....com>
Add device tree bindings for the Kendryte K230 power management domains
(PM domains), which control power gating of core peripherals (I2C, SPI,
MMC, AI2D).
Key properties:
- compatible: "canaan,k230-pm-domains"
This binding follows the Devicetree Specification v0.4 and upstream
PM domain framework requirements. It is a prerequisite for peripheral
drivers requiring power gating control.
Signed-off-by: jybruceupup <q691800735@....com>
---
MAINTAINERS | 1 +
include/dt-bindings/soc/canaan,k230_pm_domains.h | 13 +++++++++++++
2 files changed, 14 insertions(+)
create mode 100644 include/dt-bindings/soc/canaan,k230_pm_domains.h
diff --git a/MAINTAINERS b/MAINTAINERS
index 4d456982a..13cdbf647 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -22106,6 +22106,7 @@ P: Documentation/arch/riscv/patch-acceptance.rst
T: git git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git
F: arch/riscv/
F: arch/riscv/configs/k230_defconfig
+F: include/dt-bindings/soc/canaan,k230_pm_domains.h
N: riscv
K: riscv
diff --git a/include/dt-bindings/soc/canaan,k230_pm_domains.h b/include/dt-bindings/soc/canaan,k230_pm_domains.h
new file mode 100644
index 000000000..e212126e4
--- /dev/null
+++ b/include/dt-bindings/soc/canaan,k230_pm_domains.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _DT_BINDINGS_SOC_K230_PM_DOMAINS_H
+#define _DT_BINDINGS_SOC_K230_PM_DOMAINS_H
+
+#define K230_PM_DOMAIN_CPU1 0 /* CPU1 subsystem */
+#define K230_PM_DOMAIN_AI 1 /* AI Subsystem */
+#define K230_PM_DOMAIN_DISP 2 /* Display, 2.5D Engine */
+#define K230_PM_DOMAIN_VPU 3 /* Video subsystem */
+#define K230_PM_DOMAIN_DPU 4 /* 3D-struct Engine */
+#define K230_PM_DOMAIN_MAX 5
+
+#endif /* _DT_BINDINGS_SOC_K230_PM_DOMAINS_H */
--
2.52.0
Powered by blists - more mailing lists