LiteX LiteSDCard device
Schema identifier ($id): "http://devicetree.org/schemas/mmc/litex,mmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gabriel Somlo <gsomlo@gmail.com>"
LiteSDCard is a small footprint, configurable SDCard core for FPGA based system on chips.
The hardware source is Open Source and can be found on at https://github.com/enjoy-digital/litesdcard/.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mmc-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "litex,mmc"
reg — required here #
Array item rules (items) #
Item 1
PHY registers
Item 2
CORE registers
Item 3
DMA Reader buffer
Item 4
DMA Writer buffer
Item 5
IRQ registers
Minimum number of items (minItems): 4
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"phy"
Item 2
Exact value (
const):"core"
Item 3
Exact value (
const):"reader"
Item 4
Exact value (
const):"writer"
Item 5
Exact value (
const):"irq"
Minimum number of items (minItems): 4
clocks — required here #
Maximum number of items (maxItems): 1
Handle to reference clock.
vmmc-supply — required here #
Handle to fixed-voltage supply for the card power.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "vmmc-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mmc: mmc@12005000 {
compatible = "litex,mmc";
reg = <0x12005000 0x100>,
<0x12003800 0x100>,
<0x12003000 0x100>,
<0x12004800 0x100>,
<0x12004000 0x100>;
reg-names = "phy", "core", "reader", "writer", "irq";
clocks = <&reference_clk>;
vmmc-supply = <&vreg_mmc>;
interrupts = <4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause