Hisilicon HiSTB SoCs specific extensions to the Synopsys DWMMC controller

Schema identifier ($id): "http://devicetree.org/schemas/mmc/hisilicon,hi3798cv200-dw-mshc.yaml#"

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

Maintainers (maintainers): "Yang Xiwen <forbidden405@outlook.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "hisilicon,hi3798cv200-dw-mshc", "hisilicon,hi3798mv200-dw-mshc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

bus interface unit clock

Item 2

card interface unit clock

Item 3

card input sample phase clock

Item 4

controller output drive phase clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ciu"

Item 2

Exact value (const): "biu"

Item 3

Exact value (const): "ciu-sample"

Item 4

Exact value (const): "ciu-drive"

hisilicon,sap-dll-reg — not listed as required here #

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

DWMMC core on Hi3798MV2x SoCs has a delay-locked-loop(DLL) attached to card data input path. It is integrated into CRG core on the SoC and has to be controlled during tuning.

Array item rules (items) #

Item 1

A phandle pointed to the CRG syscon node

Item 2

Sample DLL register offset in CRG address space

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "hisilicon,hi3798mv200-dw-mshc"

When the condition matches (then) #

Required in this object (required): "hisilicon,sap-dll-reg"

When the condition does not match (else) #

Properties and child nodes (properties)

hisilicon,sap-dll-reg — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/histb-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

mmc@9830000 {
    compatible = "hisilicon,hi3798cv200-dw-mshc";
    reg = <0x9830000 0x10000>;
    interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&crg HISTB_MMC_CIU_CLK>,
             <&crg HISTB_MMC_BIU_CLK>,
             <&crg HISTB_MMC_SAMPLE_CLK>,
             <&crg HISTB_MMC_DRV_CLK>;
    clock-names = "ciu", "biu", "ciu-sample", "ciu-drive";
    resets = <&crg 0xa0 4>;
    reset-names = "reset";
    pinctrl-names = "default";
    pinctrl-0 = <&emmc_pins_1 &emmc_pins_2
                 &emmc_pins_3 &emmc_pins_4>;
    fifo-depth = <256>;
    clock-frequency = <200000000>;
    cap-mmc-highspeed;
    mmc-ddr-1_8v;
    mmc-hs200-1_8v;
    non-removable;
    bus-width = <8>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page