From patchwork Tue Jan 17 12:57:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 9520827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DED376020A for ; Tue, 17 Jan 2017 12:58:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E79EF28546 for ; Tue, 17 Jan 2017 12:58:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC8242854A; Tue, 17 Jan 2017 12:58:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 74A8128546 for ; Tue, 17 Jan 2017 12:58:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cTTL4-0004J7-UB; Tue, 17 Jan 2017 12:58:14 +0000 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTTL0-0004FJ-Q8 for linux-arm-kernel@lists.infradead.org; Tue, 17 Jan 2017 12:58:12 +0000 Received: by mail-wm0-x233.google.com with SMTP id r144so221064512wme.1 for ; Tue, 17 Jan 2017 04:57:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ZFGAsldDP0REMuj5zLGU/qHLQnKiJhp7g+HvllGcfsA=; b=NTpmABcBM82/0CJom26X19tTrfwiXYjhDXgIZognFkfcLcg6en6bco2MgY0Pyx0ycW 2o97/VDv6jPJx/FURn9DfEoZ/jWw1/8NGmTRNKuiD/BUWMCs8jUU6odK5qoWQTtzF2Y2 Dq/EfKLLmn3Zefta225m5g5Evaq4m29CvBqIzDOn1/HKCLzMUsjQc/Ia5ZnrK5x8UVBj FS1zmqxToboZqrjCxoKnuub8ClK8btwKNdyqrbYR0n6jYCTYU17rEitLJATAv79BkJKS nWh8mpJwDCi16oxeYjFj/f+TxmgXdHDM6XrD/IkDtvIhnrLkdwRgGmUbPwAppl9SMxGV z4ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZFGAsldDP0REMuj5zLGU/qHLQnKiJhp7g+HvllGcfsA=; b=pvd0OSz+Pi3+96ALec1tYHVnSvpZ9+j6VfffyTmQBG3CUKmcREb6Rkzlcz8VtlVqLV V+09daHr1c/FDcEOR0JS/QRQfgQ8ZY0nvEYf+AMFMC3sS8c26D9dJH9m2P4zWE25s2LG veaos7QMLwI3hNmMk1wtqUkMLDEm5ZBlzM0uEMwkQkk8fgWNaASlTq9XEii6kARaEM/8 eo5oBDLO09xGk8lyqHKBPV7IjBbG5BjpyaBHdj+i7Gac62CpApWFlX1ZJGxadoRtNlnH r3rdg/pea5tjfzvZnxZg9Wr2kuJOp0z/nrOkJk1v6w6L82gYJieHvXbMBcR8z0fLy46Z Mp0A== X-Gm-Message-State: AIkVDXKkdpZtVcqVUVep4xae01NUspAxu0JmKCUsUjgjq7ksXxps6TLxt7BbgODrL4E2OqvV X-Received: by 10.223.142.208 with SMTP id q74mr23042580wrb.101.1484657868729; Tue, 17 Jan 2017 04:57:48 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id d64sm36940423wmh.3.2017.01.17.04.57.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 04:57:48 -0800 (PST) From: Fabien Parent To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: davinci: da850-evm: fix read access to SPI flash Date: Tue, 17 Jan 2017 13:57:42 +0100 Message-Id: <20170117125742.9536-1-fparent@baylibre.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170117_045811_006630_5D5A1AC7 X-CRM114-Status: GOOD ( 13.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, khilman@baylibre.com, robh+dt@kernel.org, nsekhar@ti.com, Fabien Parent MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Tested-by: Kevin Hilman --- arch/arm/boot/dts/da850-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 41de15fe15a2..78492a0bbbab 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -99,6 +99,7 @@ #size-cells = <1>; compatible = "m25p64"; spi-max-frequency = <30000000>; + m25p,fast-read; reg = <0>; partition@0 { label = "U-Boot-SPL";