Synopsys Designware Mobile Storage Host Controller
Schema identifier ($id): "http://devicetree.org/schemas/mmc/synopsys-dw-mshc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "altr,socfpga-dw-mshc", "img,pistachio-dw-mshc", "snps,dw-mshc"
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
Maximum number of items (maxItems): 2
Handle to "biu" and "ciu" clocks for the bus interface unit clock and the card interface unit clock.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"biu"
Item 2
Exact value (
const):"ciu"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
altr,sysmgr-syscon — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to the sysmgr node
Item 2
register offset that controls the SDMMC clock phase
Item 3
register shift for the smplsel(drive in) setting
This property is optional. Contains the phandle to System Manager block that contains the SDMMC clock-phase control register. The first value is the pointer to the sysmgr, the 2nd value is the register offset for the SDMMC clock phase register, and the 3rd value is the bit shift for the smplsel(drive in) setting.
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 hereRule for matching array elements (
contains)Exact value (
const):"altr,socfpga-dw-mshc"When the condition matches (
then) #Properties and child nodes (
properties)
altr,sysmgr-syscon— not listed as required here
true— No constraints added by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
iommus— not listed as required here
false— Not permitted by this property rule.
altr,sysmgr-syscon— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
mmc@12200000 {
compatible = "snps,dw-mshc";
reg = <0x12200000 0x1000>;
interrupts = <0 75 0>;
clocks = <&clock 351>, <&clock 132>;
clock-names = "biu", "ciu";
dmas = <&pdma 12>;
dma-names = "rx-tx";
resets = <&rst 20>;
reset-names = "reset";
vmmc-supply = <&buck8>;
#address-cells = <1>;
#size-cells = <0>;
broken-cd;
bus-width = <8>;
cap-mmc-highspeed;
cap-sd-highspeed;
card-detect-delay = <200>;
max-frequency = <200000000>;
clock-frequency = <400000000>;
data-addr = <0x200>;
fifo-depth = <0x80>;
fifo-watermark-aligned;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 12: Everything else is described in the common file