From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 2/3] ARM: kirkwood: Convert orion-nand to fdt
Date: Sat, 24 Mar 2012 19:01:00 +0000 [thread overview]
Message-ID: <201203241901.00405.arnd@arndb.de> (raw)
In-Reply-To: <1332594876-8673-3-git-send-email-jm@lentin.co.uk>
On Saturday 24 March 2012, Jamie Lentin wrote:
> Convert orion-nand to use fdt and add common setup to kirkwood.dtsi, including
> a default value for chip-delay (all current boards seem to use 25 anyway).
>
> Add placeholder documentation for the bindings, for someone more knowledgable
> than me to fill in the details of the properties.
Looks very good. Two small comments:
> diff --git a/Documentation/devicetree/bindings/mtd/orion-nand.txt b/Documentation/devicetree/bindings/mtd/orion-nand.txt
> new file mode 100644
> index 0000000..d347999
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mtd/orion-nand.txt
> @@ -0,0 +1,46 @@
> +NAND support for Marvell Orion SoC platforms
> +
> +Required properties:
> +- compatible : "mrvl,orion-nand".
> +- reg : Base physical address of the NAND and length of memory mapped
> + region
> +
> +Optional properties:
> +- cle :
> +- ale :
> +- width :
> +- chip-delay :
I think the "width" property should be called "bank-width" to match the other
bindings.
> +Examples:
> +
> +nand at f4000000 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + cle = <0>;
> + ale = <1>;
> + width = <8>;
> + chip-delay = <25>;
> + compatible = "mrvl,orion-nand";
> + reg = <0xf4000000 0x400>;
> +
> + partition at 0 {
> + label = "u-boot";
> + reg = <0x0000000 0x100000>;
> + read-only;
> + };
You don't describe the partitions in the binding. Others have the same omission,
but I think it's worth mentioning. Either point to the mtd-physmap.txt file,
or make your patch move the partition support into a new file that everything
else can refer to.
Arnd
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Jamie Lentin <jm-Pj/HzkgeCk7QXOPxS62xeg@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
Jason <jason-NLaQJdtUoK4Be96aLqz0jA@public.gmane.org>,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH V2 2/3] ARM: kirkwood: Convert orion-nand to fdt
Date: Sat, 24 Mar 2012 19:01:00 +0000 [thread overview]
Message-ID: <201203241901.00405.arnd@arndb.de> (raw)
In-Reply-To: <1332594876-8673-3-git-send-email-jm-Pj/HzkgeCk7QXOPxS62xeg@public.gmane.org>
On Saturday 24 March 2012, Jamie Lentin wrote:
> Convert orion-nand to use fdt and add common setup to kirkwood.dtsi, including
> a default value for chip-delay (all current boards seem to use 25 anyway).
>
> Add placeholder documentation for the bindings, for someone more knowledgable
> than me to fill in the details of the properties.
Looks very good. Two small comments:
> diff --git a/Documentation/devicetree/bindings/mtd/orion-nand.txt b/Documentation/devicetree/bindings/mtd/orion-nand.txt
> new file mode 100644
> index 0000000..d347999
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mtd/orion-nand.txt
> @@ -0,0 +1,46 @@
> +NAND support for Marvell Orion SoC platforms
> +
> +Required properties:
> +- compatible : "mrvl,orion-nand".
> +- reg : Base physical address of the NAND and length of memory mapped
> + region
> +
> +Optional properties:
> +- cle :
> +- ale :
> +- width :
> +- chip-delay :
I think the "width" property should be called "bank-width" to match the other
bindings.
> +Examples:
> +
> +nand@f4000000 {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + cle = <0>;
> + ale = <1>;
> + width = <8>;
> + chip-delay = <25>;
> + compatible = "mrvl,orion-nand";
> + reg = <0xf4000000 0x400>;
> +
> + partition@0 {
> + label = "u-boot";
> + reg = <0x0000000 0x100000>;
> + read-only;
> + };
You don't describe the partitions in the binding. Others have the same omission,
but I think it's worth mentioning. Either point to the mtd-physmap.txt file,
or make your patch move the partition support into a new file that everything
else can refer to.
Arnd
next prev parent reply other threads:[~2012-03-24 19:01 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-24 13:14 [PATCH V2 0/3] Add support for DNS-320 and DNS-325 using devicetree Jamie Lentin
2012-03-24 13:14 ` Jamie Lentin
2012-03-24 13:14 ` [PATCH V2 1/3] ARM: kirkwood: Basic support for DNS-320 and DNS-325 Jamie Lentin
2012-03-24 13:14 ` Jamie Lentin
2012-03-24 19:26 ` Arnd Bergmann
2012-03-24 19:26 ` Arnd Bergmann
2012-03-25 15:05 ` Jason Cooper
2012-03-25 15:05 ` Jason Cooper
2012-03-24 13:14 ` [PATCH V2 2/3] ARM: kirkwood: Convert orion-nand to fdt Jamie Lentin
2012-03-24 13:14 ` Jamie Lentin
2012-03-24 19:01 ` Arnd Bergmann [this message]
2012-03-24 19:01 ` Arnd Bergmann
2012-03-25 0:17 ` [PATCH V3 " Jamie Lentin
2012-03-25 0:17 ` Jamie Lentin
2012-03-25 7:52 ` Arnd Bergmann
2012-03-25 7:52 ` Arnd Bergmann
2012-03-25 14:57 ` Jason Cooper
2012-03-25 14:57 ` Jason Cooper
2012-03-24 13:14 ` [PATCH V2 3/3] ARM: kirkwood: Define NAND partitions in dts Jamie Lentin
2012-03-24 13:14 ` Jamie Lentin
2012-03-24 19:01 ` Arnd Bergmann
2012-03-24 19:01 ` Arnd Bergmann
2012-03-26 15:53 ` Scott Wood
2012-03-26 15:53 ` Scott Wood
2012-03-26 16:20 ` Jason Cooper
2012-03-26 16:20 ` Jason Cooper
2012-03-26 16:28 ` Scott Wood
2012-03-26 16:28 ` Scott Wood
2012-03-26 16:36 ` Jamie Lentin
2012-03-26 16:36 ` Jamie Lentin
2012-03-26 16:43 ` Jason Cooper
2012-03-26 16:43 ` Jason Cooper
2012-03-26 16:52 ` [PATCH] ARM: kirkwood: fdt: use IEEE1275 status = "okay" Jason Cooper
2012-03-26 16:52 ` Jason Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203241901.00405.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.