[PATCH v3 1/8] dt-bindings: power: Add T-HEAD TH1520 GPU power sequencer
Michal Wilczynski
m.wilczynski at samsung.com
Thu May 29 15:23:48 PDT 2025
Introduce device tree bindings for a new power sequencer provider
dedicated to the T-HEAD TH1520 SoC's GPU.
The thead,th1520-gpu-pwrseq compatible designates a node that will
manage the complex power-up and power-down sequence for the GPU. This
sequencer requires a handle to the GPU's clock generator reset line
(gpu-clkgen), which is specified in its device tree node.
This binding will be used by a new pwrseq driver to abstract the
SoC specific power management details from the generic GPU driver.
Signed-off-by: Michal Wilczynski <m.wilczynski at samsung.com>
---
.../bindings/power/thead,th1520-pwrseq.yaml | 42 ++++++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 43 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/thead,th1520-pwrseq.yaml b/Documentation/devicetree/bindings/power/thead,th1520-pwrseq.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..4c302abfb76fb9e243946f4eefa333c6b02e59d3
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/thead,th1520-pwrseq.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/power/thead,th1520-pwrseq.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: T-HEAD TH1520 GPU Power Sequencer
+
+maintainers:
+ - Michal Wilczynski <m.wilczynski at samsung.com>
+
+description: |
+ This binding describes the power sequencer for the T-HEAD TH1520 GPU.
+ This sequencer handles the specific power-up and power-down sequences
+ required by the GPU, including managing clocks and resets from both the
+ sequencer and the GPU device itself.
+
+properties:
+ compatible:
+ const: thead,th1520-gpu-pwrseq
+
+ resets:
+ description: A phandle to the GPU clock generator reset.
+ maxItems: 1
+
+ reset-names:
+ const: gpu-clkgen
+
+required:
+ - compatible
+ - resets
+ - reset-names
+
+additionalProperties: false
+
+examples:
+ - |
+ gpu_pwrseq: pwrseq {
+ compatible = "thead,th1520-gpu-pwrseq";
+ resets = <&rst 0>;
+ reset-names = "gpu-clkgen";
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 0d59a5910e632350a4d72a761c6c5ce1d3a1bc34..78e3067df1152929de638244b03264733d08556e 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -21355,6 +21355,7 @@ F: Documentation/devicetree/bindings/firmware/thead,th1520-aon.yaml
F: Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
F: Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
F: Documentation/devicetree/bindings/pinctrl/thead,th1520-pinctrl.yaml
+F: Documentation/devicetree/bindings/power/thead,th1520-pwrseq.yaml
F: Documentation/devicetree/bindings/reset/thead,th1520-reset.yaml
F: arch/riscv/boot/dts/thead/
F: drivers/clk/thead/clk-th1520-ap.c
--
2.34.1
More information about the linux-riscv
mailing list