Marvell PXA SDHCI v1/v2/v3
Schema identifier ($id): "http://devicetree.org/schemas/mmc/sdhci-pxa.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>"
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):"marvell,armada-380-sdhci"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):3
reg-names— required hereMinimum number of items (
minItems):3When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mrvl,pxav1-mmc"When the condition matches (
then) #Properties and child nodes (
properties)
pinctrl-names— not listed as required hereOptional for supporting PXA168 SDIO IRQ errata to switch CMD pin between SDIO CMD and GPIO mode.
Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Exact value (
const):"state_cmd_gpio"Minimum number of items (
minItems):1
pinctrl-1— not listed as required hereShould switch CMD pin to GPIO mode as a high output.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mrvl,pxav3-mmc"When the condition matches (
then) #Properties and child nodes (
properties)
pinctrl-names— not listed as required hereOptional for increasing stability of the controller at fast bus clocks.
Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Exact value (
const):"state_uhs"Minimum number of items (
minItems):1
pinctrl-1— not listed as required hereShould switch the drive strength of the data pins to high.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mrvl,pxav1-mmc", "mrvl,pxav2-mmc", "mrvl,pxav3-mmc", "marvell,armada-380-sdhci"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"sdhci"
Item 2
Exact value (
const):"mbus"
Item 3
Exact value (
const):"conf-sdio3"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"io"
Item 2
Exact value (
const):"core"
pinctrl-names — not listed as required here #
true — No constraints added by this property rule.
pinctrl-0 — not listed as required here #
Should contain default pinctrl.
pinctrl-1 — not listed as required here #
true — No constraints added by this property rule.
mrvl,clk-delay-cycles — not listed as required here #
Specify a number of cycles to delay for tuning.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
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) #
#include <dt-bindings/clock/berlin2.h>
mmc@d4280800 {
compatible = "mrvl,pxav3-mmc";
reg = <0xd4280800 0x800>;
bus-width = <8>;
interrupts = <27>;
clocks = <&chip CLKID_SDIO1XIN>, <&chip CLKID_SDIO1>;
clock-names = "io", "core";
non-removable;
mrvl,clk-delay-cycles = <31>;
};
mmc@d8000 {
compatible = "marvell,armada-380-sdhci";
reg-names = "sdhci", "mbus", "conf-sdio3";
reg = <0xd8000 0x1000>,
<0xdc000 0x100>,
<0x18454 0x4>;
interrupts = <0 25 0x4>;
clocks = <&gateclk 17>;
clock-names = "io";
mrvl,clk-delay-cycles = <0x1F>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only