<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/drivers/mtd/spi, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2019-05-03T09:56:12Z</updated>
<entry>
<title>mtd: spi-nor: fix page program issue when using spi-mem driver</title>
<updated>2019-05-03T09:56:12Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2019-04-26T09:22:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=60e2bf46784ebbd30ff29b3d3c7c97e56b11e86a'/>
<id>urn:sha1:60e2bf46784ebbd30ff29b3d3c7c97e56b11e86a</id>
<content type='text'>
Some SPI controllers can't write nor-&gt;page_size bytes in a single step
because their TX FIFO is too small, but when that happens we should
make sure a WRITE_EN command before each write access and READ_SR command
after each write access is issued.

We should allow nor-&gt;write() to return a size that is smaller than the
requested write size to gracefully handle this case.

Also, the spi_nor_write_data() should return the actual number of bytes
that were written during the spi_mem_exec_op() operation.

This patch is a combination of two commits backported from kernel:

  commit 630d6bd8a3b4 ("mtd: spi-nor: Support controllers with limit ...")
  commit 3baa8ec88c2f ("mtd: devices: m25p80: Make sure WRITE_EN is ...")

Cc: Vignesh R &lt;vigneshr@ti.com&gt;
Signed-off-by: Weijie Gao &lt;weijie.gao@mediatek.com&gt;
Acked-by: Vignesh R &lt;vigneshr@ti.com&gt;
Tested-by: Shyam Saini &lt;shyam.saini@amarulasolutions.com&gt; # microzed
Acked-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi-nor-ids: Add Gigadevice gd25lq128 ID</title>
<updated>2019-04-12T13:11:33Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2019-04-12T09:50:10Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=30b9a28a3f2dc599dc9c6d6d6c015fb89bed95bf'/>
<id>urn:sha1:30b9a28a3f2dc599dc9c6d6d6c015fb89bed95bf</id>
<content type='text'>
This adds support for the Gigadevice gd25lq128 ID needed on the
upcoming libretech-ac board.

SPI_NOR_QUAD_READ is not set since it has not been tested in Quad
mode.

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>dm: spi: Read default speed and mode values from DT</title>
<updated>2019-04-12T06:24:50Z</updated>
<author>
<name>Patrick Delaunay</name>
</author>
<published>2019-02-27T14:36:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=b0cc1b846fcb310c0ac2f8cbeb4ed5947dc52912'/>
<id>urn:sha1:b0cc1b846fcb310c0ac2f8cbeb4ed5947dc52912</id>
<content type='text'>
This patch update the behavior introduced by
commit 96907c0fe50a ("dm: spi: Read default speed and mode values from DT")

In case of DT boot, don't read default speed and mode for SPI from
CONFIG_* but instead read from DT node. This will make sure that boards
with multiple SPI/QSPI controllers can be probed at different
bus frequencies and SPI modes.

Remove also use in boards of the value speed=0 (no more supported)
for ENV in SPI by using CONFIG_ENV_SPI_MAX_HZ=0.

DT values will be always used when available (full DM support of
SPI slave with available DT node) even if speed and mode are requested;
for example in splash screen support (in splash_sf_read_raw)
or in SPL boot (in spl_spi_load_image).
The caller of spi_get_bus_and_cs() no more need to force speed=0.

But the current behavior don't change if the SPI slave is not
present (device with generic driver is created automatically)
or if platdata is used (CONFIG_OF_PLATDATA).

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@st.com&gt;
Acked-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi: Replace ad-hoc default implementation with spi_mem_op</title>
<updated>2019-04-12T06:12:48Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2019-04-02T00:52:53Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=f909ddb3e1770a5ef18606b46000e0d3eaf63b2e'/>
<id>urn:sha1:f909ddb3e1770a5ef18606b46000e0d3eaf63b2e</id>
<content type='text'>
Replace the ad-hoc erase operation implementation with a simple spi_mem_op
implementation of the same functionality. This is a minor optimization and
removal of the ad-hoc code.

