Skip to content

Commit 4067065

Browse files
jbrun3tsuperna9999
authored andcommitted
arm64: dts: amlogic: gx: assign the MMC signal clocks
The amlogic MMC driver operate with the assumption that MMC clock is configured to provide 24MHz. It uses this path for low rates such as 400kHz. Assign the clocks to make sure they are properly configured Fixes: 5066249 ("ARM64: dts: meson-gx: Use correct mmc clock source 0") Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260114-amlogic-mmc-clocks-followup-v1-4-a999fafbe0aa@baylibre.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 13d3fe2 commit 4067065

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,9 @@
824824
<&clkc CLKID_FCLK_DIV2>;
825825
clock-names = "core", "clkin0", "clkin1";
826826
resets = <&reset RESET_SD_EMMC_A>;
827+
828+
assigned-clocks = <&clkc CLKID_SD_EMMC_A_CLK0>;
829+
assigned-clock-rates = <24000000>;
827830
};
828831

829832
&sd_emmc_b {
@@ -832,6 +835,9 @@
832835
<&clkc CLKID_FCLK_DIV2>;
833836
clock-names = "core", "clkin0", "clkin1";
834837
resets = <&reset RESET_SD_EMMC_B>;
838+
839+
assigned-clocks = <&clkc CLKID_SD_EMMC_B_CLK0>;
840+
assigned-clock-rates = <24000000>;
835841
};
836842

837843
&sd_emmc_c {
@@ -840,6 +846,9 @@
840846
<&clkc CLKID_FCLK_DIV2>;
841847
clock-names = "core", "clkin0", "clkin1";
842848
resets = <&reset RESET_SD_EMMC_C>;
849+
850+
assigned-clocks = <&clkc CLKID_SD_EMMC_C_CLK0>;
851+
assigned-clock-rates = <24000000>;
843852
};
844853

845854
&simplefb_hdmi {

arch/arm64/boot/dts/amlogic/meson-gxl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,9 @@
894894
<&clkc CLKID_FCLK_DIV2>;
895895
clock-names = "core", "clkin0", "clkin1";
896896
resets = <&reset RESET_SD_EMMC_A>;
897+
898+
assigned-clocks = <&clkc CLKID_SD_EMMC_A_CLK0>;
899+
assigned-clock-rates = <24000000>;
897900
};
898901

899902
&sd_emmc_b {
@@ -902,6 +905,9 @@
902905
<&clkc CLKID_FCLK_DIV2>;
903906
clock-names = "core", "clkin0", "clkin1";
904907
resets = <&reset RESET_SD_EMMC_B>;
908+
909+
assigned-clocks = <&clkc CLKID_SD_EMMC_B_CLK0>;
910+
assigned-clock-rates = <24000000>;
905911
};
906912

907913
&sd_emmc_c {
@@ -910,6 +916,9 @@
910916
<&clkc CLKID_FCLK_DIV2>;
911917
clock-names = "core", "clkin0", "clkin1";
912918
resets = <&reset RESET_SD_EMMC_C>;
919+
920+
assigned-clocks = <&clkc CLKID_SD_EMMC_C_CLK0>;
921+
assigned-clock-rates = <24000000>;
913922
};
914923

915924
&simplefb_hdmi {

0 commit comments

Comments
 (0)