All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>, linux-mtd@lists.infradead.org
Cc: boris.brezillon@free-electrons.com, cyrille.pitchen@wedev4u.fr,
	computersforpeace@gmail.com, han.xu@nxp.com, festevam@gmail.com,
	frieder.schrempf@exceet.de, suresh.gupta@nxp.com
Subject: Re: [RFC PATCH 3/4] dt-bindings: Add binding file for NXP FlexSPI driver
Date: Wed, 4 Apr 2018 12:37:26 +0200	[thread overview]
Message-ID: <3292873d-c94e-e140-e09a-6529e672cb5e@gmail.com> (raw)
In-Reply-To: <1522836371-2828-4-git-send-email-yogeshnarayan.gaur@nxp.com>

On 04/04/2018 12:06 PM, Yogesh Gaur wrote:
> Added binding file for NXP FlexSPI driver in Documentation folder.

What's a "folder" ?

> Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
> ---
>  .../devicetree/bindings/mtd/nxp-flexspi.txt        | 40 ++++++++++++++++++++++
>  1 file changed, 40 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mtd/nxp-flexspi.txt
> 
> diff --git a/Documentation/devicetree/bindings/mtd/nxp-flexspi.txt b/Documentation/devicetree/bindings/mtd/nxp-flexspi.txt
> new file mode 100644
> index 0000000..23817dc
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mtd/nxp-flexspi.txt
> @@ -0,0 +1,40 @@
> +* NXP Flex Serial Peripheral Interface(FlexSPI)
> +
> +Required properties:
> +  - compatible : Should be "nxp,lx2160a-fspi"
> +  - reg : the first contains the register location and length,
> +          the second contains the memory mapping address and length
> +  - reg-names: Should contain the reg names "FSPI" and "FSPI-memory"

This should be lowercase.

> +  - interrupts : Should contain the interrupt for the device
> +
> +Optional properties:
> +  - nxp,fspi-has-second-chip: The controller has two buses, bus A and bus B.
> +			      Each bus can be connected with two NOR flashes.
> +			      Most of the time, each bus only has one NOR flash
> +			      connected, this is the default case.
> +			      But if there are two NOR flashes connected to the
> +			      bus, you should enable this property.
> +			     ( Please check the board's schematic.)

Can't you model this by specifying two chips in the DT ?

> +  - big-endian : That means the IP register is big endian. If not specified,
> +		 IP register works in little endian mode.
> +
> +Example:
> +fspi0: flexspi@20c0000 {
> +	compatible = "nxp,lx2160a-fspi";
> +	reg = <0x0 0x20c0000 0x0 0x10000>, <0x0 0x20000000 0x0 0x10000000>;
> +	reg-names = "FSPI", "FSPI-memory";
> +	interrupts = <0 25 0x4>; /* Level high type */
> +
> +	status = "okay";
> +	nxp,fspi-has-second-chip;
> +	flash0: mt35xu512aba@0 {
> +		reg = <0>;
> +		....
> +	};
> +
> +	flash1: mt35xu512aba@1 {
> +		reg = <1>;
> +		....
> +	};
> +
> +};
> 


-- 
Best regards,
Marek Vasut

  reply	other threads:[~2018-04-04 10:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-04 10:06 [RFC PATCH 0/4] mtd: spi-nor: Add NXP FlexSPI driver Yogesh Gaur
2018-04-04 10:06 ` [RFC PATCH 1/4] mtd: spi-nor: Add entry for mt35xu512aba flash Yogesh Gaur
2018-04-04 10:35   ` Marek Vasut
2018-04-04 10:06 ` [RFC PATCH 2/4] spi: add flags for octal I/O data transfer Yogesh Gaur
2018-04-04 10:06 ` [RFC PATCH 3/4] dt-bindings: Add binding file for NXP FlexSPI driver Yogesh Gaur
2018-04-04 10:37   ` Marek Vasut [this message]
2018-04-04 10:06 ` [RFC PATCH 4/4] mtd: spi-nor: Add " Yogesh Gaur
2018-04-04 10:58   ` Vignesh R
2018-04-04 10:28 ` [RFC PATCH 0/4] " Marek Vasut

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=3292873d-c94e-e140-e09a-6529e672cb5e@gmail.com \
    --to=marek.vasut@gmail.com \
    --cc=boris.brezillon@free-electrons.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=festevam@gmail.com \
    --cc=frieder.schrempf@exceet.de \
    --cc=han.xu@nxp.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=suresh.gupta@nxp.com \
    --cc=yogeshnarayan.gaur@nxp.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 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.