From: Marcin Wojtas <mw@semihalf.com> To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org Cc: robh+dt@kernel.org, mark.rutland@arm.com, will.deacon@arm.com, cyrille.pitchen@wedev4u.fr, marek.vasut@gmail.com, broonie@kernel.org, thomas.petazzoni@free-electrons.com, gregory.clement@free-electrons.com, nadavh@marvell.com, neta@marvell.com, omrii@marvell.com, hannah@marvell.com, mw@semihalf.com, jaz@semihalf.com, tn@semihalf.com Subject: [PATCH 2/2] arm64: dts: marvell: Force 3byte addressing mode for SPI on A7040 DB Date: Mon, 28 Aug 2017 23:14:14 +0200 [thread overview] Message-ID: <1503954854-30963-3-git-send-email-mw@semihalf.com> (raw) In-Reply-To: <1503954854-30963-1-git-send-email-mw@semihalf.com> Armada 7040 DB boards can be shipped with various models of boot SPI flash devices. An issue can emerge, when their size exceeds 16MB - in such case the kernel driver will switch automatically to 4B addressing mode. Later, in case of soft reset, the Boot ROM will fail to fetch the firmware during the board initialization. In order to prevent such behavior, this patch forces 3B addressing mode used on affected boards by adding newly introduced 'spi-3byte-addressing' property to the SPI flash nodes. Signed-off-by: Marcin Wojtas <mw@semihalf.com> --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts index 92c761c..d0bd296 100644 --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts @@ -116,6 +116,7 @@ compatible = "jedec,spi-nor"; reg = <0x0>; spi-max-frequency = <20000000>; + spi-3byte-addressing; partitions { compatible = "fixed-partitions"; -- 1.8.3.1
WARNING: multiple messages have this Message-ID (diff)
From: mw@semihalf.com (Marcin Wojtas) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] arm64: dts: marvell: Force 3byte addressing mode for SPI on A7040 DB Date: Mon, 28 Aug 2017 23:14:14 +0200 [thread overview] Message-ID: <1503954854-30963-3-git-send-email-mw@semihalf.com> (raw) In-Reply-To: <1503954854-30963-1-git-send-email-mw@semihalf.com> Armada 7040 DB boards can be shipped with various models of boot SPI flash devices. An issue can emerge, when their size exceeds 16MB - in such case the kernel driver will switch automatically to 4B addressing mode. Later, in case of soft reset, the Boot ROM will fail to fetch the firmware during the board initialization. In order to prevent such behavior, this patch forces 3B addressing mode used on affected boards by adding newly introduced 'spi-3byte-addressing' property to the SPI flash nodes. Signed-off-by: Marcin Wojtas <mw@semihalf.com> --- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts index 92c761c..d0bd296 100644 --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts @@ -116,6 +116,7 @@ compatible = "jedec,spi-nor"; reg = <0x0>; spi-max-frequency = <20000000>; + spi-3byte-addressing; partitions { compatible = "fixed-partitions"; -- 1.8.3.1
next prev parent reply other threads:[~2017-08-28 21:10 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-08-28 21:14 [PATCH 0/2] SPI NOR - force 3byte addressing mode Marcin Wojtas 2017-08-28 21:14 ` Marcin Wojtas 2017-08-28 21:14 ` Marcin Wojtas 2017-08-28 21:14 ` [PATCH 1/2] mtd: spi-nor: add an option to force 3byte adressing mode Marcin Wojtas 2017-08-28 21:14 ` Marcin Wojtas 2017-08-28 21:18 ` Geert Uytterhoeven 2017-08-28 21:18 ` Geert Uytterhoeven 2017-08-28 21:18 ` Geert Uytterhoeven 2017-08-28 21:54 ` Marcin Wojtas 2017-08-28 21:54 ` Marcin Wojtas 2017-08-28 21:54 ` Marcin Wojtas 2017-08-28 21:54 ` Marcin Wojtas 2017-08-28 23:24 ` Marek Vasut 2017-08-28 23:24 ` Marek Vasut 2017-08-29 7:40 ` Marcin Wojtas 2017-08-29 7:40 ` Marcin Wojtas 2017-09-04 16:26 ` Pavel Machek 2017-09-04 16:26 ` Pavel Machek 2017-08-28 21:14 ` Marcin Wojtas [this message] 2017-08-28 21:14 ` [PATCH 2/2] arm64: dts: marvell: Force 3byte addressing mode for SPI on A7040 DB Marcin Wojtas
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=1503954854-30963-3-git-send-email-mw@semihalf.com \ --to=mw@semihalf.com \ --cc=broonie@kernel.org \ --cc=cyrille.pitchen@wedev4u.fr \ --cc=gregory.clement@free-electrons.com \ --cc=hannah@marvell.com \ --cc=jaz@semihalf.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mtd@lists.infradead.org \ --cc=linux-spi@vger.kernel.org \ --cc=marek.vasut@gmail.com \ --cc=mark.rutland@arm.com \ --cc=nadavh@marvell.com \ --cc=neta@marvell.com \ --cc=omrii@marvell.com \ --cc=robh+dt@kernel.org \ --cc=thomas.petazzoni@free-electrons.com \ --cc=tn@semihalf.com \ --cc=will.deacon@arm.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: linkBe 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.