From patchwork Fri Jul 27 08:43:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luis Araneda X-Patchwork-Id: 950050 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Y4ACTf9d"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41cMwx3yhxz9ryt for ; Fri, 27 Jul 2018 18:45:20 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 7B86BC21DF8; Fri, 27 Jul 2018 08:45:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E5965C21DF8; Fri, 27 Jul 2018 08:45:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 65D9AC21DF8; Fri, 27 Jul 2018 08:45:12 +0000 (UTC) Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by lists.denx.de (Postfix) with ESMTPS id D8305C21DAF for ; Fri, 27 Jul 2018 08:45:11 +0000 (UTC) Received: by mail-qt0-f196.google.com with SMTP id f18-v6so4299624qtp.10 for ; Fri, 27 Jul 2018 01:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ZIdHV4pMEPvWBNSyCG22KrCzm4EAnkLzzwzih8hPO/s=; b=Y4ACTf9dCDEi4mVOkA/wCJuIG5dwREAmyukB3Ih7o+uELKRbdQK5OAnQ+1x9I7kgtZ iZ3f2JYmwzM+jhzlNVnjYVJ0Vz3AUm6APnf5AkL3Vdu8OTVTescydU9oycco/NLcmZoR H1DsJCQ1yJwDwOVHUtKYqx0Qws4xVQCC0T36E7EAkL61FrwF8SGc7tI2bwKghwGqAUsL VMI+WQcwY526EQ+qv72GxkdyLI+iS1M64XCG0AovGu6UONF9UzuUEKhwFF5xjJxA4QPL ENxrvzytOw6a+hmHkN1JI0FfCkLP566LBUw8dy1XSqkaPjfV6n/amwHOoA6ngPxTUNkb S6bQ== 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=ZIdHV4pMEPvWBNSyCG22KrCzm4EAnkLzzwzih8hPO/s=; b=MxRfoddYetyH7iBGZ6IVysgK8IQ2TU53hDh3CxY06n779s3QG/epB3cCjqFilAcqha nd46gwmYtLRI/pQuj20N/GMCX7OUCH4dNqYcpHizsPbBSg7IbJOm2v2/3wSiDUQHIHxB ciC1+EW7eVOwm8twjZ7fhbUZ/04d9RHi5daxInxO4+hvR56kzcwu6qJnaX1N3k1irMMa lVcrLa1VbIrIgW40325JZQvSuFNzxVENGaKNxNl7AH8sEs1poRxi7aZJlsiBiycFJi6n D5ckOc7qOc4IcaiMBl3fxPSHuZ8ReguUL3tZRNU74FnySTLfgPfU1+yl2ToRtOHA8uG1 UDOg== X-Gm-Message-State: AOUpUlHfsqXs8fhlap/LhXVnTCMoyeK4eLaIOWE+nM+O8mbUgB8Oi+a+ hUxKvQ2/94c/I85vn5jn72A= X-Google-Smtp-Source: AAOMgpeRuSbkbDIUQSBJ1jybAdq2XfzSgZa4nPeSCg3jnqJEmKBmnVTcfYYZCviB09C4Tv/EFegxYg== X-Received: by 2002:ac8:3791:: with SMTP id d17-v6mr5115377qtc.249.1532681110636; Fri, 27 Jul 2018 01:45:10 -0700 (PDT) Received: from localhost.localdomain (186-106-169-157.baf.movistar.cl. [186.106.169.157]) by smtp.gmail.com with ESMTPSA id h68-v6sm1831772qkc.97.2018.07.27.01.45.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jul 2018 01:45:10 -0700 (PDT) From: Luis Araneda To: Michal Simek Date: Fri, 27 Jul 2018 04:43:42 -0400 Message-Id: <20180727084342.30062-1-luaraneda@gmail.com> X-Mailer: git-send-email 2.18.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] arm: zynq: dts: add spi flash node to zedboard X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add a flash node to fix the detection of the memory IC. With the changes introduced with commit 8fee8845e754 ("enf_sf: reuse setup_flash_device instead of open coding it") the SPI speed is now read from device-tree or a default value is applied. This replaced the old behavior of setting the SPI speed to CONFIG_ENV_SPI_MAX_HZ. As this board didn't have a flash node, the default value was applied to the SPI speed, producing an error when probing the flash memory (speed too slow). Signed-off-by: Luis Araneda --- arch/arm/dts/zynq-zed.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/zynq-zed.dts b/arch/arm/dts/zynq-zed.dts index 24eccf1633..9c505fb7b8 100644 --- a/arch/arm/dts/zynq-zed.dts +++ b/arch/arm/dts/zynq-zed.dts @@ -51,6 +51,13 @@ &qspi { u-boot,dm-pre-reloc; status = "okay"; + num-cs = <1>; + flash@0 { + compatible = "spansion,s25fl256s", "spi-flash"; + reg = <0>; + spi-max-frequency = <30000000>; + m25p,fast-read; + }; }; &sdhci0 {