1*50d5d162SGabriel Somlo# SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause 2*50d5d162SGabriel Somlo%YAML 1.2 3*50d5d162SGabriel Somlo--- 4*50d5d162SGabriel Somlo$id: http://devicetree.org/schemas/mmc/litex,mmc.yaml# 5*50d5d162SGabriel Somlo$schema: http://devicetree.org/meta-schemas/core.yaml# 6*50d5d162SGabriel Somlo 7*50d5d162SGabriel Somlotitle: LiteX LiteSDCard device 8*50d5d162SGabriel Somlo 9*50d5d162SGabriel Somlomaintainers: 10*50d5d162SGabriel Somlo - Gabriel Somlo <gsomlo@gmail.com> 11*50d5d162SGabriel Somlo 12*50d5d162SGabriel Somlodescription: | 13*50d5d162SGabriel Somlo LiteSDCard is a small footprint, configurable SDCard core for FPGA based 14*50d5d162SGabriel Somlo system on chips. 15*50d5d162SGabriel Somlo 16*50d5d162SGabriel Somlo The hardware source is Open Source and can be found on at 17*50d5d162SGabriel Somlo https://github.com/enjoy-digital/litesdcard/. 18*50d5d162SGabriel Somlo 19*50d5d162SGabriel SomloallOf: 20*50d5d162SGabriel Somlo - $ref: mmc-controller.yaml# 21*50d5d162SGabriel Somlo 22*50d5d162SGabriel Somloproperties: 23*50d5d162SGabriel Somlo compatible: 24*50d5d162SGabriel Somlo const: litex,mmc 25*50d5d162SGabriel Somlo 26*50d5d162SGabriel Somlo reg: 27*50d5d162SGabriel Somlo items: 28*50d5d162SGabriel Somlo - description: PHY registers 29*50d5d162SGabriel Somlo - description: CORE registers 30*50d5d162SGabriel Somlo - description: DMA Reader buffer 31*50d5d162SGabriel Somlo - description: DMA Writer buffer 32*50d5d162SGabriel Somlo - description: IRQ registers 33*50d5d162SGabriel Somlo minItems: 4 34*50d5d162SGabriel Somlo 35*50d5d162SGabriel Somlo reg-names: 36*50d5d162SGabriel Somlo items: 37*50d5d162SGabriel Somlo - const: phy 38*50d5d162SGabriel Somlo - const: core 39*50d5d162SGabriel Somlo - const: reader 40*50d5d162SGabriel Somlo - const: writer 41*50d5d162SGabriel Somlo - const: irq 42*50d5d162SGabriel Somlo minItems: 4 43*50d5d162SGabriel Somlo 44*50d5d162SGabriel Somlo clocks: 45*50d5d162SGabriel Somlo maxItems: 1 46*50d5d162SGabriel Somlo description: 47*50d5d162SGabriel Somlo Handle to reference clock. 48*50d5d162SGabriel Somlo 49*50d5d162SGabriel Somlo vmmc-supply: 50*50d5d162SGabriel Somlo description: 51*50d5d162SGabriel Somlo Handle to fixed-voltage supply for the card power. 52*50d5d162SGabriel Somlo 53*50d5d162SGabriel Somlo interrupts: 54*50d5d162SGabriel Somlo maxItems: 1 55*50d5d162SGabriel Somlo 56*50d5d162SGabriel Somlorequired: 57*50d5d162SGabriel Somlo - compatible 58*50d5d162SGabriel Somlo - reg 59*50d5d162SGabriel Somlo - reg-names 60*50d5d162SGabriel Somlo - clocks 61*50d5d162SGabriel Somlo - vmmc-supply 62*50d5d162SGabriel Somlo 63*50d5d162SGabriel SomloadditionalProperties: false 64*50d5d162SGabriel Somlo 65*50d5d162SGabriel Somloexamples: 66*50d5d162SGabriel Somlo - | 67*50d5d162SGabriel Somlo mmc: mmc@12005000 { 68*50d5d162SGabriel Somlo compatible = "litex,mmc"; 69*50d5d162SGabriel Somlo reg = <0x12005000 0x100>, 70*50d5d162SGabriel Somlo <0x12003800 0x100>, 71*50d5d162SGabriel Somlo <0x12003000 0x100>, 72*50d5d162SGabriel Somlo <0x12004800 0x100>, 73*50d5d162SGabriel Somlo <0x12004000 0x100>; 74*50d5d162SGabriel Somlo reg-names = "phy", "core", "reader", "writer", "irq"; 75*50d5d162SGabriel Somlo clocks = <&reference_clk>; 76*50d5d162SGabriel Somlo vmmc-supply = <&vreg_mmc>; 77*50d5d162SGabriel Somlo interrupts = <4>; 78*50d5d162SGabriel Somlo }; 79