From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751353AbdH1VKk (ORCPT ); Mon, 28 Aug 2017 17:10:40 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:35379 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316AbdH1VKi (ORCPT ); Mon, 28 Aug 2017 17:10:38 -0400 From: Marcin Wojtas 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 Message-Id: <1503954854-30963-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1503954854-30963-1-git-send-email-mw@semihalf.com> References: <1503954854-30963-1-git-send-email-mw@semihalf.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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