* [PATCH 3/3 v3] mtd/powerpc: Describe multiple "reg" tuples usage
@ 2009-04-16 12:11 Stefan Roese
[not found] ` <1239883865-17915-1-git-send-email-sr-ynQEQJNshbs@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2009-04-16 12:11 UTC (permalink / raw)
To: linuxppc-dev, linux-mtd; +Cc: grant.likely, devicetree-discuss
Signed-off-by: Stefan Roese <sr@denx.de>
CC: Grant Likely <grant.likely@secretlab.ca>
---
Changes in ver3:
- Removed reference to Intel P30 parts
- Added exact chip compatible property for best practice.
Documentation/powerpc/dts-bindings/mtd-physmap.txt | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/Documentation/powerpc/dts-bindings/mtd-physmap.txt b/Documentation/powerpc/dts-bindings/mtd-physmap.txt
index cd474f9..667c9bd 100644
--- a/Documentation/powerpc/dts-bindings/mtd-physmap.txt
+++ b/Documentation/powerpc/dts-bindings/mtd-physmap.txt
@@ -5,7 +5,9 @@ file systems on embedded devices.
- compatible : should contain the specific model of flash chip(s)
used, if known, followed by either "cfi-flash" or "jedec-flash"
- - reg : Address range of the flash chip
+ - reg : Address range(s) of the flash chip(s)
+ It's possible to (optionally) define multiple "reg" tuples so that
+ non-identical NOR chips can be described in one flash node.
- bank-width : Width (in bytes) of the flash bank. Equal to the
device width times the number of interleaved chips.
- device-width : (optional) Width of a single flash chip. If
@@ -61,3 +63,18 @@ Example:
read-only;
};
};
+
+Here an example with multiple "reg" tuples:
+
+ flash@f0000000,0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "intel,PC48F4400P0VB", "cfi-flash";
+ reg = <0 0x00000000 0x02000000
+ 0 0x02000000 0x02000000>;
+ bank-width = <2>;
+ partition@0 {
+ label = "test-part1";
+ reg = <0 0x04000000>;
+ };
+ };
--
1.6.2.3
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3 v3] mtd/powerpc: Describe multiple "reg" tuples usage
[not found] ` <1239883865-17915-1-git-send-email-sr-ynQEQJNshbs@public.gmane.org>
@ 2009-04-16 13:23 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2009-04-16 13:23 UTC (permalink / raw)
To: Stefan Roese
Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A,
devicetree-discuss-mnsaURCQ41sdnm+yROfE0A,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Thu, Apr 16, 2009 at 6:11 AM, Stefan Roese <sr-ynQEQJNshbs@public.gmane.org> wrote:
> Signed-off-by: Stefan Roese <sr-ynQEQJNshbs@public.gmane.org>
> CC: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Acked-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
I'll pick this one up too.
> ---
> Changes in ver3:
> - Removed reference to Intel P30 parts
> - Added exact chip compatible property for best practice.
>
> Documentation/powerpc/dts-bindings/mtd-physmap.txt | 19 ++++++++++++++++++-
> 1 files changed, 18 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/powerpc/dts-bindings/mtd-physmap.txt b/Documentation/powerpc/dts-bindings/mtd-physmap.txt
> index cd474f9..667c9bd 100644
> --- a/Documentation/powerpc/dts-bindings/mtd-physmap.txt
> +++ b/Documentation/powerpc/dts-bindings/mtd-physmap.txt
> @@ -5,7 +5,9 @@ file systems on embedded devices.
>
> - compatible : should contain the specific model of flash chip(s)
> used, if known, followed by either "cfi-flash" or "jedec-flash"
> - - reg : Address range of the flash chip
> + - reg : Address range(s) of the flash chip(s)
> + It's possible to (optionally) define multiple "reg" tuples so that
> + non-identical NOR chips can be described in one flash node.
> - bank-width : Width (in bytes) of the flash bank. Equal to the
> device width times the number of interleaved chips.
> - device-width : (optional) Width of a single flash chip. If
> @@ -61,3 +63,18 @@ Example:
> read-only;
> };
> };
> +
> +Here an example with multiple "reg" tuples:
> +
> + flash@f0000000,0 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "intel,PC48F4400P0VB", "cfi-flash";
> + reg = <0 0x00000000 0x02000000
> + 0 0x02000000 0x02000000>;
> + bank-width = <2>;
> + partition@0 {
> + label = "test-part1";
> + reg = <0 0x04000000>;
> + };
> + };
> --
> 1.6.2.3
>
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-16 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 12:11 [PATCH 3/3 v3] mtd/powerpc: Describe multiple "reg" tuples usage Stefan Roese
[not found] ` <1239883865-17915-1-git-send-email-sr-ynQEQJNshbs@public.gmane.org>
2009-04-16 13:23 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox