Qualcomm SDHCI controller (sdhci-msm)

Schema identifier ($id): "http://devicetree.org/schemas/mmc/sdhci-msm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Konrad Dybcio <konradybcio@kernel.org>"

Secure Digital Host Controller Interface (SDHCI) present on Qualcomm SOCs supports SD/MMC/SDIO devices.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sdhci-msm-v4"

Deprecated (deprecated): true

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,apq8084-sdhci", "qcom,ipq4019-sdhci", "qcom,ipq8074-sdhci", "qcom,msm8226-sdhci", "qcom,msm8953-sdhci", "qcom,msm8974-sdhci", "qcom,msm8976-sdhci", "qcom,msm8916-sdhci", "qcom,msm8992-sdhci", "qcom,msm8994-sdhci", "qcom,msm8996-sdhci", "qcom,msm8998-sdhci"

Item 2

Exact value (const): "qcom,sdhci-msm-v4"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,ipq5018-sdhci", "qcom,ipq5332-sdhci", "qcom,ipq5424-sdhci", "qcom,ipq6018-sdhci", "qcom,ipq9574-sdhci", "qcom,kaanapali-sdhci", "qcom,milos-sdhci", "qcom,qcm2290-sdhci", "qcom,qcs404-sdhci", "qcom,qcs615-sdhci", "qcom,qcs8300-sdhci", "qcom,qdu1000-sdhci", "qcom,sa8775p-sdhci", "qcom,sar2130p-sdhci", "qcom,sc7180-sdhci", "qcom,sc7280-sdhci", "qcom,sc8280xp-sdhci", "qcom,sdm630-sdhci", "qcom,sdm670-sdhci", "qcom,sdm845-sdhci", "qcom,sdx55-sdhci", "qcom,sdx65-sdhci", "qcom,sdx75-sdhci", "qcom,sm6115-sdhci", "qcom,sm6125-sdhci", "qcom,sm6350-sdhci", "qcom,sm6375-sdhci", "qcom,sm7150-sdhci", "qcom,sm8150-sdhci", "qcom,sm8250-sdhci", "qcom,sm8350-sdhci", "qcom,sm8450-sdhci", "qcom,sm8550-sdhci", "qcom,sm8650-sdhci", "qcom,sm8750-sdhci", "qcom,x1e80100-sdhci"

Item 2

Exact value (const): "qcom,sdhci-msm-v5"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Main peripheral bus clock, PCLK/HCLK - AHB Bus clock

Item 2

SDC MMC clock, MCLK

Item 3

TCXO clock

Item 4

clock for Inline Crypto Engine

Item 5

SDCC bus voter clock

Item 6

reference clock for RCLK delay calibration

Item 7

sleep clock for RCLK delay calibration

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "xo"

Item 4

Allowed values (enum): "ice", "bus", "cal", "sleep"

Item 5

Allowed values (enum): "ice", "bus", "cal", "sleep"

Item 6

Allowed values (enum): "ice", "bus", "cal", "sleep"

Item 7

Allowed values (enum): "ice", "bus", "cal", "sleep"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "hc_irq"

Item 2

Exact value (const): "pwr_irq"

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

pinctrl-0 — not listed as required here #

Should specify pin control groups used for this controller.

pinctrl-1 — not listed as required here #

Should specify sleep pin control groups used for this controller.

resets — not listed as required here #

Maximum number of items (maxItems): 1

qcom,ddr-config — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

platform specific settings for DDR_CONFIG reg.

qcom,dll-config — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

platform specific settings for DLL_CONFIG reg.

iommus — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

phandle to apps_smmu node with sid mask.

interconnects — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

data path, sdhc to ddr

Item 2

config path, cpu to sdhc

interconnect-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "sdhc-ddr"

Item 2

Exact value (const): "cpu-sdhc"

power-domains — not listed as required here #

A phandle to sdhci power domain node

Maximum number of items (maxItems): 1

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^opp-table(-[a-z0-9]+)?$ — name matches this regular expression #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "operating-points-v2"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^opp-?[0-9]+$ — name matches this regular expression

Required in this object (required): "required-opps"

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sdhci-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,sdhci-msm-v4"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Host controller register map

Item 2

SD Core register map

Item 3

CQE register map

Item 4

Inline Crypto Engine register map

reg-names — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "hc"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "cqhci"

Item 4

Exact value (const): "ice"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Host controller register map

Item 2

CQE register map

Item 3

Inline Crypto Engine register map

reg-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "hc"

Item 2

Exact value (const): "cqhci"

Item 3

Exact value (const): "ice"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-sm8250.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/power/qcom,rpmhpd.h>

sdhc_2: mmc@8804000 {
  compatible = "qcom,sm8250-sdhci", "qcom,sdhci-msm-v5";
  reg = <0 0x08804000 0 0x1000>;

  interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
               <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "hc_irq", "pwr_irq";

  clocks = <&gcc GCC_SDCC2_AHB_CLK>,
           <&gcc GCC_SDCC2_APPS_CLK>,
           <&rpmhcc RPMH_CXO_CLK>;
  clock-names = "iface", "core", "xo";
  iommus = <&apps_smmu 0x4a0 0x0>;
  qcom,dll-config = <0x0007642c>;
  qcom,ddr-config = <0x80040868>;
  power-domains = <&rpmhpd RPMHPD_CX>;

  operating-points-v2 = <&sdhc2_opp_table>;

  sdhc2_opp_table: opp-table {
    compatible = "operating-points-v2";

    opp-19200000 {
      opp-hz = /bits/ 64 <19200000>;
      required-opps = <&rpmhpd_opp_min_svs>;
    };

    opp-50000000 {
      opp-hz = /bits/ 64 <50000000>;
      required-opps = <&rpmhpd_opp_low_svs>;
    };

    opp-100000000 {
      opp-hz = /bits/ 64 <100000000>;
      required-opps = <&rpmhpd_opp_svs>;
    };

    opp-202000000 {
      opp-hz = /bits/ 64 <202000000>;
      required-opps = <&rpmhpd_opp_svs_l1>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 37: for sdcc versions less than 5.0

Line 76: for sdcc version 5.0

Edit this page