| 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, | 
| Anton Vorontsov | 3f1c6eb | 2009-03-31 15:24:38 -0700 | [diff] [blame] | 13 |   Write-Protect GPIO. | 
| Esben Haabendal | 290293e | 2011-03-07 20:45:28 -0700 | [diff] [blame] | 14 | - interrupts : the interrupt of a card detect interrupt. | 
 | 15 | - interrupt-parent : the phandle for the interrupt controller that | 
 | 16 |   services interrupts for this device. | 
| Anton Vorontsov | 3f1c6eb | 2009-03-31 15:24:38 -0700 | [diff] [blame] | 17 |  | 
 | 18 | Example: | 
 | 19 |  | 
 | 20 | 	mmc-slot@0 { | 
 | 21 | 		compatible = "fsl,mpc8323rdb-mmc-slot", | 
 | 22 | 			     "mmc-spi-slot"; | 
 | 23 | 		reg = <0>; | 
 | 24 | 		gpios = <&qe_pio_d 14 1 | 
 | 25 | 			 &qe_pio_d 15 0>; | 
 | 26 | 		voltage-ranges = <3300 3300>; | 
 | 27 | 		spi-max-frequency = <50000000>; | 
| Esben Haabendal | 290293e | 2011-03-07 20:45:28 -0700 | [diff] [blame] | 28 | 		interrupts = <42>; | 
 | 29 | 		interrupt-parent = <&PIC>; | 
| Anton Vorontsov | 3f1c6eb | 2009-03-31 15:24:38 -0700 | [diff] [blame] | 30 | 	}; |