* [PATCH] mtd: fsmc-nand: Update compatible property
@ 2012-03-23 8:45 ` Viresh Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2012-03-23 8:45 UTC (permalink / raw)
To: sr-ynQEQJNshbs, artem.bityutskiy-VuQAYsv1563Yd54FQh9/CA
Cc: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Viresh Kumar,
spear-devel-nkJGhpqTU55BDgjK7y7TUQ,
viresh.linux-Re5JQEeQqe8AvxtiuMwx3w,
devicetree-discuss-mnsaURCQ41sdnm+yROfE0A
FSMC NAND driver can verify device version by itself and so we wouldn't be
required to have separate .compatible entries for different SPEAr SoCs.
Thus this patch updates compatible entry to: "st,spear-fsmc-nand", so that it
works for all SPEAr machines.
Signed-off-by: Viresh Kumar <viresh.kumar-qxv4g6HH51o@public.gmane.org>
---
.../devicetree/bindings/mtd/fsmc-nand.txt | 4 ++--
drivers/mtd/nand/fsmc_nand.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/mtd/fsmc-nand.txt b/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
index e2c663b..7551600 100644
--- a/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
@@ -1,7 +1,7 @@
* FSMC NAND
Required properties:
-- compatible : "st,spear600-fsmc-nand"
+- compatible : "st,spear-fsmc-nand"
- reg : Address range of the mtd chip
- reg-names: Should contain the reg names "fsmc_regs" and "nand_data"
- st,ale-off : Chip specific offset to ALE
@@ -15,7 +15,7 @@ Optional properties:
Example:
fsmc: flash@d1800000 {
- compatible = "st,spear600-fsmc-nand";
+ compatible = "st,spear-fsmc-nand";
#address-cells = <1>;
#size-cells = <1>;
reg = <0xd1800000 0x1000 /* FSMC Register */
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 1b8330e..ecb103e 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -1231,7 +1231,7 @@ static SIMPLE_DEV_PM_OPS(fsmc_nand_pm_ops, fsmc_nand_suspend, fsmc_nand_resume);
#ifdef CONFIG_OF
static const struct of_device_id fsmc_nand_id_table[] = {
- { .compatible = "st,spear600-fsmc-nand" },
+ { .compatible = "st,spear-fsmc-nand" },
{}
};
MODULE_DEVICE_TABLE(of, fsmc_nand_id_table);
--
1.7.8.110.g4cb5d
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] mtd: fsmc-nand: Update compatible property
@ 2012-03-23 8:45 ` Viresh Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Viresh Kumar @ 2012-03-23 8:45 UTC (permalink / raw)
To: sr, artem.bityutskiy
Cc: linux-mtd, Viresh Kumar, spear-devel, viresh.linux, devicetree-discuss
FSMC NAND driver can verify device version by itself and so we wouldn't be
required to have separate .compatible entries for different SPEAr SoCs.
Thus this patch updates compatible entry to: "st,spear-fsmc-nand", so that it
works for all SPEAr machines.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
---
.../devicetree/bindings/mtd/fsmc-nand.txt | 4 ++--
drivers/mtd/nand/fsmc_nand.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/mtd/fsmc-nand.txt b/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
index e2c663b..7551600 100644
--- a/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/fsmc-nand.txt
@@ -1,7 +1,7 @@
* FSMC NAND
Required properties:
-- compatible : "st,spear600-fsmc-nand"
+- compatible : "st,spear-fsmc-nand"
- reg : Address range of the mtd chip
- reg-names: Should contain the reg names "fsmc_regs" and "nand_data"
- st,ale-off : Chip specific offset to ALE
@@ -15,7 +15,7 @@ Optional properties:
Example:
fsmc: flash@d1800000 {
- compatible = "st,spear600-fsmc-nand";
+ compatible = "st,spear-fsmc-nand";
#address-cells = <1>;
#size-cells = <1>;
reg = <0xd1800000 0x1000 /* FSMC Register */
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 1b8330e..ecb103e 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -1231,7 +1231,7 @@ static SIMPLE_DEV_PM_OPS(fsmc_nand_pm_ops, fsmc_nand_suspend, fsmc_nand_resume);
#ifdef CONFIG_OF
static const struct of_device_id fsmc_nand_id_table[] = {
- { .compatible = "st,spear600-fsmc-nand" },
+ { .compatible = "st,spear-fsmc-nand" },
{}
};
MODULE_DEVICE_TABLE(of, fsmc_nand_id_table);
--
1.7.8.110.g4cb5d
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-23 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-23 8:45 [PATCH] mtd: fsmc-nand: Update compatible property Viresh Kumar
2012-03-23 8:45 ` Viresh Kumar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.