diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-22 19:36:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-22 19:36:08 -0400 |
commit | a6be1fcbc57f95bb47ef3c8e4ee3d83731b8f21e (patch) | |
tree | 88d762edfd97e7cdb0b41b8fe20c1ddb204c28c9 /Documentation | |
parent | 5b160bd426946c85f32b15e5d34d62d2618a5a87 (diff) | |
parent | 30b87c60e9cbfcdfce22aa652fc1e5d061fcb733 (diff) |
Merge tag 'mmc-merge-for-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc
Pull MMC updates from Chris Ball:
"MMC highlights for 3.6:
Core:
- Rename cd-gpio to slot-gpio and extend it to support more slot GPIO
functions, such as write-protect.
- Add a function to get regulators (Vdd and Vccq) for a host.
Drivers:
- sdhci-pxav2, sdhci-pxav3: Add device tree support.
- sdhi: Add device tree support.
- sh_mmcif: Add support for regulators, device tree, slot-gpio.
- tmio: Add regulator support, use slot-gpio."
* tag 'mmc-merge-for-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc: (62 commits)
mmc: sdhci-dove: Prepare for common clock framework
mmc: sdhci-dove: Add SDHCI_QUIRK_NO_HISPD_BIT
mmc: omap_hsmmc: ensure probe returns error upon resource failure
mmc: mxs-mmc: Add wp-inverted property
mmc: esdhc: Fix DMA_MASK to not break mx25 DMA access
mmc: core: reset signal voltage on power up
mmc: sd: Fix sd current limit setting
mmc: omap_hsmmc: add clk_prepare and clk_unprepare
mmc: sdhci: When a UHS switch fails, cycle power if regulator is used
mmc: atmel-mci: modify CLKDIV displaying in debugfs
mmc: atmel-mci: fix incorrect setting of host->data to NULL
mmc: sdhci: poll for card even when card is logically unremovable
mmc: sdhci: Introduce new flag SDHCI_USING_RETUNING_TIMER
mmc: sdio: Change pr_warning to pr_warn_ratelimited
mmc: core: Simplify and fix for SD switch processing
mmc: sdhci: restore host settings when card is removed
mmc: sdhci: fix incorrect command used in tuning
mmc: sdhci-pci: CaFe has broken card detection
mmc: sdhci: Report failure reasons for all cases in sdhci_add_host()
mmc: s3cmci: Convert s3cmci driver to gpiolib API
...
Diffstat (limited to 'Documentation')
9 files changed, 61 insertions, 46 deletions
diff --git a/Documentation/devicetree/bindings/mmc/fsl-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-esdhc.txt index 0d93b4b0e0e3..bd9be0b5bc20 100644 --- a/Documentation/devicetree/bindings/mmc/fsl-esdhc.txt +++ b/Documentation/devicetree/bindings/mmc/fsl-esdhc.txt | |||
@@ -3,21 +3,22 @@ | |||
3 | The Enhanced Secure Digital Host Controller provides an interface | 3 | The Enhanced Secure Digital Host Controller provides an interface |
4 | for MMC, SD, and SDIO types of memory cards. | 4 | for MMC, SD, and SDIO types of memory cards. |
5 | 5 | ||
6 | This file documents differences between the core properties described | ||
7 | by mmc.txt and the properties used by the sdhci-esdhc driver. | ||
8 | |||
6 | Required properties: | 9 | Required properties: |
7 | - compatible : should be | ||
8 | "fsl,<chip>-esdhc", "fsl,esdhc" | ||
9 | - reg : should contain eSDHC registers location and length. | ||
10 | - interrupts : should contain eSDHC interrupt. | ||
11 | - interrupt-parent : interrupt source phandle. | 10 | - interrupt-parent : interrupt source phandle. |
12 | - clock-frequency : specifies eSDHC base clock frequency. | 11 | - clock-frequency : specifies eSDHC base clock frequency. |
13 | - sdhci,wp-inverted : (optional) specifies that eSDHC controller | 12 | |
14 | reports inverted write-protect state; New devices should use | 13 | Optional properties: |
15 | the generic "wp-inverted" property. | 14 | - sdhci,wp-inverted : specifies that eSDHC controller reports |
16 | - sdhci,1-bit-only : (optional) specifies that a controller can | 15 | inverted write-protect state; New devices should use the generic |
17 | only handle 1-bit data transfers. New devices should use the | 16 | "wp-inverted" property. |
18 | generic "bus-width = <1>" property. | 17 | - sdhci,1-bit-only : specifies that a controller can only handle |
19 | - sdhci,auto-cmd12: (optional) specifies that a controller can | 18 | 1-bit data transfers. New devices should use the generic |
20 | only handle auto CMD12. | 19 | "bus-width = <1>" property. |
20 | - sdhci,auto-cmd12: specifies that a controller can only handle auto | ||
21 | CMD12. | ||
21 | 22 | ||
22 | Example: | 23 | Example: |
23 | 24 | ||
diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt index fea541ee8b34..70cd49b1caa8 100644 --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.txt | |||
@@ -3,17 +3,15 @@ | |||
3 | The Enhanced Secure Digital Host Controller on Freescale i.MX family | 3 | The Enhanced Secure Digital Host Controller on Freescale i.MX family |
4 | provides an interface for MMC, SD, and SDIO types of memory cards. | 4 | provides an interface for MMC, SD, and SDIO types of memory cards. |
5 | 5 | ||
6 | This file documents differences between the core properties described | ||
7 | by mmc.txt and the properties used by the sdhci-esdhc-imx driver. | ||
8 | |||
6 | Required properties: | 9 | Required properties: |
7 | - compatible : Should be "fsl,<chip>-esdhc" | 10 | - compatible : Should be "fsl,<chip>-esdhc" |
8 | - reg : Should contain eSDHC registers location and length | ||
9 | - interrupts : Should contain eSDHC interrupt | ||
10 | 11 | ||
11 | Optional properties: | 12 | Optional properties: |
12 | - non-removable : Indicate the card is wired to host permanently | ||
13 | - fsl,cd-internal : Indicate to use controller internal card detection | 13 | - fsl,cd-internal : Indicate to use controller internal card detection |
14 | - fsl,wp-internal : Indicate to use controller internal write protection | 14 | - fsl,wp-internal : Indicate to use controller internal write protection |
15 | - cd-gpios : Specify GPIOs for card detection | ||
16 | - wp-gpios : Specify GPIOs for write protection | ||
17 | 15 | ||
18 | Examples: | 16 | Examples: |
19 | 17 | ||
diff --git a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt index d64aea5a4203..0e5e2ec4001d 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt +++ b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.txt | |||
@@ -1,8 +1,9 @@ | |||
1 | MMC/SD/SDIO slot directly connected to a SPI bus | 1 | MMC/SD/SDIO slot directly connected to a SPI bus |
2 | 2 | ||
3 | This file documents differences between the core properties described | ||
4 | by mmc.txt and the properties used by the mmc_spi driver. | ||
5 | |||
3 | Required properties: | 6 | 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 | - spi-max-frequency : maximum frequency for this device (Hz). |
7 | - voltage-ranges : two cells are required, first cell specifies minimum | 8 | - voltage-ranges : two cells are required, first cell specifies minimum |
8 | slot voltage (mV), second cell specifies maximum slot voltage (mV). | 9 | slot voltage (mV), second cell specifies maximum slot voltage (mV). |
@@ -11,8 +12,7 @@ Required properties: | |||
11 | Optional properties: | 12 | Optional properties: |
12 | - gpios : may specify GPIOs in this order: Card-Detect GPIO, | 13 | - gpios : may specify GPIOs in this order: Card-Detect GPIO, |
13 | Write-Protect GPIO. Note that this does not follow the | 14 | Write-Protect GPIO. Note that this does not follow the |
14 | binding from mmc.txt, for historic reasons. | 15 | binding from mmc.txt, for historical reasons. |
15 | - interrupts : the interrupt of a card detect interrupt. | ||
16 | - interrupt-parent : the phandle for the interrupt controller that | 16 | - interrupt-parent : the phandle for the interrupt controller that |
17 | services interrupts for this device. | 17 | services interrupts for this device. |
18 | 18 | ||
diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 6e70dcde0a71..8a6811f4a02f 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt | |||
@@ -2,13 +2,17 @@ These properties are common to multiple MMC host controllers. Any host | |||
2 | that requires the respective functionality should implement them using | 2 | that requires the respective functionality should implement them using |
3 | these definitions. | 3 | these definitions. |
4 | 4 | ||
5 | Interpreted by the OF core: | ||
6 | - reg: Registers location and length. | ||
7 | - interrupts: Interrupts used by the MMC controller. | ||
8 | |||
5 | Required properties: | 9 | Required properties: |
6 | - bus-width: Number of data lines, can be <1>, <4>, or <8> | 10 | - bus-width: Number of data lines, can be <1>, <4>, or <8> |
7 | 11 | ||
8 | Optional properties: | 12 | Optional properties: |
9 | - cd-gpios : Specify GPIOs for card detection, see gpio binding | 13 | - cd-gpios: Specify GPIOs for card detection, see gpio binding |
10 | - wp-gpios : Specify GPIOs for write protection, see gpio binding | 14 | - wp-gpios: Specify GPIOs for write protection, see gpio binding |
11 | - cd-inverted: when present, polarity on the wp gpio line is inverted | 15 | - cd-inverted: when present, polarity on the cd gpio line is inverted |
12 | - wp-inverted: when present, polarity on the wp gpio line is inverted | 16 | - wp-inverted: when present, polarity on the wp gpio line is inverted |
13 | - non-removable: non-removable slot (like eMMC) | 17 | - non-removable: non-removable slot (like eMMC) |
14 | - max-frequency: maximum operating clock frequency | 18 | - max-frequency: maximum operating clock frequency |
diff --git a/Documentation/devicetree/bindings/mmc/mmci.txt b/Documentation/devicetree/bindings/mmc/mmci.txt index 14a81d526118..2b584cae352a 100644 --- a/Documentation/devicetree/bindings/mmc/mmci.txt +++ b/Documentation/devicetree/bindings/mmc/mmci.txt | |||
@@ -1,19 +1,15 @@ | |||
1 | * ARM PrimeCell MultiMedia Card Interface (MMCI) PL180/1 | 1 | * ARM PrimeCell MultiMedia Card Interface (MMCI) PL180/1 |
2 | 2 | ||
3 | The ARM PrimeCell MMCI PL180 and PL181 provides and interface for | 3 | The ARM PrimeCell MMCI PL180 and PL181 provides an interface for |
4 | reading and writing to MultiMedia and SD cards alike. | 4 | reading and writing to MultiMedia and SD cards alike. |
5 | 5 | ||
6 | This file documents differences between the core properties described | ||
7 | by mmc.txt and the properties used by the mmci driver. | ||
8 | |||
6 | Required properties: | 9 | Required properties: |
7 | - compatible : contains "arm,pl18x", "arm,primecell". | 10 | - compatible : contains "arm,pl18x", "arm,primecell". |
8 | - reg : contains pl18x registers and length. | ||
9 | - interrupts : contains the device IRQ(s). | ||
10 | - arm,primecell-periphid : contains the PrimeCell Peripheral ID. | 11 | - arm,primecell-periphid : contains the PrimeCell Peripheral ID. |
11 | 12 | ||
12 | Optional properties: | 13 | Optional properties: |
13 | - wp-gpios : contains any write protect (ro) gpios | ||
14 | - cd-gpios : contains any card detection gpios | ||
15 | - cd-inverted : indicates whether the cd gpio is inverted | ||
16 | - max-frequency : contains the maximum operating frequency | ||
17 | - bus-width : number of data lines, can be <1>, <4>, or <8> | ||
18 | - mmc-cap-mmc-highspeed : indicates whether MMC is high speed capable | 14 | - mmc-cap-mmc-highspeed : indicates whether MMC is high speed capable |
19 | - mmc-cap-sd-highspeed : indicates whether SD is high speed capable | 15 | - mmc-cap-sd-highspeed : indicates whether SD is high speed capable |
diff --git a/Documentation/devicetree/bindings/mmc/mxs-mmc.txt b/Documentation/devicetree/bindings/mmc/mxs-mmc.txt index 14d870a9e3db..54949f6faede 100644 --- a/Documentation/devicetree/bindings/mmc/mxs-mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mxs-mmc.txt | |||
@@ -3,16 +3,14 @@ | |||
3 | The Freescale MXS Synchronous Serial Ports (SSP) can act as a MMC controller | 3 | The Freescale MXS Synchronous Serial Ports (SSP) can act as a MMC controller |
4 | to support MMC, SD, and SDIO types of memory cards. | 4 | to support MMC, SD, and SDIO types of memory cards. |
5 | 5 | ||
6 | This file documents differences between the core properties in mmc.txt | ||
7 | and the properties used by the mxsmmc driver. | ||
8 | |||
6 | Required properties: | 9 | Required properties: |
7 | - compatible: Should be "fsl,<chip>-mmc". The supported chips include | 10 | - compatible: Should be "fsl,<chip>-mmc". The supported chips include |
8 | imx23 and imx28. | 11 | imx23 and imx28. |
9 | - reg: Should contain registers location and length | ||
10 | - interrupts: Should contain ERROR and DMA interrupts | 12 | - interrupts: Should contain ERROR and DMA interrupts |
11 | - fsl,ssp-dma-channel: APBH DMA channel for the SSP | 13 | - fsl,ssp-dma-channel: APBH DMA channel for the SSP |
12 | - bus-width: Number of data lines, can be <1>, <4>, or <8> | ||
13 | |||
14 | Optional properties: | ||
15 | - wp-gpios: Specify GPIOs for write protection | ||
16 | 14 | ||
17 | Examples: | 15 | Examples: |
18 | 16 | ||
diff --git a/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt b/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt index f77c3031607f..c6d7b11db9eb 100644 --- a/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt +++ b/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt | |||
@@ -3,15 +3,13 @@ | |||
3 | This controller on Tegra family SoCs provides an interface for MMC, SD, | 3 | This controller on Tegra family SoCs provides an interface for MMC, SD, |
4 | and SDIO types of memory cards. | 4 | and SDIO types of memory cards. |
5 | 5 | ||
6 | This file documents differences between the core properties described | ||
7 | by mmc.txt and the properties used by the sdhci-tegra driver. | ||
8 | |||
6 | Required properties: | 9 | Required properties: |
7 | - compatible : Should be "nvidia,<chip>-sdhci" | 10 | - compatible : Should be "nvidia,<chip>-sdhci" |
8 | - reg : Should contain SD/MMC registers location and length | ||
9 | - interrupts : Should contain SD/MMC interrupt | ||
10 | - bus-width : Number of data lines, can be <1>, <4>, or <8> | ||
11 | 11 | ||
12 | Optional properties: | 12 | Optional properties: |
13 | - cd-gpios : Specify GPIOs for card detection | ||
14 | - wp-gpios : Specify GPIOs for write protection | ||
15 | - power-gpios : Specify GPIOs for power control | 13 | - power-gpios : Specify GPIOs for power control |
16 | 14 | ||
17 | Example: | 15 | Example: |
diff --git a/Documentation/devicetree/bindings/mmc/sdhci-pxa.txt b/Documentation/devicetree/bindings/mmc/sdhci-pxa.txt new file mode 100644 index 000000000000..dbe98a3c183a --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/sdhci-pxa.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | * Marvell sdhci-pxa v2/v3 controller | ||
2 | |||
3 | This file documents differences between the core properties in mmc.txt | ||
4 | and the properties used by the sdhci-pxav2 and sdhci-pxav3 drivers. | ||
5 | |||
6 | Required properties: | ||
7 | - compatible: Should be "mrvl,pxav2-mmc" or "mrvl,pxav3-mmc". | ||
8 | |||
9 | Optional properties: | ||
10 | - mrvl,clk-delay-cycles: Specify a number of cycles to delay for tuning. | ||
11 | |||
12 | Example: | ||
13 | |||
14 | sdhci@d4280800 { | ||
15 | compatible = "mrvl,pxav3-mmc"; | ||
16 | reg = <0xd4280800 0x800>; | ||
17 | bus-width = <8>; | ||
18 | interrupts = <27>; | ||
19 | non-removable; | ||
20 | mrvl,clk-delay-cycles = <31>; | ||
21 | }; | ||
diff --git a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt index 8a53958c9a9f..be76a23b34c4 100644 --- a/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt +++ b/Documentation/devicetree/bindings/mmc/ti-omap-hsmmc.txt | |||
@@ -3,21 +3,20 @@ | |||
3 | The Highspeed MMC Host Controller on TI OMAP family | 3 | The Highspeed MMC Host Controller on TI OMAP family |
4 | provides an interface for MMC, SD, and SDIO types of memory cards. | 4 | provides an interface for MMC, SD, and SDIO types of memory cards. |
5 | 5 | ||
6 | This file documents differences between the core properties described | ||
7 | by mmc.txt and the properties used by the omap_hsmmc driver. | ||
8 | |||
6 | Required properties: | 9 | Required properties: |
7 | - compatible: | 10 | - compatible: |
8 | Should be "ti,omap2-hsmmc", for OMAP2 controllers | 11 | Should be "ti,omap2-hsmmc", for OMAP2 controllers |
9 | Should be "ti,omap3-hsmmc", for OMAP3 controllers | 12 | Should be "ti,omap3-hsmmc", for OMAP3 controllers |
10 | Should be "ti,omap4-hsmmc", for OMAP4 controllers | 13 | Should be "ti,omap4-hsmmc", for OMAP4 controllers |
11 | - ti,hwmods: Must be "mmc<n>", n is controller instance starting 1 | 14 | - ti,hwmods: Must be "mmc<n>", n is controller instance starting 1 |
12 | - reg : should contain hsmmc registers location and length | ||
13 | 15 | ||
14 | Optional properties: | 16 | Optional properties: |
15 | ti,dual-volt: boolean, supports dual voltage cards | 17 | ti,dual-volt: boolean, supports dual voltage cards |
16 | <supply-name>-supply: phandle to the regulator device tree node | 18 | <supply-name>-supply: phandle to the regulator device tree node |
17 | "supply-name" examples are "vmmc", "vmmc_aux" etc | 19 | "supply-name" examples are "vmmc", "vmmc_aux" etc |
18 | bus-width: Number of data lines, default assumed is 1 if the property is missing. | ||
19 | cd-gpios: GPIOs for card detection | ||
20 | wp-gpios: GPIOs for write protection | ||
21 | ti,non-removable: non-removable slot (like eMMC) | 20 | ti,non-removable: non-removable slot (like eMMC) |
22 | ti,needs-special-reset: Requires a special softreset sequence | 21 | ti,needs-special-reset: Requires a special softreset sequence |
23 | 22 | ||