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
62 - const: qcom,sdhci-msm-v5 # for sdcc version 5.0
75 - description: Main peripheral bus clock, PCLK/HCLK - AHB Bus clock
76 - description: SDC MMC clock, MCLK
77 - description: TCXO clock
78 - description: clock for Inline Crypto Engine
79 - description: SDCC bus voter clock
80 - description: reference clock for RCLK delay calibration
81 - description: sleep clock for RCLK delay calibration
89 - enum: [ice, bus, cal, sleep]
90 - enum: [ice, bus, cal, sleep]
91 - enum: [ice, bus, cal, sleep]
92 - enum: [ice, bus, cal, sleep]
112 Should specify pin control groups used for this controller.
116 Should specify sleep pin control groups used for this controller.
122 $ref: /schemas/types.yaml#/definitions/uint32
123 description: platform specific settings for DDR_CONFIG reg.
126 $ref: /schemas/types.yaml#/definitions/uint32
127 description: platform specific settings for DLL_CONFIG reg.
133 phandle to apps_smmu node with sid mask.
138 - description: data path, sdhc to ddr
139 - description: config path, cpu to sdhc
148 description: A phandle to sdhci power domain node
151 operating-points-v2: true
154 '^opp-table(-[a-z0-9]+)?$':
158 const: operating-points-v2
173 - $ref: sdhci-common.yaml#
186 - description: Host controller register map
187 - description: SD Core register map
188 - description: CQE register map
189 - description: Inline Crypto Engine register map
202 - description: Host controller register map
203 - description: CQE register map
204 - description: Inline Crypto Engine register map
212 unevaluatedProperties: false
216 #include <dt-bindings/interrupt-controller/arm-gic.h>
217 #include <dt-bindings/clock/qcom,gcc-sm8250.h>
218 #include <dt-bindings/clock/qcom,rpmh.h>
219 #include <dt-bindings/power/qcom,rpmhpd.h>
221 sdhc_2: mmc@8804000 {
222 compatible = "qcom,sm8250-sdhci", "qcom,sdhci-msm-v5";
223 reg = <0 0x08804000 0 0x1000>;
225 interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
226 <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
227 interrupt-names = "hc_irq", "pwr_irq";
229 clocks = <&gcc GCC_SDCC2_AHB_CLK>,
230 <&gcc GCC_SDCC2_APPS_CLK>,
231 <&rpmhcc RPMH_CXO_CLK>;
232 clock-names = "iface", "core", "xo";
233 iommus = <&apps_smmu 0x4a0 0x0>;
234 qcom,dll-config = <0x0007642c>;
235 qcom,ddr-config = <0x80040868>;
236 power-domains = <&rpmhpd RPMHPD_CX>;
238 operating-points-v2 = <&sdhc2_opp_table>;
240 sdhc2_opp_table: opp-table {
241 compatible = "operating-points-v2";
244 opp-hz = /bits/ 64 <19200000>;
245 required-opps = <&rpmhpd_opp_min_svs>;
249 opp-hz = /bits/ 64 <50000000>;
250 required-opps = <&rpmhpd_opp_low_svs>;
254 opp-hz = /bits/ 64 <100000000>;
255 required-opps = <&rpmhpd_opp_svs>;
259 opp-hz = /bits/ 64 <202000000>;
260 required-opps = <&rpmhpd_opp_svs_l1>;