new file mode 100644
@@ -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@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";
+ };
@@ -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
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@samsung.com> --- .../bindings/power/thead,th1520-pwrseq.yaml | 42 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 43 insertions(+)