From 46406e9db9d32a9e21eb4efe214dfc0690844d8f Mon Sep 17 00:00:00 2001 From: Ziqi Chen Date: Thu, 19 Oct 2023 18:52:52 -0700 Subject: [PATCH 1/2] ARM: dts: qcom: Add is_rumi for sun RUMI Due to RUMI limitations only HS mode is supported on RUMI for SD cards, add DT flag is_rumi for sun RUMI to enable SD card on HS mode. Change-Id: Ib962ddb24cf89f2058760d1cfbff80db058fd216 Signed-off-by: Ziqi Chen --- qcom/sun-rumi.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/sun-rumi.dtsi b/qcom/sun-rumi.dtsi index 40813c62..79dc6ccb 100644 --- a/qcom/sun-rumi.dtsi +++ b/qcom/sun-rumi.dtsi @@ -221,6 +221,8 @@ resets = <&gcc GCC_SDCC2_BCR>; reset-names = "core_reset"; + + is_rumi; }; &VDD_MMCX_LEVEL { From e4199f6cf92fae54db7c7e89a5a8c6c4ee2c716f Mon Sep 17 00:00:00 2001 From: Ziqi Chen Date: Thu, 17 Aug 2023 01:39:23 -0700 Subject: [PATCH 2/2] ARM: dts: qcom: Add uses_level_shifter for sun When this "qcom,uses_level_shifter" DT entry is present but "qcom,external-fb-clk" is not present, the SD card's HS50 mode is run at 37.5MHz clock. This is to work around a latency issue caused by the addition of the Level Shifter logic. In order to use the 50MHz clock in HS50 mode, there are two ways: - Keep "qcom,uses_level_shifter" and "qcom,external-fb-clk" and make sure the Feedback Clock (FB CLK) connection between the Level Shifter and the MSM must be good. - Remove "qcom,uses_level_shifter" from DT. Please note that the "qcom,external-fb-clk" depends on "qcom,uses_level_shifter", only set "qcom,external-fb-clk" would not take effect. Change-Id: Ib3a4cf5c9c20e2094556c3196d91b7e9723e0a1e Signed-off-by: Ziqi Chen --- qcom/sun-cdp.dtsi | 2 ++ qcom/sun-mtp.dtsi | 2 ++ qcom/sun-qrd.dtsi | 2 ++ 3 files changed, 6 insertions(+) diff --git a/qcom/sun-cdp.dtsi b/qcom/sun-cdp.dtsi index b9035d0e..c80f4b94 100644 --- a/qcom/sun-cdp.dtsi +++ b/qcom/sun-cdp.dtsi @@ -175,4 +175,6 @@ resets = <&gcc GCC_SDCC2_BCR>; reset-names = "core_reset"; + + qcom,uses_level_shifter; }; diff --git a/qcom/sun-mtp.dtsi b/qcom/sun-mtp.dtsi index 7bb276e5..874a459e 100644 --- a/qcom/sun-mtp.dtsi +++ b/qcom/sun-mtp.dtsi @@ -244,4 +244,6 @@ resets = <&gcc GCC_SDCC2_BCR>; reset-names = "core_reset"; + + qcom,uses_level_shifter; }; diff --git a/qcom/sun-qrd.dtsi b/qcom/sun-qrd.dtsi index f4d30995..25a99b77 100644 --- a/qcom/sun-qrd.dtsi +++ b/qcom/sun-qrd.dtsi @@ -183,4 +183,6 @@ resets = <&gcc GCC_SDCC2_BCR>; reset-names = "core_reset"; + + qcom,uses_level_shifter; };