diff mbox series

[RFC,v2,17/19] riscv: dts: thead: Introduce power domain nodes with aon firmware

Message ID 20241223125553.3527812-18-m.wilczynski@samsung.com (mailing list archive)
State New
Headers show
Series [RFC,v2,01/19] dt-bindings: clock: Add VO subsystem clocks and update address requirements | expand

Checks

Context Check Description
conchuod/vmtest-for-next-PR fail PR summary
conchuod/patch-17-test-1 success .github/scripts/patches/tests/build_rv32_defconfig.sh took 102.66s
conchuod/patch-17-test-2 success .github/scripts/patches/tests/build_rv64_clang_allmodconfig.sh took 983.06s
conchuod/patch-17-test-3 success .github/scripts/patches/tests/build_rv64_gcc_allmodconfig.sh took 1150.27s
conchuod/patch-17-test-4 success .github/scripts/patches/tests/build_rv64_nommu_k210_defconfig.sh took 15.92s
conchuod/patch-17-test-5 success .github/scripts/patches/tests/build_rv64_nommu_virt_defconfig.sh took 17.59s
conchuod/patch-17-test-6 success .github/scripts/patches/tests/checkpatch.sh took 0.34s
conchuod/patch-17-test-7 success .github/scripts/patches/tests/dtb_warn_rv64.sh took 35.73s
conchuod/patch-17-test-8 success .github/scripts/patches/tests/header_inline.sh took 0.00s
conchuod/patch-17-test-9 success .github/scripts/patches/tests/kdoc.sh took 0.48s
conchuod/patch-17-test-10 success .github/scripts/patches/tests/module_param.sh took 0.01s
conchuod/patch-17-test-11 success .github/scripts/patches/tests/verify_fixes.sh took 0.00s
conchuod/patch-17-test-12 success .github/scripts/patches/tests/verify_signedoff.sh took 0.03s

Commit Message

Michal Wilczynski Dec. 23, 2024, 12:55 p.m. UTC
The DRM Imagination GPU requires a power-domain driver. In the T-HEAD
TH1520 SoC implements power management capabilities through the E902
core, which can be communicated with through the mailbox, using firmware
protocol.

Add AON node, as a parent for the power-domain controller.

Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
---
 arch/riscv/boot/dts/thead/th1520.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi
index 0993de0cdd44..d4090074fd27 100644
--- a/arch/riscv/boot/dts/thead/th1520.dtsi
+++ b/arch/riscv/boot/dts/thead/th1520.dtsi
@@ -6,6 +6,7 @@ 
 
 #include <dt-bindings/interrupt-controller/irq.h>
 #include <dt-bindings/clock/thead,th1520-clk-ap.h>
+#include <dt-bindings/power/thead,th1520-power.h>
 
 / {
 	compatible = "thead,th1520";
@@ -229,6 +230,19 @@  stmmac_axi_config: stmmac-axi-config {
 		snps,blen = <0 0 64 32 0 0 0>;
 	};
 
+	firmware {
+		aon: aon {
+			compatible = "thead,th1520-aon";
+			mboxes = <&mbox_910t 1>;
+			mbox-names = "aon";
+
+			pd: power-domain {
+				compatible = "thead,th1520-pd";
+				#power-domain-cells = <1>;
+			};
+		};
+	};
+
 	soc {
 		compatible = "simple-bus";
 		interrupt-parent = <&plic>;