From: Rob Herring <robh@kernel.org>
To: "Paweł Chmiel" <pawel.mikolaj.chmiel@gmail.com>
Cc: kyungmin.park@samsung.com, bbrezillon@kernel.org,
miquel.raynal@bootlin.com, richard@nod.at, dwmw2@infradead.org,
computersforpeace@gmail.com, marek.vasut@gmail.com,
mark.rutland@arm.com, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Tomasz Figa <tomasz.figa@gmail.com>
Subject: Re: [PATCH 4/5] dt-binding: mtd: onenand/samsung: Add device tree support
Date: Wed, 1 May 2019 20:54:08 -0500 [thread overview]
Message-ID: <20190502015408.GA11612@bogus> (raw)
In-Reply-To: <20190426164224.11327-5-pawel.mikolaj.chmiel@gmail.com>
On Fri, Apr 26, 2019 at 06:42:23PM +0200, Paweł Chmiel wrote:
> From: Tomasz Figa <tomasz.figa@gmail.com>
>
> This patch adds dt-bindings for Samsung OneNAND driver.
>
> Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
> Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
> ---
> .../bindings/mtd/samsung-onenand.txt | 46 +++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mtd/samsung-onenand.txt
>
> diff --git a/Documentation/devicetree/bindings/mtd/samsung-onenand.txt b/Documentation/devicetree/bindings/mtd/samsung-onenand.txt
> new file mode 100644
> index 000000000000..341d97cc1513
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mtd/samsung-onenand.txt
> @@ -0,0 +1,46 @@
> +Device tree bindings for Samsung SoC OneNAND controller
> +
> +Required properties:
> + - compatible : value should be either of the following.
> + (a) "samsung,s3c6400-onenand" - for onenand controller compatible with
> + S3C6400 SoC,
> + (b) "samsung,s3c6410-onenand" - for onenand controller compatible with
> + S3C6410 SoC,
> + (c) "samsung,s5pc100-onenand" - for onenand controller compatible with
> + S5PC100 SoC,
> + (d) "samsung,s5pv210-onenand" - for onenand controller compatible with
> + S5PC110/S5PV210 SoCs.
> +
> + - reg : two memory mapped register regions:
> + - first entry: control registers.
> + - second and next entries: memory windows of particular OneNAND chips;
> + for variants a), b) and c) only one is allowed, in case of d) up to
> + two chips can be supported.
> +
> + - interrupt-parent : phandle of interrupt controller to which the OneNAND
> + controller is wired,
This is implied and can be removed.
> + - interrupts : specifier of interrupt signal to which the OneNAND controller
> + is wired; should contain just one entry.
> + - clock-names : should contain two entries:
> + - "bus" - bus clock of the controller,
> + - "onenand" - clock supplied to OneNAND memory.
If the clock just goes to the OneNAND device, then it should be in the
nand device node rather than the controller node.
> + - clock: should contain list of phandles and specifiers for all clocks listed
> + in clock-names property.
> + - #address-cells : must be 1,
> + - #size-cells : must be 1.
This implies some child nodes. What are the child nodes?
> +
> +For partition table parsing (optional) please refer to:
> + [1] Documentation/devicetree/bindings/mtd/partition.txt
> +
> +Example for an s5pv210 board:
> +
> + onenand@b0600000 {
> + compatible = "samsung,s5pv210-onenand";
> + reg = <0xb0600000 0x2000>, <0xb0000000 0x20000>;
> + interrupt-parent = <&vic1>;
> + interrupts = <31>;
> + clock-names = "bus", "onenand";
> + clocks = <&clocks NANDXL>, <&clocks DOUT_FLASH>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + };
> --
> 2.20.1
>
next prev parent reply other threads:[~2019-05-02 1:54 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-26 16:42 [PATCH 0/5] mtd: onenand/samsung: Add device tree support Paweł Chmiel
2019-04-26 16:42 ` [PATCH 1/5] mtd: onenand/samsung: Unify resource order for controller variants Paweł Chmiel
2019-04-29 8:16 ` Miquel Raynal
2019-04-26 16:42 ` [PATCH 2/5] mtd: onenand/samsung: Make sure that bus clock is enabled Paweł Chmiel
2019-04-29 8:18 ` Miquel Raynal
2019-04-26 16:42 ` [PATCH 3/5] mtd: onenand/samsung: Add device tree support Paweł Chmiel
2019-04-29 8:21 ` Miquel Raynal
2019-04-26 16:42 ` [PATCH 4/5] dt-binding: " Paweł Chmiel
2019-05-02 1:54 ` Rob Herring [this message]
2019-05-02 6:23 ` Tomasz Figa
2019-05-02 6:36 ` Boris Brezillon
2019-05-02 6:42 ` Tomasz Figa
2019-05-02 6:55 ` Boris Brezillon
2019-05-02 6:58 ` Tomasz Figa
2019-05-02 7:21 ` Boris Brezillon
2019-05-02 8:41 ` Tomasz Figa
2019-04-26 16:42 ` [PATCH 5/5] mtd: onenand/samsung: Set name field of mtd_info struct Paweł Chmiel
2019-04-29 8:22 ` Miquel Raynal
2019-04-29 8:19 ` [PATCH 0/5] mtd: onenand/samsung: Add device tree support Miquel Raynal
2019-04-29 14:42 ` Paweł Chmiel
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=20190502015408.GA11612@bogus \
--to=robh@kernel.org \
--cc=bbrezillon@kernel.org \
--cc=computersforpeace@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=dwmw2@infradead.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=marek.vasut@gmail.com \
--cc=mark.rutland@arm.com \
--cc=miquel.raynal@bootlin.com \
--cc=pawel.mikolaj.chmiel@gmail.com \
--cc=richard@nod.at \
--cc=tomasz.figa@gmail.com \
/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 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).