Spreadtrum SDHCI controller

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

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,sdhci-r11"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

SDIO source clock

Item 2

gate clock for enabling/disabling the device

Item 3

gate clock controlling the device for some special platforms (optional)

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "sdio"

Item 2

Exact value (const): "enable"

Item 3

Exact value (const): "2x_enable"

pinctrl-0 — not listed as required here #

default/high speed pin control

Maximum number of items (maxItems): 1

pinctrl-1 — not listed as required here #

UHS mode pin control

Maximum number of items (maxItems): 1

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): "state_uhs"

Properties matching a name pattern (patternProperties) #

^sprd,phy-delay-(legacy|mmc-(ddr52|highspeed|hs[24]00|hs400es)|sd-(highspeed|uhs-sdr(50|104)))$ — name matches this regular expression #

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

Array item rules (items) #

Item 1

clock data write line delay value

Item 2

clock read command line delay value

Item 3

clock read data positive edge delay value

Item 4

clock read data negative edge delay value

PHY DLL delays are used to delay the data valid window, and align the window to the sampling clock. Each cell's delay value unit is cycle of the PHY clock.

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sprd,sc9860-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

mmc@50430000 {
  compatible = "sprd,sdhci-r11";
  reg = <0x50430000 0x1000>;
  interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;

  clocks = <&aon_prediv CLK_EMMC_2X>,
           <&apahb_gate CLK_EMMC_EB>,
           <&aon_gate CLK_EMMC_2X_EN>;
  clock-names = "sdio", "enable", "2x_enable";

  pinctrl-0 = <&sd0_pins_default>;
  pinctrl-1 = <&sd0_pins_uhs>;
  pinctrl-names = "default", "state_uhs";

  bus-width = <8>;
  cap-mmc-hw-reset;
  mmc-hs400-enhanced-strobe;
  mmc-hs400-1_8v;
  mmc-hs200-1_8v;
  mmc-ddr-1_8v;
  non-removable;
  no-sdio;
  no-sd;

  sprd,phy-delay-mmc-ddr52 = <0x3f 0x75 0x14 0x14>;
  sprd,phy-delay-mmc-hs200 = <0x0 0x8c 0x8c 0x8c>;
  sprd,phy-delay-mmc-hs400 = <0x44 0x7f 0x2e 0x2e>;
  sprd,phy-delay-mmc-hs400es = <0x3f 0x3f 0x2e 0x2e>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page