All of lore.kernel.org
 help / color / mirror / Atom feed
From: khilman@baylibre.com (Kevin Hilman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: davinci: da850-evm: fix read access to SPI flash
Date: Tue, 17 Jan 2017 16:25:23 -0800	[thread overview]
Message-ID: <m237gh2ozw.fsf@baylibre.com> (raw)
In-Reply-To: <20170117125742.9536-1-fparent@baylibre.com> (Fabien Parent's message of "Tue, 17 Jan 2017 13:57:42 +0100")

Fabien Parent <fparent@baylibre.com> writes:

> Read access to the SPI flash are broken on da850-evm, i.e. the data
> read is not what is actually programmed on the flash.
> According to the datasheet for the M25P64 part present on the da850-evm,
> if the SPI frequency is higher than 20MHz then the READ command is not
> usable anymore and only the FAST_READ command can be used to read data.
>
> This commit specifies in the DTS that we should use FAST_READ command
> instead of the READ command.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>

Tested on da850-evm on top of v4.10-rc3.  This gets the DT boot
functionatliy in line with the legacy (board-file) boot.

Tested-by: Kevin Hilman <khilman@baylibre.com>

Kevin

WARNING: multiple messages have this Message-ID (diff)
From: Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
To: Fabien Parent <fparent-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	nsekhar-l0cyMroinI0@public.gmane.org,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
	mark.rutland-5wv7dgnIgG8@public.gmane.org
Subject: Re: [PATCH] ARM: davinci: da850-evm: fix read access to SPI flash
Date: Tue, 17 Jan 2017 16:25:23 -0800	[thread overview]
Message-ID: <m237gh2ozw.fsf@baylibre.com> (raw)
In-Reply-To: <20170117125742.9536-1-fparent-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> (Fabien Parent's message of "Tue, 17 Jan 2017 13:57:42 +0100")

Fabien Parent <fparent-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> writes:

> Read access to the SPI flash are broken on da850-evm, i.e. the data
> read is not what is actually programmed on the flash.
> According to the datasheet for the M25P64 part present on the da850-evm,
> if the SPI frequency is higher than 20MHz then the READ command is not
> usable anymore and only the FAST_READ command can be used to read data.
>
> This commit specifies in the DTS that we should use FAST_READ command
> instead of the READ command.
>
> Signed-off-by: Fabien Parent <fparent-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>

Tested on da850-evm on top of v4.10-rc3.  This gets the DT boot
functionatliy in line with the legacy (board-file) boot.

Tested-by: Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>

Kevin
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

WARNING: multiple messages have this Message-ID (diff)
From: Kevin Hilman <khilman@baylibre.com>
To: Fabien Parent <fparent@baylibre.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, nsekhar@ti.com, robh+dt@kernel.org,
	mark.rutland@arm.com
Subject: Re: [PATCH] ARM: davinci: da850-evm: fix read access to SPI flash
Date: Tue, 17 Jan 2017 16:25:23 -0800	[thread overview]
Message-ID: <m237gh2ozw.fsf@baylibre.com> (raw)
In-Reply-To: <20170117125742.9536-1-fparent@baylibre.com> (Fabien Parent's message of "Tue, 17 Jan 2017 13:57:42 +0100")

Fabien Parent <fparent@baylibre.com> writes:

> Read access to the SPI flash are broken on da850-evm, i.e. the data
> read is not what is actually programmed on the flash.
> According to the datasheet for the M25P64 part present on the da850-evm,
> if the SPI frequency is higher than 20MHz then the READ command is not
> usable anymore and only the FAST_READ command can be used to read data.
>
> This commit specifies in the DTS that we should use FAST_READ command
> instead of the READ command.
>
> Signed-off-by: Fabien Parent <fparent@baylibre.com>

Tested on da850-evm on top of v4.10-rc3.  This gets the DT boot
functionatliy in line with the legacy (board-file) boot.

Tested-by: Kevin Hilman <khilman@baylibre.com>

Kevin

  reply	other threads:[~2017-01-18  0:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-17 12:57 [PATCH] ARM: davinci: da850-evm: fix read access to SPI flash Fabien Parent
2017-01-17 12:57 ` Fabien Parent
2017-01-18  0:25 ` Kevin Hilman [this message]
2017-01-18  0:25   ` Kevin Hilman
2017-01-18  0:25   ` Kevin Hilman
2017-01-18  9:58   ` Sekhar Nori
2017-01-18  9:58     ` Sekhar Nori
2017-01-18  9:58     ` Sekhar Nori

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=m237gh2ozw.fsf@baylibre.com \
    --to=khilman@baylibre.com \
    --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.