UniPhier SD/SDIO/eMMC controller
Schema identifier ($id): "http://devicetree.org/schemas/mmc/socionext,uniphier-sd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"
Properties and child nodes (properties) #
compatible — required here #
version 2.91, 3.1, 3.1.1, respectively
Allowed values (enum): "socionext,uniphier-sd-v2.91", "socionext,uniphier-sd-v3.1", "socionext,uniphier-sd-v3.1.1"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Exact value (const): "rx-tx"
reset-names — required here #
There are three reset signals at maximum
host: mandatory for all variants
bridge: exist only for version 2.91
hw: optional. exist if eMMC hw reset line is available
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"host"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"host"Item 2
Exact value (
const):"bridge"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"host"Item 2
Exact value (
const):"hw"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"host"Item 2
Exact value (
const):"bridge"Item 3
Exact value (
const):"hw"
resets — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
socionext,syscon-uhs-mode — 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 syscon that configures UHS mode
Item 2
ID of SD instance
A phandle to syscon with one argument that configures UHS mode. The argument is the ID of SD instance.
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 hereRule for matching array elements (
contains)Exact value (
const):"socionext,uniphier-sd-v2.91"When the condition matches (
then) #Properties and child nodes (
properties)
reset-names— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"bridge"When the condition does not match (
else) #Properties and child nodes (
properties)
reset-names— not listed as required hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"bridge"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "reset-names", "resets"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
sd: mmc@5a400000 {
compatible = "socionext,uniphier-sd-v2.91";
reg = <0x5a400000 0x200>;
interrupts = <0 76 4>;
pinctrl-names = "default", "uhs";
pinctrl-0 = <&pinctrl_sd>;
pinctrl-1 = <&pinctrl_sd_uhs>;
clocks = <&mio_clk 0>;
reset-names = "host", "bridge";
resets = <&mio_rst 0>, <&mio_rst 3>;
dma-names = "rx-tx";
dmas = <&dmac 4>;
bus-width = <4>;
cap-sd-highspeed;
sd-uhs-sdr12;
sd-uhs-sdr25;
sd-uhs-sdr50;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause