Re: [PATCH v2 1/1] ARM: dove: DT support for sdhci-dove

2012-08-07 Thread Chris Ball
Hi Sebastian,

On Tue, Jul 31 2012, Sebastian Hesselbarth wrote:
> This patch adds device tree support and binding documentiation for
> sdhci-dove.
>
> v2: extended documentation and removed second interrupt as it is marked 
> 'reserved' in dove datasheet.
>
> Signed-off-by: Sebastian Hesselbarth 
> Cc: Grant Likely 
> Cc: Rob Herring 
> Cc: Rob Landley 
> Cc: Chris Ball 
> Cc: Anton Vorontsov 
> Cc: Manuel Lauss 
> Cc: David Brown 
> Cc: Andrew Lunn 
> Cc: devicetree-disc...@lists.ozlabs.org
> Cc: linux-...@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> Cc: linux-...@vger.kernel.org
>
> ---

Looks good, pushed to mmc-next for 3.7.  In future, please use the area
just below the "---" to describe your patch changelog v1->v2; that way
it won't go into the commit message in git.

Thanks,

- Chris.
-- 
Chris Ball  
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v2 1/1] ARM: dove: DT support for sdhci-dove

2012-08-07 Thread Chris Ball
Hi Sebastian,

On Tue, Jul 31 2012, Sebastian Hesselbarth wrote:
 This patch adds device tree support and binding documentiation for
 sdhci-dove.

 v2: extended documentation and removed second interrupt as it is marked 
 'reserved' in dove datasheet.

 Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@googlemail.com
 Cc: Grant Likely grant.lik...@secretlab.ca
 Cc: Rob Herring rob.herr...@calxeda.com
 Cc: Rob Landley r...@landley.net
 Cc: Chris Ball c...@laptop.org
 Cc: Anton Vorontsov cbouatmai...@gmail.com
 Cc: Manuel Lauss manuel.la...@googlemail.com
 Cc: David Brown dav...@codeaurora.org
 Cc: Andrew Lunn and...@lunn.ch
 Cc: devicetree-disc...@lists.ozlabs.org
 Cc: linux-...@vger.kernel.org
 Cc: linux-kernel@vger.kernel.org
 Cc: linux-...@vger.kernel.org

 ---

Looks good, pushed to mmc-next for 3.7.  In future, please use the area
just below the --- to describe your patch changelog v1-v2; that way
it won't go into the commit message in git.

Thanks,

- Chris.
-- 
Chris Ball   c...@laptop.org   http://printf.net/
One Laptop Per Child
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 1/1] ARM: dove: DT support for sdhci-dove

2012-07-31 Thread Sebastian Hesselbarth
This patch adds device tree support and binding documentiation for
sdhci-dove.

v2: extended documentation and removed second interrupt as it is marked 
'reserved' in dove datasheet.

Signed-off-by: Sebastian Hesselbarth 
Cc: Grant Likely 
Cc: Rob Herring 
Cc: Rob Landley 
Cc: Chris Ball 
Cc: Anton Vorontsov 
Cc: Manuel Lauss 
Cc: David Brown 
Cc: Andrew Lunn 
Cc: devicetree-disc...@lists.ozlabs.org
Cc: linux-...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-...@vger.kernel.org

---
 Documentation/devicetree/bindings/mmc/sdhci-dove.txt |   14 ++
 drivers/mmc/host/sdhci-dove.c|8 
 2 files changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt

diff --git a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt 
b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
new file mode 100644
index 000..f08bb30
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
@@ -0,0 +1,14 @@
+* Marvell sdhci-dove controller
+
+Required properties:
+- compatible: Should be "marvell,dove-sdhci".
+- reg: Physical base address of the sdhci controller.
+- interrupts: interrupt nr of the sdhci controller.
+
+Example:
+
+sdio0: sdio@92000 {
+   compatible = "marvell,dove-sdhci";
+   reg = <0x92000 0x100>;
+   interrupts = <35>;
+};
diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c
index a6e53a1..90140eb 100644
--- a/drivers/mmc/host/sdhci-dove.c
+++ b/drivers/mmc/host/sdhci-dove.c
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "sdhci-pltfm.h"
 
