riscv: dts: thead: Add TH1520 AP_SUBSYS clock controller
authorDrew Fustini <dfustini@tenstorrent.com>
Thu, 1 Aug 2024 18:38:05 +0000 (11:38 -0700)
committerDrew Fustini <drew@pdp7.com>
Thu, 8 Aug 2024 16:19:45 +0000 (09:19 -0700)
Add node for the AP_SUBSYS clock controller on the T-Head TH1520 SoC.

Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf
Link: https://git.beagleboard.org/beaglev-ahead/beaglev-ahead/-/tree/main/docs
Signed-off-by: Drew Fustini <dfustini@tenstorrent.com>
arch/riscv/boot/dts/thead/th1520.dtsi

index aa703da30fc38881e6a0749d8e8e4523b4d0a711..25ef5ee729e608b27aa6fa634ed5d9058be86b9a 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/clock/thead,th1520-clk-ap.h>
 
 / {
        compatible = "thead,th1520";
                        status = "disabled";
                };
 
+               clk: clock-controller@ffef010000 {
+                       compatible = "thead,th1520-clk-ap";
+                       reg = <0xff 0xef010000 0x0 0x1000>;
+                       clocks = <&osc>;
+                       #clock-cells = <1>;
+               };
+
                dmac0: dma-controller@ffefc00000 {
                        compatible = "snps,axi-dma-1.01a";
                        reg = <0xff 0xefc00000 0x0 0x1000>;