Enable SDHC2 on the CQS EVK and retain its pinctrl
and regulator dependencies in the SPL device tree.

Add the MMC sequence-1 alias and describe the removable
SD slot with its supplies, reset, and 100 MHz limit.

Do not add cd-gpios. SPL selects the boot source from PBL
state and handles the selected SD device in board code.

Signed-off-by: Abhilash V <[email protected]>
---
 arch/arm/dts/shikra-cqs-evk-u-boot.dtsi | 19 +++++++++++++++++++
 arch/arm/dts/shikra-cqs-evk.dts         | 14 ++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/arch/arm/dts/shikra-cqs-evk-u-boot.dtsi 
b/arch/arm/dts/shikra-cqs-evk-u-boot.dtsi
index e8831da6aa7..8e2ae723938 100644
--- a/arch/arm/dts/shikra-cqs-evk-u-boot.dtsi
+++ b/arch/arm/dts/shikra-cqs-evk-u-boot.dtsi
@@ -48,6 +48,25 @@
        bootph-all;
 };
 
+&sdc2_default {
+       bootph-all;
+       clk-pins { bootph-all; };
+       cmd-pins { bootph-all; };
+       data-pins { bootph-all; };
+};
+
+&sdc2_sleep {
+       bootph-all;
+       clk-pins { bootph-all; };
+       cmd-pins { bootph-all; };
+       data-pins { bootph-all; };
+};
+
+&sdc2_card_det_n { bootph-all; };
+&sdhc_2 { bootph-all; };
+&pm4125_l18 { bootph-all; };
+&pm4125_l22 { bootph-all; };
+
 &qupv3_0 {
        bootph-all;
 };
diff --git a/arch/arm/dts/shikra-cqs-evk.dts b/arch/arm/dts/shikra-cqs-evk.dts
index b3f19a64d7a..23f416e6fe1 100644
--- a/arch/arm/dts/shikra-cqs-evk.dts
+++ b/arch/arm/dts/shikra-cqs-evk.dts
@@ -15,6 +15,7 @@
 
        aliases {
                mmc0 = &sdhc_1;
+               mmc1 = &sdhc_2;
                serial0 = &uart0;
        };
 
@@ -38,3 +39,16 @@
 
        status = "okay";
 };
+
+&sdhc_2 {
+       resets = <&gcc GCC_SDCC2_BCR>;
+       vmmc-supply = <&pm4125_l22>;
+       vqmmc-supply = <&pm4125_l18>;
+       max-frequency = <100000000>;
+       no-sdio;
+       no-mmc;
+       pinctrl-0 = <&sdc2_default &sdc2_card_det_n>;
+       pinctrl-1 = <&sdc2_sleep &sdc2_card_det_n>;
+       pinctrl-names = "default", "sleep";
+       status = "okay";
+};
-- 
2.34.1

Reply via email to