Skip to content

Commit b415168

Browse files
Monish ChunaraKomal-Bajaj
authored andcommitted
arm64: dts: qcom: Add SD Card support for shikra SoC
Add support for SD card on shikra SoC and enable the required pinctrl configurations. Signed-off-by: Monish Chunara <quic_mchunara@quicinc.com>
1 parent cba9fe2 commit b415168

1 file changed

Lines changed: 91 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/shikra.dtsi

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,53 @@
415415
bias-bus-hold;
416416
};
417417
};
418+
419+
sdc2_default: sdc2-default-state {
420+
clk-pins {
421+
pins = "sdc2_clk";
422+
drive-strength = <14>;
423+
bias-disable;
424+
};
425+
426+
cmd-pins {
427+
pins = "sdc2_cmd";
428+
drive-strength = <14>;
429+
bias-pull-up;
430+
};
431+
432+
data-pins {
433+
pins = "sdc2_data";
434+
drive-strength = <14>;
435+
bias-pull-up;
436+
};
437+
};
438+
439+
sdc2_sleep: sdc2-sleep-state {
440+
clk-pins {
441+
pins = "sdc2_clk";
442+
drive-strength = <2>;
443+
bias-disable;
444+
};
445+
446+
cmd-pins {
447+
pins = "sdc2_cmd";
448+
drive-strength = <2>;
449+
bias-pull-up;
450+
};
451+
452+
data-pins {
453+
pins = "sdc2_data";
454+
drive-strength = <2>;
455+
bias-pull-up;
456+
};
457+
};
458+
459+
sdc2_card_det_n: sd-card-det-n-state {
460+
pins = "gpio89";
461+
function = "gpio";
462+
drive-strength = <2>;
463+
bias-pull-up;
464+
};
418465
};
419466

420467
mem_noc: interconnect@d00000 {
@@ -598,6 +645,50 @@
598645
};
599646
};
600647

648+
sdhc_2: mmc@4784000 {
649+
compatible = "qcom,shikra-sdhci", "qcom,sdhci-msm-v5";
650+
reg = <0x0 0x4784000 0x0 0x1000>;
651+
652+
interrupts = <GIC_SPI 350 IRQ_TYPE_LEVEL_HIGH>,
653+
<GIC_SPI 353 IRQ_TYPE_LEVEL_HIGH>;
654+
interrupt-names = "hc_irq", "pwr_irq";
655+
656+
bus-width = <4>;
657+
658+
clocks = <&gcc GCC_SDCC2_AHB_CLK>,
659+
<&gcc GCC_SDCC2_APPS_CLK>,
660+
<&rpmcc RPM_SMD_XO_CLK_SRC>;
661+
clock-names = "iface", "core", "xo";
662+
663+
qcom,dll-config = <0x0007442c>;
664+
qcom,ddr-config = <0x80040868>;
665+
666+
iommus = <&apps_smmu 0x0a0 0x0>;
667+
668+
interconnects = <&system_noc MASTER_SDCC_2 QCOM_ICC_TAG_ALWAYS
669+
&mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>,
670+
<&mem_noc MASTER_AMPSS_M0 QCOM_ICC_TAG_ACTIVE_ONLY
671+
&config_noc SLAVE_SDCC_2 QCOM_ICC_TAG_ACTIVE_ONLY>;
672+
interconnect-names = "sdhc-ddr","cpu-sdhc";
673+
operating-points-v2 = <&sdhc2_opp_table>;
674+
675+
status = "disabled";
676+
677+
sdhc2_opp_table: opp-table-2 {
678+
compatible = "operating-points-v2";
679+
680+
opp-100000000 {
681+
opp-hz = /bits/ 64 <100000000>;
682+
required-opps = <&rpmpd_opp_low_svs>;
683+
};
684+
685+
opp-202000000 {
686+
opp-hz = /bits/ 64 <202000000>;
687+
required-opps = <&rpmpd_opp_nom>;
688+
};
689+
};
690+
};
691+
601692
adreno_smmu: iommu@59a0000 {
602693
compatible = "qcom,shikra-smmu-500", "qcom,smmu-500", "arm,mmu-500";
603694
reg = <0x0 0x059a0000 0x0 0x10000>;

0 commit comments

Comments
 (0)