mediatek: mt7981: setup all clocks needed for eMMC
authorDaniel Golle <daniel@makrotopia.org>
Tue, 23 May 2023 01:14:32 +0000 (02:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 24 May 2023 18:26:52 +0000 (19:26 +0100)
Setup all necessary clocks to get MMC to work on MT7981, similar to
how it is done also on MT7986.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit a9989b30d01e534288928d7ef48df3eb9fe3150b)

target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7981.dtsi

index dbcf4bb28b84201184e33df135aa15183f0881f6..95b548143b43b0964110d75fb8293cf9e5301a2f 100644 (file)
                                        "mediatek,mt7981-mmc";
                reg = <0 0x11230000 0 0x1000>, <0 0x11c20000 0 0x1000>;
                interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
-               clocks = <&topckgen CLK_TOP_EMMC_208M>,
-                               <&topckgen CLK_TOP_EMMC_400M>,
-                               <&infracfg CLK_INFRA_MSDC_CK>;
+               clocks = <&infracfg CLK_INFRA_MSDC_CK>,
+                        <&infracfg CLK_INFRA_MSDC_HCK_CK>,
+                        <&infracfg CLK_INFRA_MSDC_66M_CK>,
+                        <&infracfg CLK_INFRA_MSDC_133M_CK>;
                assigned-clocks = <&topckgen CLK_TOP_EMMC_208M_SEL>,
                                  <&topckgen CLK_TOP_EMMC_400M_SEL>;
                assigned-clock-parents = <&topckgen CLK_TOP_CB_M_D2>,
                                         <&topckgen CLK_TOP_CB_NET2_D2>;
-               clock-names = "source", "hclk", "source_cg";
+               clock-names = "source", "hclk", "axi_cg", "ahb_cg";
                status = "disabled";
        };