From patchwork Tue Aug 8 04:57:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 799010 X-Patchwork-Delegate: jagannadh.teki@gmail.com 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CQ/07Nfx"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xRMbG19Yxz9s83 for ; Tue, 8 Aug 2017 14:57:46 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DAC00C21E98; Tue, 8 Aug 2017 04:57:43 +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_DNSWL_NONE, 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 3D994C21C4E; Tue, 8 Aug 2017 04:57:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 019D2C21C4E; Tue, 8 Aug 2017 04:57:38 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by lists.denx.de (Postfix) with ESMTPS id 62312C21C4C for ; Tue, 8 Aug 2017 04:57:38 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id y192so2080124pgd.1 for ; Mon, 07 Aug 2017 21:57:38 -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:in-reply-to:references; bh=YIcbiom2cSQut9HF8WLn25WM8s1xZd4WXXwgLOm0ZD4=; b=CQ/07NfxWgL2m5JjjGFKGrpVFn3W4aXleZwvsWDK+zvo4tsj+PxeOJuTss28YGfcl5 WPRLbh3VaC83A9s/+r28+5hfEMGq3xsAycAmGTdIoMJN+rLxXCu6ei1gpw2OnHFPHNGN /fa3a4dZBK/mKiggcXpXYJyuZCmlC8H80KGiwCidpsQhi8tNS5foM/uJmLFZbUYd9N67 y3IjruPLvZVyRIBSf4AtQe5mL1eGGZqUfYnfK3YNhSdcsDpDHC0DIkjhf+CIQFoJvn16 8H4wx/ovMbMoVEtnFSu7PF0uhVdBOOVZRCAYYpGSlGNzncIfNauuTfbVACxlO/XF1EMg N6vg== 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:in-reply-to :references; bh=YIcbiom2cSQut9HF8WLn25WM8s1xZd4WXXwgLOm0ZD4=; b=eUsth3Qw1fNpsK7uWhO403YaxTBB47R8tEtTla/t9m5mqr79cfNl87Uc2SMimkiQdV d7arc9h8XU/a9PefjFg8MEqkGBRJ84FPSrGXEWkk4tfxCxhglcyGX3yKl+9HQNxi37PN qjXerDdc+PjdXooa3t9K+o1UCJWYPFq/DsN1S/QmD0JAgF4nDkAx/NwQvTEWiLPXEFA3 a/j4TsT7MaGOvFBSDn2B53aClzREpV1VVDvUzYW187ZaBkyPFlSzphTs2lbSvKH7Pojv Zr8zL4Y4JcrGLwfuzYAMzsiatyVYoTTHysMOMcBOL8kQOp1d6ayM9Mr3fKuiZalpkPxT aU0A== X-Gm-Message-State: AHYfb5hCP53+ZzOGp0JimcU+PkWos0FFISV7qtxVjnp1P1ivmaGkNGMt 93UdrqK3W10S/QI7U8Y= X-Received: by 10.84.167.2 with SMTP id c2mr3144409plb.367.1502168256564; Mon, 07 Aug 2017 21:57:36 -0700 (PDT) Received: from chrisp-dl.ws.atlnz.lc ([2001:df5:b000:22:3a2c:4aff:fe70:2b02]) by smtp.gmail.com with ESMTPSA id b77sm729781pfe.54.2017.08.07.21.57.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 21:57:35 -0700 (PDT) From: Chris Packham To: u-boot@lists.denx.de Date: Tue, 8 Aug 2017 16:57:27 +1200 Message-Id: <20170808045727.11468-1-judge.packham@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: References: Cc: Jagan Teki , afenkart@gmail.com, Chris Packham Subject: [U-Boot] [PATCH] spi: add "jedec,spi-nor" to spi_flash_std_ids 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" "jedec,spi-nor" is used by Linux for many boards with spi flash. In fact according to the binding documentation this must be included for any SPI NOR flash that can be identified by the JEDEC READ ID opcode (0x9F). Make device trees more portable between Linux an U-Boot by supporting "jedec,spi-nor" in addition to the U-Boot specific "spi-flash". Signed-off-by: Chris Packham --- This fixes my issues with the spi speed selection on db-88f6820-amc. I didn't find anything in the commit message from the initial implementation saying that "jedec,spi-nor" was omitted intentionally so I've settled on this instead of updating armada-385-amc.dts. If there is a good reason not to make this change I'm happy to submit a patch that just updates armada-385-amc.dts. drivers/mtd/spi/sf_probe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index 7b296378d2be..1953ec3cb748 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -164,6 +164,7 @@ static const struct dm_spi_flash_ops spi_flash_std_ops = { static const struct udevice_id spi_flash_std_ids[] = { { .compatible = "spi-flash" }, + { .compatible = "jedec,spi-nor" }, { } };