Skip to content

Commit cf5e81d

Browse files
Michal Wilczynskipdp7
authored andcommitted
riscv: dts: thead: th1520: Add GPU clkgen reset to AON node
Add the "gpu-clkgen" reset property to the AON device tree node. This allows the AON power domain driver to detect the capability to power sequence the GPU and spawn the necessary pwrseq-thead-gpu auxiliary driver for managing the GPU's complex power sequence. This commit also adds the prerequisite dt-bindings/reset/thead,th1520-reset.h include to make the TH1520_RESET_ID_GPU_CLKGEN available. This include was previously dropped during a conflict resolution [1]. Link: https://lore.kernel.org/all/aAvfn2mq0Ksi8DF2@x1/ [1] Reviewed-by: Ulf Hansson <[email protected]> Reviewed-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Drew Fustini <[email protected]> Signed-off-by: Michal Wilczynski <[email protected]> Signed-off-by: Drew Fustini <[email protected]>
1 parent 19272b3 commit cf5e81d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/riscv/boot/dts/thead/th1520.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <dt-bindings/interrupt-controller/irq.h>
88
#include <dt-bindings/clock/thead,th1520-clk-ap.h>
99
#include <dt-bindings/power/thead,th1520-power.h>
10+
#include <dt-bindings/reset/thead,th1520-reset.h>
1011

1112
/ {
1213
compatible = "thead,th1520";
@@ -234,6 +235,8 @@
234235
compatible = "thead,th1520-aon";
235236
mboxes = <&mbox_910t 1>;
236237
mbox-names = "aon";
238+
resets = <&rst TH1520_RESET_ID_GPU_CLKGEN>;
239+
reset-names = "gpu-clkgen";
237240
#power-domain-cells = <1>;
238241
};
239242

0 commit comments

Comments
 (0)