Anton Vorontsov | 3f1c6eb | 2009-03-31 15:24:38 -0700 | [diff] [blame] | 1 | MMC/SD/SDIO slot directly connected to a SPI bus |
| 2 | |
| 3 | Required properties: |
| 4 | - compatible : should be "mmc-spi-slot". |
| 5 | - reg : should specify SPI address (chip-select number). |
| 6 | - spi-max-frequency : maximum frequency for this device (Hz). |
| 7 | - voltage-ranges : two cells are required, first cell specifies minimum |
| 8 | slot voltage (mV), second cell specifies maximum slot voltage (mV). |
| 9 | Several ranges could be specified. |
Esben Haabendal | 290293e | 2011-03-07 20:45:28 -0700 | [diff] [blame] | 10 | |
| 11 | Optional properties: |
| 12 | - gpios : may specify GPIOs in this order: Card-Detect GPIO, |
Arnd Bergmann | 7f21779 | 2012-05-13 00:14:24 -0400 | [diff] [blame^] | 13 | Write-Protect GPIO. Note that this does not follow the |
| 14 | binding from mmc.txt, for historic reasons. |
Esben Haabendal | 290293e | 2011-03-07 20:45:28 -0700 | [diff] [blame] | 15 | - interrupts : the interrupt of a card detect interrupt. |
| 16 | - interrupt-parent : the phandle for the interrupt controller that |
| 17 | services interrupts for this device. |
Anton Vorontsov | 3f1c6eb | 2009-03-31 15:24:38 -0700 | [diff] [blame] | 18 | |
| 19 | Example: |
| 20 | |
| 21 | mmc-slot@0 { |
| 22 | compatible = "fsl,mpc8323rdb-mmc-slot", |
| 23 | "mmc-spi-slot"; |
| 24 | reg = <0>; |
| 25 | gpios = <&qe_pio_d 14 1 |
| 26 | &qe_pio_d 15 0>; |
| 27 | voltage-ranges = <3300 3300>; |
| 28 | spi-max-frequency = <50000000>; |
Esben Haabendal | 290293e | 2011-03-07 20:45:28 -0700 | [diff] [blame] | 29 | interrupts = <42>; |
| 30 | interrupt-parent = <&PIC>; |
Anton Vorontsov | 3f1c6eb | 2009-03-31 15:24:38 -0700 | [diff] [blame] | 31 | }; |