Ingenic SoCs MMC Controller
Schema identifier ($id): "http://devicetree.org/schemas/mmc/ingenic,mmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mmc-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"ingenic,jz4740-mmc","ingenic,jz4725b-mmc","ingenic,jz4760-mmc","ingenic,jz4775-mmc","ingenic,jz4780-mmc","ingenic,x1000-mmc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ingenic,jz4770-mmc"Item 2
Exact value (
const):"ingenic,jz4760-mmc"
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
clock-names — required here #
Exact value (const): "mmc"
dmas — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
dma-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"rx"Item 2
Exact value (
const):"tx"
Rule 2
Exact value (
const):"tx-rx"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
#include <dt-bindings/dma/jz4780-dma.h>
mmc0: mmc@13450000 {
compatible = "ingenic,jz4780-mmc";
reg = <0x13450000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <37>;
clocks = <&cgu JZ4780_CLK_MSC0>;
clock-names = "mmc";
cap-sd-highspeed;
cap-mmc-highspeed;
cap-sdio-irq;
dmas = <&dma JZ4780_DMA_MSC0_RX 0xffffffff>,
<&dma JZ4780_DMA_MSC0_TX 0xffffffff>;
dma-names = "rx", "tx";
};
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
#include <dt-bindings/dma/jz4780-dma.h>
/*
* Alternative version of the example above,
* but using one single DMA channel for both
* TX and RX.
*/
mmc1: mmc@13460000 {
compatible = "ingenic,jz4780-mmc";
reg = <0x13460000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <36>;
clocks = <&cgu JZ4780_CLK_MSC1>;
clock-names = "mmc";
cap-sd-highspeed;
cap-mmc-highspeed;
cap-sdio-irq;
dmas = <&dma JZ4780_DMA_MSC1_TX JZ4780_DMA_MSC1_RX 0xffffffff>;
dma-names = "tx-rx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)