* [PATCH v2 1/2] mtd: docg3: add device-tree support
@ 2014-09-27 19:34 Robert Jarzmik
[not found] ` <1411846470-30041-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Robert Jarzmik @ 2014-09-27 19:34 UTC (permalink / raw)
To: Brian Norris, David Woodhouse, Mark Rutland
Cc: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Robert Jarzmik,
devicetree-u79uwXL29TY76Z2rM5mHXA
Add device-tree support. This is straightforward as docg3 only uses the
standard IOMEM resources.
Signed-off-by: Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
---
Since v1: Mark's review: changed compatible string
---
drivers/mtd/devices/docg3.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 91a169c..e2e0713 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -22,6 +22,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/errno.h>
+#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/string.h>
#include <linux/slab.h>
@@ -2126,10 +2127,17 @@ static int __exit docg3_release(struct platform_device *pdev)
return 0;
}
+static struct of_device_id docg3_dt_ids[] = {
+ { .compatible = "m-systems,diskonchip-g3" },
+ {}
+};
+MODULE_DEVICE_TABLE(of, docg3_dt_ids);
+
static struct platform_driver g3_driver = {
.driver = {
.name = "docg3",
.owner = THIS_MODULE,
+ .of_match_table = of_match_ptr(docg3_dt_ids),
},
.suspend = docg3_suspend,
.resume = docg3_resume,
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] mtd: docg3: add device-tree documentation
[not found] ` <1411846470-30041-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
@ 2014-09-27 19:34 ` Robert Jarzmik
2014-10-08 18:04 ` [PATCH v2 1/2] mtd: docg3: add device-tree support Robert Jarzmik
2014-10-22 8:37 ` Brian Norris
2 siblings, 0 replies; 5+ messages in thread
From: Robert Jarzmik @ 2014-09-27 19:34 UTC (permalink / raw)
To: Brian Norris, David Woodhouse, Mark Rutland
Cc: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Robert Jarzmik,
devicetree-u79uwXL29TY76Z2rM5mHXA
Add documentation for the sandisk docg3 chip.
Signed-off-by: Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
---
Since v1: Mark's review : use m-systems,diskonchip-g3, add flash@0,
grammar
---
Documentation/devicetree/bindings/mtd/diskonchip.txt | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mtd/diskonchip.txt
diff --git a/Documentation/devicetree/bindings/mtd/diskonchip.txt b/Documentation/devicetree/bindings/mtd/diskonchip.txt
new file mode 100644
index 0000000..3e13bfd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/diskonchip.txt
@@ -0,0 +1,15 @@
+M-Systems and Sandisk DiskOnChip devices
+
+M-System DiskOnChip G3
+======================
+The Sandisk (formerly M-Systems) docg3 is a nand device of 64M to 256MB.
+
+Required properties:
+ - compatible: should be "m-systems,diskonchip-g3"
+ - reg: register base and size
+
+Example:
+ docg3: flash@0 {
+ compatible = "m-systems,diskonchip-g3";
+ reg = <0x0 0x2000>;
+ };
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] mtd: docg3: add device-tree support
[not found] ` <1411846470-30041-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2014-09-27 19:34 ` [PATCH v2 2/2] mtd: docg3: add device-tree documentation Robert Jarzmik
@ 2014-10-08 18:04 ` Robert Jarzmik
[not found] ` <87oatma15s.fsf-GANU6spQydw@public.gmane.org>
2014-10-22 8:37 ` Brian Norris
2 siblings, 1 reply; 5+ messages in thread
From: Robert Jarzmik @ 2014-10-08 18:04 UTC (permalink / raw)
To: Brian Norris, David Woodhouse
Cc: Mark Rutland, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org> writes:
> Add device-tree support. This is straightforward as docg3 only uses the
> standard IOMEM resources.
Brian, David, ping ?
Cheers.
--
Robert
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] mtd: docg3: add device-tree support
[not found] ` <87oatma15s.fsf-GANU6spQydw@public.gmane.org>
@ 2014-10-15 20:20 ` Robert Jarzmik
0 siblings, 0 replies; 5+ messages in thread
From: Robert Jarzmik @ 2014-10-15 20:20 UTC (permalink / raw)
To: Brian Norris, David Woodhouse
Cc: Mark Rutland, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org> writes:
> Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org> writes:
>
>> Add device-tree support. This is straightforward as docg3 only uses the
>> standard IOMEM resources.
> Brian, David, ping ?
Brian, David, reping ?
--
Robert
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] mtd: docg3: add device-tree support
[not found] ` <1411846470-30041-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2014-09-27 19:34 ` [PATCH v2 2/2] mtd: docg3: add device-tree documentation Robert Jarzmik
2014-10-08 18:04 ` [PATCH v2 1/2] mtd: docg3: add device-tree support Robert Jarzmik
@ 2014-10-22 8:37 ` Brian Norris
2 siblings, 0 replies; 5+ messages in thread
From: Brian Norris @ 2014-10-22 8:37 UTC (permalink / raw)
To: Robert Jarzmik
Cc: David Woodhouse, Mark Rutland,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
devicetree-u79uwXL29TY76Z2rM5mHXA
On Sat, Sep 27, 2014 at 09:34:29PM +0200, Robert Jarzmik wrote:
> Add device-tree support. This is straightforward as docg3 only uses the
> standard IOMEM resources.
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik-GANU6spQydw@public.gmane.org>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
>
> ---
> Since v1: Mark's review: changed compatible string
Pushed both to l2-mtd.git. Thanks!
Brian
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-22 8:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-27 19:34 [PATCH v2 1/2] mtd: docg3: add device-tree support Robert Jarzmik
[not found] ` <1411846470-30041-1-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2014-09-27 19:34 ` [PATCH v2 2/2] mtd: docg3: add device-tree documentation Robert Jarzmik
2014-10-08 18:04 ` [PATCH v2 1/2] mtd: docg3: add device-tree support Robert Jarzmik
[not found] ` <87oatma15s.fsf-GANU6spQydw@public.gmane.org>
2014-10-15 20:20 ` Robert Jarzmik
2014-10-22 8:37 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).