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

Remove sdhci 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 90585883b0598b39f8ecdc244411d68bd997521b..5169a718f79c7e63cf8014f1fc09f41e4d68b482 100644 (file)
        clock-frequency = <62500000>;
 };
 
-&sdhci_clk {
-       clock-frequency = <198000000>;
-};
-
 &spi_clk {
        clock-frequency = <396000000>;
 };
index 1c5c7075ae1744cec089eb91f611021a60f01a15..be982a3ac18c39f3a006de2084659efcb4a398fc 100644 (file)
        clock-frequency = <62500000>;
 };
 
-&sdhci_clk {
-       clock-frequency = <198000000>;
-};
-
 &spi_clk {
        clock-frequency = <396000000>;
 };
index a543be8d6e378ea94ea8e86a42db5e70eb2fd0d7..f3b2f8236096f95f066d2ac587e932ee18f2b4d3 100644 (file)
                #clock-cells = <0>;
        };
 
-       sdhci_clk: sdhci-clock {
-               compatible = "fixed-clock";
-               clock-frequency = <198000000>;
-               clock-output-names = "sdhci_clk";
-               #clock-cells = <0>;
-       };
-
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&plic>;
                        compatible = "thead,th1520-dwcmshc";
                        reg = <0xff 0xe7080000 0x0 0x10000>;
                        interrupts = <62 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&sdhci_clk>;
+                       clocks = <&clk CLK_EMMC_SDIO>;
                        clock-names = "core";
                        status = "disabled";
                };
                        compatible = "thead,th1520-dwcmshc";
                        reg = <0xff 0xe7090000 0x0 0x10000>;
                        interrupts = <64 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&sdhci_clk>;
+                       clocks = <&clk CLK_EMMC_SDIO>;
                        clock-names = "core";
                        status = "disabled";
                };
                        compatible = "thead,th1520-dwcmshc";
                        reg = <0xff 0xe70a0000 0x0 0x10000>;
                        interrupts = <71 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&sdhci_clk>;
+                       clocks = <&clk CLK_EMMC_SDIO>;
                        clock-names = "core";
                        status = "disabled";
                };