]> www.infradead.org Git - users/willy/xarray.git/commitdiff
riscv: dts: thead: Introduce power domain nodes with aon firmware
authorMichal Wilczynski <m.wilczynski@samsung.com>
Wed, 19 Feb 2025 14:02:37 +0000 (15:02 +0100)
committerDrew Fustini <dfustini@tenstorrent.com>
Tue, 15 Apr 2025 02:04:44 +0000 (19:04 -0700)
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, which servers as a power-domain controller.

Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Reviewed-by: Drew Fustini <drew@pdp7.com>
Signed-off-by: Drew Fustini <drew@pdp7.com>
arch/riscv/boot/dts/thead/th1520.dtsi

index 527336417765d8470426f2985e1bc22eeafb31aa..fa7985e89d45931d1b80e4ee0f2e156a3f8283ee 100644 (file)
@@ -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";
                snps,blen = <0 0 64 32 0 0 0>;
        };
 
+       aon: aon {
+               compatible = "thead,th1520-aon";
+               mboxes = <&mbox_910t 1>;
+               mbox-names = "aon";
+               #power-domain-cells = <1>;
+       };
+
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&plic>;