@@ -126,11 +127,18 @@ static int __devexit sdhci_dove_remove(struct 
platform_device *pdev)
return sdhci_pltfm_unregister(pdev);
 }
 
+static const struct of_device_id sdhci_dove_of_match_table[] __devinitdata = {
+   { .compatible = "marvell,dove-sdhci", },
+   {}
+};
+MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table);
+
 static struct platform_driver sdhci_dove_driver = {
.driver = {
.name   = "sdhci-dove",
.owner  = THIS_MODULE,
.pm = SDHCI_PLTFM_PMOPS,
+   .of_match_table = of_match_ptr(sdhci_dove_of_match_table),
},
.probe  = sdhci_dove_probe,
.remove = __devexit_p(sdhci_dove_remove),
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 1/1] ARM: dove: DT support for sdhci-dove

2012-07-31 Thread Sebastian Hesselbarth
This patch adds device tree support and binding documentiation for
sdhci-dove.

v2: extended documentation and removed second interrupt as it is marked 
'reserved' in dove datasheet.

Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@googlemail.com
Cc: Grant Likely grant.lik...@secretlab.ca
Cc: Rob Herring rob.herr...@calxeda.com
Cc: Rob Landley r...@landley.net
Cc: Chris Ball c...@laptop.org
Cc: Anton Vorontsov cbouatmai...@gmail.com
Cc: Manuel Lauss manuel.la...@googlemail.com
Cc: David Brown dav...@codeaurora.org
Cc: Andrew Lunn and...@lunn.ch
Cc: devicetree-disc...@lists.ozlabs.org
Cc: linux-...@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-...@vger.kernel.org

---
 Documentation/devicetree/bindings/mmc/sdhci-dove.txt |   14 ++
 drivers/mmc/host/sdhci-dove.c|8 
 2 files changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mmc/sdhci-dove.txt

diff --git a/Documentation/devicetree/bindings/mmc/sdhci-dove.txt 
b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
new file mode 100644
index 000..f08bb30
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/sdhci-dove.txt
@@ -0,0 +1,14 @@
+* Marvell sdhci-dove controller
+
+Required properties:
+- compatible: Should be marvell,dove-sdhci.
+- reg: Physical base address of the sdhci controller.
+- interrupts: interrupt nr of the sdhci controller.
+
+Example:
+
+sdio0: sdio@92000 {
+   compatible = marvell,dove-sdhci;
+   reg = 0x92000 0x100;
+   interrupts = 35;
+};
diff --git a/drivers/mmc/host/sdhci-dove.c b/drivers/mmc/host/sdhci-dove.c
index a6e53a1..90140eb 100644
--- a/drivers/mmc/host/sdhci-dove.c
+++ b/drivers/mmc/host/sdhci-dove.c
@@ -24,6 +24,7 @@
 #include linux/err.h
 #include linux/module.h
 #include linux/mmc/host.h
+#include linux/of.h
 
 #include sdhci-pltfm.h
 
@@ -126,11 +127,18 @@ static int __devexit sdhci_dove_remove(struct 
platform_device *pdev)
return sdhci_pltfm_unregister(pdev);
 }
 
+static const struct of_device_id sdhci_dove_of_match_table[] __devinitdata = {
+   { .compatible = marvell,dove-sdhci, },
+   {}
+};
+MODULE_DEVICE_TABLE(of, sdhci_dove_of_match_table);
+
 static struct platform_driver sdhci_dove_driver = {
.driver = {
.name   = sdhci-dove,
.owner  = THIS_MODULE,
.pm = SDHCI_PLTFM_PMOPS,
+   .of_match_table = of_match_ptr(sdhci_dove_of_match_table),
},
.probe  = sdhci_dove_probe,
.remove = __devexit_p(sdhci_dove_remove),
-- 
1.7.10.4

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/