From patchwork Tue Jan 15 12:59:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1025168 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; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="l2+3K0rg"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43f9RZ4PRpz9s3q for ; Wed, 16 Jan 2019 00:00:10 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 54648C22027; Tue, 15 Jan 2019 12:59:54 +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=RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2, 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 8378DC22052; Tue, 15 Jan 2019 12:59:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A8406C21F5B; Tue, 15 Jan 2019 12:59:29 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by lists.denx.de (Postfix) with ESMTPS id 4F6DFC21DCA for ; Tue, 15 Jan 2019 12:59:29 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id v13so2854187wrw.5 for ; Tue, 15 Jan 2019 04:59:29 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=vMwVWzPj+twY+rbtNYi1jfqo9E6KXBds8a9I3gE6U8g=; b=l2+3K0rggLMt60gLgXQ+pC/avCT8Mz+m16u+mgabQsl1UxIm0DkMQBfsmxdeBm1vSs t6g2BUXH4KUTzFaTugNUqD82VSrTl5ToYWZWUKAU/jd+SznSZvloXfpucJR5J/5ByhTd ZdUymrnR7hCd66niSWbTJlkSLyKnOT1BRPC2MWjqVen/HsjP1hyX9muiv9hkznS1rsSB zYNFCrgxjNFGN8Wwudkol4wNRsDs0av10TFq7wBUwpIsIPPz/UKOEWHnmkxFujvV2Vjz uoqRwcrvlE8aJpXfUfIaMFoJ8SbtzV1gcWD7JqujBV1vTvExRlBhdIjYthE+czp1oP7g JMQQ== 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:mime-version:content-transfer-encoding; bh=vMwVWzPj+twY+rbtNYi1jfqo9E6KXBds8a9I3gE6U8g=; b=dsBrQ6M6vzruboDdG+R/btWRqHlmID8O+ADkeAIO2OB5TB3CZb3cRIl8cMH1dpDRnr atHbTG4bLCGnpUrUMmVrfR0U0gUQXCs+I3F4J2StFVQaMhlv1lJMNAE7+uoqgEz2ZlcT hnascN4L+ZiIqGp0ZLaG7hPh8vdUZUpJoRlQfINI8p5TeUEd7KTZYIqwBQ48S4DObWls N4Qdqex4WJWWWPK73m2nB2W29EBlJnpW5f5hIDEg9zY/NjEfUE/UowCZxcxjvNjZqWFS HE4pZt8kbBhqsYxGy2p3/PfjS/MXh6Kd2eQWj+KGHfe3GpRsBSR++5049YRKomYlK1Sy qtsw== X-Gm-Message-State: AJcUukefypTogF2AK2uU9EpoDPsHtD6ukzgVO6zQcpAauoZjF6e5ePzb Qmco2bMVqg4dM/HSIvAaF7V2+A== X-Google-Smtp-Source: ALg8bN6bkecJStmYrD2chShOW3CpvBOTBq1cFytjxl3vudm0AiWUdmIvPOa8ZlQMVwYZWuP6t+9lTw== X-Received: by 2002:a5d:66c1:: with SMTP id k1mr2996477wrw.132.1547557168807; Tue, 15 Jan 2019 04:59:28 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id e17sm128762505wri.36.2019.01.15.04.59.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Jan 2019 04:59:28 -0800 (PST) From: Neil Armstrong To: jagan@openedev.com, u-boot@lists.denx.de, simon.k.r.goldschmidt@gmail.com Date: Tue, 15 Jan 2019 13:59:18 +0100 Message-Id: <20190115125922.13433-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115125922.13433-1-narmstrong@baylibre.com> References: <20190115125922.13433-1-narmstrong@baylibre.com> MIME-Version: 1.0 Cc: trini@konsulko.com, uboot-snps-arc@synopsys.com, uboot-stm32@st-md-mailman.stormreply.com, macpaul@andestech.com Subject: [U-Boot] [PATCH v3 1/5] mtd: sf_probe: add jedec, spi-nor compatible 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" There is no reason not to use the Linux "jedec,spi-nor" binding in u-boot. This patch adds this compatible into sf_probe and will avoid changing the device tree files to add a u-boot specific compatible to probe a spi flash. This change is needed to enable SPI NOR Flash support using the non-modified device tree file for Amlogic Meson GX SoC based boards. Signed-off-by: Neil Armstrong Reviewed-by: Simon Goldschmidt --- 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 00f8558e70..7a379914d8 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -161,6 +161,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" }, { } };