This however also changes the behavior of the execution of the erase
opcode from two separate transfer requests to the SPI NOR driver to
one transfer request to the SPI NOR driver. The former was how U-Boot
behaved before the SPI NOR framework was imported and the later was
introduced by the SPI NOR framework. The former is more optimal, so
keep that.

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@gmail.com&gt;
Cc: Horatiu Vultur &lt;horatiu.vultur@microchip.com&gt;
Cc: Jagan Teki &lt;jagan@openedev.com&gt;
Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Cc: Stefan Roese &lt;sr@denx.de&gt;
Cc: Vignesh R &lt;vigneshr@ti.com&gt;
Tested-by: Ashish Kumar &lt;Ashish.kumar@nxp.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi: Add Macronix MX66U2G45F device</title>
<updated>2019-04-12T05:26:25Z</updated>
<author>
<name>Marek Vasut</name>
</author>
<published>2019-03-07T22:27:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=3d2f12c4a151f6a4ec54782befa2fa92bcaa558f'/>
<id>urn:sha1:3d2f12c4a151f6a4ec54782befa2fa92bcaa558f</id>
<content type='text'>
Add Macronix MX66U2G45F flash device description.
This is a 256 MiB part.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Cc: Vignesh R &lt;vigneshr@ti.com&gt;
[jagan: use 'g' instead of 'f' in flash name]
Signed-off-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt;
</content>
</entry>
<entry>
<title>mtd: sf_probe: remove spi-flash compatible</title>
<updated>2019-04-12T05:24:27Z</updated>
<author>
<name>Neil Armstrong</name>
</author>
<published>2019-02-10T10:16:22Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=cd35365762add381b5765926f967d6a7259db783'/>
<id>urn:sha1:cd35365762add381b5765926f967d6a7259db783</id>
<content type='text'>
Now the "spi-flash" compatible has been removed in the DTS files,
remove this compatible from sf_probe to finally use the Linux "jedec,spi-nor"
compatible.

Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Reviewed-by: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
</content>
</entry>
<entry>
<title>mtd: add spi flash id s25fl064l</title>
<updated>2019-04-12T05:24:27Z</updated>
<author>
<name>Heiko Schocher</name>
</author>
<published>2019-02-08T10:03:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=a2dc8b1832734fdd0c567dbaa1c8f98e10c427e2'/>
<id>urn:sha1:a2dc8b1832734fdd0c567dbaa1c8f98e10c427e2</id>
<content type='text'>
Add support for SPANSION s25fl064l

Signed-off-by: Heiko Schocher &lt;hs@denx.de&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
Acked-by: Vignesh R &lt;vigneshr@ti.com&gt;
</content>
</entry>
<entry>
<title>Convert CONFIG_SF_DEFAULT_* to Kconfig</title>
<updated>2019-03-25T21:36:53Z</updated>
<author>
<name>Patrick Delaunay</name>
</author>
<published>2019-02-27T14:20:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=14453fbfadc2f98ca35d6033140466c7a4b4947a'/>
<id>urn:sha1:14453fbfadc2f98ca35d6033140466c7a4b4947a</id>
<content type='text'>
This converts the following to Kconfig:
  CONFIG_SF_DEFAULT_BUS
  CONFIG_SF_DEFAULT_CS
  CONFIG_SF_DEFAULT_MODE
  CONFIG_SF_DEFAULT_SPEED

I use moveconfig script and then manual check on generated u-boot.cfg
to solve the remaining issue.

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@st.com&gt;
</content>
</entry>
<entry>
<title>mtd: spi: Add lightweight SPI flash stack for SPL</title>
<updated>2019-02-07T10:03:21Z</updated>
<author>
<name>Vignesh R</name>
</author>
<published>2019-02-05T05:59:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=778572d7cb1e2df678340fda9b081e4f7bd6c4b3'/>
<id>urn:sha1:778572d7cb1e2df678340fda9b081e4f7bd6c4b3</id>
<content type='text'>
Add a tiny SPI flash stack that just supports reading data/images from
SPI flash. This is useful for boards that have SPL size constraints and
would need to use SPI flash framework just to read images/data from
flash. There is approximately 1.5 to 2KB savings with this.

Based on prior work of reducing spi flash id table by
Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;

Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Tested-by: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Horatiu Vultur &lt;horatiu.vultur@microchip.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
Tested-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt; #zynq-microzed
</content>
</entry>
<entry>
<title>mtd: spi: Remove unused files</title>
<updated>2019-02-07T10:03:21Z</updated>
<author>
<name>Vignesh R</name>
</author>
<published>2019-02-05T05:59:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/bcm63xx/u-boot/commit/?id=5b66fdb29dc319f9f01f1a22f7b277778224d32d'/>
<id>urn:sha1:5b66fdb29dc319f9f01f1a22f7b277778224d32d</id>
<content type='text'>
spi_flash and spi_flash_ids are no longer needed after SPI NOR
migration. Remove them.

Signed-off-by: Vignesh R &lt;vigneshr@ti.com&gt;
Tested-by: Simon Goldschmidt &lt;simon.k.r.goldschmidt@gmail.com&gt;
Tested-by: Stefan Roese &lt;sr@denx.de&gt;
Tested-by: Horatiu Vultur &lt;horatiu.vultur@microchip.com&gt;
Reviewed-by: Jagan Teki &lt;jagan@openedev.com&gt;
Tested-by: Jagan Teki &lt;jagan@amarulasolutions.com&gt; #zynq-microzed
</content>
</entry>
</feed>
