1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/mmc/sdhci-msm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SDHCI controller (sdhci-msm)
10 - Bhupesh Sharma <bhupesh.sharma@linaro.org>
13 Secure Digital Host Controller Interface (SDHCI) present on
14 Qualcomm SOCs supports SD/MMC/SDIO devices.
34 - const: qcom,sdhci-msm-v4 # for sdcc versions less than 5.0
61 - const: qcom,sdhci-msm-v5 # for sdcc version 5.0
74 - description: Main peripheral bus clock, PCLK/HCLK - AHB Bus clock
75 - description: SDC MMC clock, MCLK
76 - description: TCXO clock
77 - description: clock for Inline Crypto Engine
78 - description: SDCC bus voter clock
79 - description: reference clock for RCLK delay calibration
80 - description: sleep clock for RCLK delay calibration
111 Should specify pin control groups used for this controller.
115 Should specify sleep pin control groups used for this controller.
121 $ref: /schemas/types.yaml#/definitions/uint32
122 description: platform specific settings for DDR_CONFIG reg.
125 $ref: /schemas/types.yaml#/definitions/uint32
126 description: platform specific settings for DLL_CONFIG reg.
132 phandle to apps_smmu node with sid mask.
137 - description: data path, sdhc to ddr
138 - description: config path, cpu to sdhc
147 description: A phandle to sdhci power domain node
150 operating-points-v2: true
153 '^opp-table(-[a-z0-9]+)?$':
157 const: operating-points-v2
172 - $ref: sdhci-common.yaml#
185 - description: Host controller register map
186 - description: SD Core register map
187 - description: CQE register map
188 - description: Inline Crypto Engine register map
201 - description: Host controller register map
202 - description: CQE register map
203 - description: Inline Crypto Engine register map
211 unevaluatedProperties: false
215 #include <dt-bindings/interrupt-controller/arm-gic.h>
216 #include <dt-bindings/clock/qcom,gcc-sm8250.h>
217 #include <dt-bindings/clock/qcom,rpmh.h>
218 #include <dt-bindings/power/qcom,rpmhpd.h>
220 sdhc_2: mmc@8804000 {
221 compatible = "qcom,sm8250-sdhci", "qcom,sdhci-msm-v5";
222 reg = <0 0x08804000 0 0x1000>;
224 interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
225 <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
226 interrupt-names = "hc_irq", "pwr_irq";
228 clocks = <&gcc GCC_SDCC2_AHB_CLK>,
229 <&gcc GCC_SDCC2_APPS_CLK>,
230 <&rpmhcc RPMH_CXO_CLK>;
231 clock-names = "iface", "core", "xo";
232 iommus = <&apps_smmu 0x4a0 0x0>;
233 qcom,dll-config = <0x0007642c>;
234 qcom,ddr-config = <0x80040868>;
235 power-domains = <&rpmhpd RPMHPD_CX>;
237 operating-points-v2 = <&sdhc2_opp_table>;
239 sdhc2_opp_table: opp-table {
240 compatible = "operating-points-v2";
243 opp-hz = /bits/ 64 <19200000>;
244 required-opps = <&rpmhpd_opp_min_svs>;
248 opp-hz = /bits/ 64 <50000000>;
249 required-opps = <&rpmhpd_opp_low_svs>;
253 opp-hz = /bits/ 64 <100000000>;
254 required-opps = <&rpmhpd_opp_svs>;
258 opp-hz = /bits/ 64 <202000000>;
259 required-opps = <&rpmhpd_opp_svs_l1>;