mmc: mxcmmc: DT support
Subsystems (3)
PATCH 1/1 mmc: mxcmmc: DT support
Adding devicetree support for imx21-mmc and imx31-mmc. Based on generic gpio helper functions by Guennadi and generic DMA devicetree bindings.
--- .../devicetree/bindings/mmc/fsl-imx-mmc.txt | 24 +++++++ drivers/mmc/host/mxcmmc.c | 80 +++++++++++++++++----- 2 files changed, 86 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +24 -0
@@ -0,0 +1,24 @@ +* Freescale Secure Digital Host Controller for i.MX1/2 series + +This file documents differences to the properties defined in mmc.txt. + +Required properties: +- compatible : Should be "fsl,<chip>-mmc", chip can be imx21 or imx31 + +Optional properties: +- dmas: One DMA phandle with arguments as defined by the devicetree bindings + of the used DMA controller. +- dma-names: Has to be "rx-tx". + +Example: + +sdhci1: sdhci at 10014000 { + compatible = "fsl,imx27-mmc", "fsl,imx21-mmc"; + reg = <0x10014000 0x1000>; + interrupts = <11>; + dmas = <&dma 7>; + dma-names = "rx-tx"; + bus-width = <4>; + cd-gpios = <&gpio3 29>; + status = "okay"; +};
drivers/mmc/host/mxcmmc.c +62 -18
133 lines not on this page · raw message
Signature · 1 line
1.8.1.2
PATCH 1/1 mmc: mxcmmc: DT support
Quoted 16 lines · On Mon, 25 Feb 2013 19:28:05 +0100 Markus Pargmann <[email protected]> wrote:
Adding devicetree support for imx21-mmc and imx31-mmc. Based on generic gpio helper functions by Guennadi and generic DMA devicetree bindings.
Signed-off-by Markus Pargmann <[email protected]>--- .../devicetree/bindings/mmc/fsl-imx-mmc.txt | 24 +++++++ drivers/mmc/host/mxcmmc.c | 80 +++++++++++++++++----- 2 files changed, 86 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txtDocumentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +0
-0
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt line 1
Quoted 1 line
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +1
-0@@ -0,0 +1,24 @@ +* Freescale Secure Digital Host Controller for i.MX1/2 series
shouldn't it be "... for i.MX2/3 series"?
...
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt line 4
Quoted 3 lines
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +3
-0+ if (!host->pdata) { + host->dma = of_dma_request_slave_channel(pdev->dev.of_node, + "rx-tx");
please use dma_request_slave_channel(&pdev->dev, "rx-tx") here. of_dma_request_slave_channel() is not exported for modules, building the driver as a module will fail.
Thanks,
Anatolij
PATCH 1/1 mmc: mxcmmc: DT support
Quoted 23 lines · Anatolij Gustschin
Quoted 16 lines · On Mon, 25 Feb 2013 19:28:05 +0100 Markus Pargmann <[email protected]> wrote:
Adding devicetree support for imx21-mmc and imx31-mmc. Based on generic gpio helper functions by Guennadi and generic DMA devicetree bindings.
Signed-off-by Markus Pargmann <[email protected]>--- .../devicetree/bindings/mmc/fsl-imx-mmc.txt | 24 +++++++ drivers/mmc/host/mxcmmc.c | 80 +++++++++++++++++----- 2 files changed, 86 insertions(+), 18 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txtDocumentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +0
-0Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt line 1
Quoted 1 line
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +1
-0@@ -0,0 +1,24 @@ +* Freescale Secure Digital Host Controller for i.MX1/2 seriesshouldn't it be "... for i.MX2/3 series"?
Quoted 8 lines
...
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt
Quoted 3 lines
Documentation/devicetree/bindings/mmc/fsl-imx-mmc.txt new file +3
-0+ if (!host->pdata) { + host->dma = of_dma_request_slave_channel(pdev->dev.of_node, + "rx-tx");please use
dma_request_slave_channel(&pdev->dev, "rx-tx")here.of_dma_request_slave_channel()is not exported for modules, building the driver as a module will fail.
Thank you, I changed both in version 2.
Regards,
Markus
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |