Synopsys Designware Mobile Storage Host Controller

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

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

Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>", "Jisheng Zhang <Jisheng.Zhang@synaptics.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3528-dwcmshc", "rockchip,rk3562-dwcmshc", "rockchip,rk3576-dwcmshc"

Item 2

Exact value (const): "rockchip,rk3588-dwcmshc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sophgo,sg2044-dwcmshc"

Item 2

Exact value (const): "sophgo,sg2042-dwcmshc"

Rule 3

Allowed values (enum): "rockchip,rk3568-dwcmshc", "rockchip,rk3588-dwcmshc", "snps,dwcmshc-sdhci", "sophgo,cv1800b-dwcmshc", "sophgo,sg2002-dwcmshc", "sophgo,sg2042-dwcmshc", "thead,th1520-dwcmshc", "eswin,eic7700-dwcmshc"

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): 1

Maximum number of items (maxItems): 5

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 5

reset-names — not listed as required here #

Maximum number of items (maxItems): 5

rockchip,txclk-tapnum — not listed as required here #

Specify the number of delay for tx sampling.

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

eswin,hsp-sp-csr — 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 HSP(High-Speed Peripheral) device

Item 2

Offset of the stability status register for internal clock.

Item 3

Offset of the stability register for host regulator voltage.

HSP CSR is to control and get status of different high-speed peripherals (such as Ethernet, USB, SATA, etc.) via register, which can tune board-level's parameters of PHY, etc.

eswin,drive-impedance-ohms — not listed as required here #

Specifies the drive impedance in Ohm.

Allowed values (enum): 33, 40, 50, 66, 100

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): mmc-controller.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): "sophgo,sg2042-dwcmshc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

core clock

Item 2

bus clock

Item 3

timer clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "timer"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

core clock

Item 2

bus clock for optional

Item 3

axi clock for rockchip specified

Item 4

block clock for rockchip specified

Item 5

timer clock for rockchip specified

clock-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "axi"

Item 4

Exact value (const): "block"

Item 5

Exact value (const): "timer"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "eswin,eic7700-dwcmshc"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "axi"

Item 2

Exact value (const): "phy"

Item 3

Exact value (const): "prstn"

Item 4

Exact value (const): "txrx"

Required in this object (required): "eswin,hsp-sp-csr", "eswin,drive-impedance-ohms"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 5

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "axi"

Item 4

Exact value (const): "block"

Item 5

Exact value (const): "timer"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3576-dwcmshc"

When the condition matches (then) #

Required in this object (required): "power-domains"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@fe310000 {
  compatible = "rockchip,rk3568-dwcmshc";
  reg = <0xfe310000 0x10000>;
  interrupts = <0 25 0x4>;
  clocks = <&cru 17>, <&cru 18>, <&cru 19>, <&cru 20>, <&cru 21>;
  clock-names = "core", "bus", "axi", "block", "timer";
  bus-width = <8>;
  #address-cells = <1>;
  #size-cells = <0>;
};
mmc@aa0000 {
  compatible = "snps,dwcmshc-sdhci";
  reg = <0xaa000 0x1000>;
  interrupts = <0 25 0x4>;
  clocks = <&cru 17>, <&cru 18>;
  clock-names = "core", "bus";
  bus-width = <8>;
  #address-cells = <1>;
  #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Edit this page