1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
5 $id: "http://devicetree.org/schemas/mmc/sdhci-msm.yaml#"
6 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
8 title: Qualcomm SDHCI controller (sdhci-msm)
11 - Bhupesh Sharma <bhupesh.sharma@linaro.org>
14 Secure Digital Host Controller Interface (SDHCI) present on
15 Qualcomm SOCs supports SD/MMC/SDIO devices.
34 - const: qcom,sdhci-msm-v4 # for sdcc versions less than 5.0
51 - const: qcom,sdhci-msm-v5 # for sdcc version 5.0
64 - description: Main peripheral bus clock, PCLK/HCLK - AHB Bus clock
65 - description: SDC MMC clock, MCLK
66 - description: TCXO clock
67 - description: clock for Inline Crypto Engine
68 - description: SDCC bus voter clock
69 - description: reference clock for RCLK delay calibration
70 - description: sleep clock for RCLK delay calibration
99 Should specify pin control groups used for this controller.
103 Should specify sleep pin control groups used for this controller.
109 $ref: /schemas/types.yaml#/definitions/uint32
110 description: platform specific settings for DDR_CONFIG reg.
113 $ref: /schemas/types.yaml#/definitions/uint32
114 description: platform specific settings for DLL_CONFIG reg.
120 phandle to apps_smmu node with sid mask.
124 - description: data path, sdhc to ddr
125 - description: config path, cpu to sdhc
133 description: A phandle to sdhci power domain node
146 operating-points-v2: true
149 '^opp-table(-[a-z0-9]+)?$':
153 const: operating-points-v2
168 - $ref: mmc-controller.yaml#
181 - description: Host controller register map
182 - description: SD Core register map
183 - description: CQE register map
184 - description: Inline Crypto Engine register map
197 - description: Host controller register map
198 - description: CQE register map
199 - description: Inline Crypto Engine register map
207 unevaluatedProperties: false
211 #include <dt-bindings/interrupt-controller/arm-gic.h>
212 #include <dt-bindings/clock/qcom,gcc-sm8250.h>
213 #include <dt-bindings/clock/qcom,rpmh.h>
214 #include <dt-bindings/power/qcom-rpmpd.h>
216 sdhc_2: mmc@8804000 {
217 compatible = "qcom,sm8250-sdhci", "qcom,sdhci-msm-v5";
218 reg = <0 0x08804000 0 0x1000>;
220 interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
221 <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
222 interrupt-names = "hc_irq", "pwr_irq";
224 clocks = <&gcc GCC_SDCC2_AHB_CLK>,
225 <&gcc GCC_SDCC2_APPS_CLK>,
226 <&rpmhcc RPMH_CXO_CLK>;
227 clock-names = "iface", "core", "xo";
228 iommus = <&apps_smmu 0x4a0 0x0>;
229 qcom,dll-config = <0x0007642c>;
230 qcom,ddr-config = <0x80040868>;
231 power-domains = <&rpmhpd SM8250_CX>;
233 operating-points-v2 = <&sdhc2_opp_table>;
235 sdhc2_opp_table: opp-table {
236 compatible = "operating-points-v2";
239 opp-hz = /bits/ 64 <19200000>;
240 required-opps = <&rpmhpd_opp_min_svs>;
244 opp-hz = /bits/ 64 <50000000>;
245 required-opps = <&rpmhpd_opp_low_svs>;
249 opp-hz = /bits/ 64 <100000000>;
250 required-opps = <&rpmhpd_opp_svs>;
254 opp-hz = /bits/ 64 <202000000>;
255 required-opps = <&rpmhpd_opp_svs_l1>;