MMC/SD/SDIO slot directly connected to a SPI bus
Schema identifier ($id): "http://devicetree.org/schemas/mmc/mmc-spi-slot.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 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml
The extra properties used by an mmc connected via SPI.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mmc-spi-slot"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
voltage-ranges — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Two cells are required, first cell specifies minimum slot voltage (mV), second cell specifies maximum slot voltage (mV).
Array item rules (items) #
Array item rules (
items)Item 1
value for minimum slot voltage in mV
Default value (
default):3200Item 2
value for maximum slot voltage in mV
Default value (
default):3400
Maximum number of items (maxItems): 1
gpios — not listed as required here #
For historical reasons, this does not follow the generic mmc-controller binding.
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Card-Detect GPIO
Item 2
Write-Protect GPIO
Required in this object (required): "compatible", "reg", "spi-max-frequency"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
mmc@0 {
compatible = "mmc-spi-slot";
reg = <0>;
gpios = <&gpio 14 GPIO_ACTIVE_LOW>, <&gpio 15 GPIO_ACTIVE_HIGH>;
voltage-ranges = <3300 3300>;
spi-max-frequency = <50000000>;
interrupts = <42>;
interrupt-parent = <&PIC>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)