From patchwork Thu Dec 6 09:51:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 1008670 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="ubpkgZlV"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 439W9G5VGTz9s6w for ; Thu, 6 Dec 2018 20:52:18 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6D7E1C22482; Thu, 6 Dec 2018 09:51:55 +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_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 9FA56C224EE; Thu, 6 Dec 2018 09:51:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 7EC91C2252D; Thu, 6 Dec 2018 09:51:28 +0000 (UTC) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by lists.denx.de (Postfix) with ESMTPS id 9F938C21FDF for ; Thu, 6 Dec 2018 09:51:27 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id b14so8979093wru.12 for ; Thu, 06 Dec 2018 01:51:27 -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=6FLTrt3n+JKg3iRa9n2U7D4g7PGC4yT6oo4SF3uqnbs=; b=ubpkgZlVQmVuG8SmI0AFmw0qOScQJXYguPfQvN3oa2cdibvjMGRhh/HKat7w6aeNaB Zs8+U+Iu6A0wfnXxgQPmKWP7B10me9GjaRgvLXIMEs0yvPUZjBqGWj76uXG3MbKrnKEx jarUAn43u4eBlSTQxhcjDMHkJF+KBDZxPFLmoC4b2OQcyS0PAhkQkI7+PzDel4lCow5K hAD9KjIe0yIEkBv/abBk1pBX+w0LYKQMH0CoZhprd40CrpYQEsh045nHDwJgy5ZYuJXs zckv/QKGZukKn+f9hcgfDtGRor6w+8ua8BRzWqHOEkOn55U8TcPe6QbRBElZfdJNdy83 Yuyw== 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=6FLTrt3n+JKg3iRa9n2U7D4g7PGC4yT6oo4SF3uqnbs=; b=o2qiqF1LPQZjPOTd/g9levR+WtCBkEDmuiA3YIUFv3GxXitzkwIckTsE6Jat/TuHsi xBoZ8pWGyYFTRlYKaVGpwDlW5kzJKsEl6A8ZSdh6g5AmKIL8iRTpYbGHkwJ1g62c7KZi kGkkgQm0Bg4PXz591aE/tdVBTTeRr3aRLo8SDkKZvGSCl/WYch5BwpntmFOBYFaG93x1 hRqMSbTP+Y50PnBEfr9JV7AJ2VG8NrTlOeW4u40zzJIy7bNesnITZ0BiMgPSibmT1PH/ 2L1r9vFdAtd2o4EOkxhQCuzPImOB3W95t0l8hX7V8hqCvhgx3jUycyUFS0YM3w0kH70S DKww== X-Gm-Message-State: AA+aEWZkcfNEsPrgtrvjI8ULThk+aEm8TMqzisYUunp+FyyqPn3u2/z4 rcjFDxFEoa+Bc5DdSuGMNOVbYw== X-Google-Smtp-Source: AFSGD/WNMvlq29L5zKceNw7eglZxQcKl6GbBLt+lG5t7/kp1dM59E43W9JPENXh5iuCYKrNAg+nuhw== X-Received: by 2002:adf:9dd2:: with SMTP id q18mr24738588wre.12.1544089887052; Thu, 06 Dec 2018 01:51:27 -0800 (PST) Received: from bender.home ([2a01:cb1d:4ce:ea00:819f:4d34:9af9:e67]) by smtp.gmail.com with ESMTPSA id f187sm364645wma.4.2018.12.06.01.51.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Dec 2018 01:51:26 -0800 (PST) From: Neil Armstrong To: jagan@openedev.com, u-boot@lists.denx.de, simon.k.r.goldschmidt@gmail.com Date: Thu, 6 Dec 2018 10:51:18 +0100 Message-Id: <20181206095122.7117-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181206095122.7117-1-narmstrong@baylibre.com> References: <20181206095122.7117-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 v2 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 --- 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" }, { } };