]> www.infradead.org Git - linux.git/commitdiff
riscv: dts: thead: change TH1520 SPI node to use clock controller
authorDrew Fustini <dfustini@tenstorrent.com>
Thu, 1 Aug 2024 18:38:10 +0000 (11:38 -0700)
committerDrew Fustini <drew@pdp7.com>
Thu, 8 Aug 2024 16:19:46 +0000 (09:19 -0700)
Change the clock property in the TH1520 SPI controller node to a clock
provided by AP_SYS clock controller.

Remove spi_clk fixed clock reference from BeagleV Ahead and LPI4a dts.

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-beaglev-ahead.dts
arch/riscv/boot/dts/thead/th1520-lichee-module-4a.dtsi
arch/riscv/boot/dts/thead/th1520.dtsi

index 425f07d73b32f352b5cccd6951e963167ea2d536..497d961456f3a1d497af7b337aa63cc2dcdbb2ca 100644 (file)
        clock-frequency = <32768>;
 };
 
-&spi_clk {
-       clock-frequency = <396000000>;
-};
-
 &dmac0 {
        status = "okay";
 };
index 077dbbe4abb6d45895dd4d23caee478c87de5a2e..78977bdbbe3d31a081e1df1b14788ce1ff905daf 100644 (file)
        clock-frequency = <32768>;
 };
 
-&spi_clk {
-       clock-frequency = <396000000>;
-};
-
 &dmac0 {
        status = "okay";
 };
index 5f4f94ca9cc77a809f6254c66df97f543fd560c2..6992060e6a54d2c3391de9d523e6eba1457d2965 100644 (file)
                #clock-cells = <0>;
        };
 
-       spi_clk: spi-clock {
-               compatible = "fixed-clock";
-               clock-output-names = "spi_clk";
-               #clock-cells = <0>;
-       };
-
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&plic>;
                        compatible = "thead,th1520-spi", "snps,dw-apb-ssi";
                        reg = <0xff 0xe700c000 0x0 0x1000>;
                        interrupts = <54 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&spi_clk>;
+                       clocks = <&clk CLK_SPI>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        status = "disabled";