From patchwork Tue Nov 21 09:09:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 839933 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; 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="mEn488rt"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yh0C01wLxz9s7h for ; Tue, 21 Nov 2017 20:09:16 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751215AbdKUJJO (ORCPT ); Tue, 21 Nov 2017 04:09:14 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:42110 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbdKUJJK (ORCPT ); Tue, 21 Nov 2017 04:09:10 -0500 Received: by mail-lf0-f65.google.com with SMTP id m1so13203604lfj.9; Tue, 21 Nov 2017 01:09:10 -0800 (PST) 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=zXXFKH765vHWbs0TiyrppaIUVFW773Rme0MIicrDx7o=; b=mEn488rt9x6dG/PkVyueGQYA28JXPjnSizGb8NlOfb2ZhYLCt1rYVnAjWqFLB5CD+2 zjfeZgY6NiHodbJntxrUT4iIMKh3pIDl50vM36WD6Fy83iywFsJxy/wvZhURwdthdqGX 6SAHHXNfyIfRSsuoVbzT9QM2VSBgdlreSMUtnghKVb4U4boyPbWH6jtMBUluNkDkuIrl 0Y+EbMHlvoRHXeDz6FeSTmCiYXo0Vt+oTIvGmKJNxwIRpsklWY/SrX709SQw6HfKzOyj uKRrRwDft90kNJ3r+i9COyHE4TZO6NXSJY2CF+x5sMliFBWzHmxjoMrLvVMJCqTUOcU7 C0gA== 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=zXXFKH765vHWbs0TiyrppaIUVFW773Rme0MIicrDx7o=; b=QF5y9ULRp+5woSsrLS4fvpGBAl9UffSH4fphb3o568UIV1Q9G87+4rjDpkkaJf33/T 1zVXLChv6MM39TuIXNiaKkZlD97Xoj+WWmXWQWgl7GUb3u/yJ0wRV6Lz5DrS3+ky2htY KoA/FOROTfoaQBNfQKG1kXW9OoWR7S8jT/BRGp+3KIUJ0ohPkAvkSS457IfAsmzK4Ltk 79lBeUO4kkWK/G68/Gbw+KLJ3cw5anbftPxR+kApKrfni20i6lBw+McUXjNWAMicJiWN S7lQqZ5m6m+xgDh6quNjqIKIYPJPnlBeYeJxfiQH1uSWtLj2iRJ2KF/mmVVGZTNHiKZr u38g== X-Gm-Message-State: AJaThX5rRvgvhXkqXu5z6YOf3YWK4GCb+dkijCIx6ix++/9zAhJYtvl6 xQlM32Cxq/j7QDWk1sO+w0pAyxP0 X-Google-Smtp-Source: AGs4zMayjbSQqeV/B2WCkbW0e9dCpuReKfkwEKIF0pD8kvgdlOnJx7G8R45FgOBuJN1Efkr2Df3ENA== X-Received: by 10.46.91.129 with SMTP id m1mr5205659lje.185.1511255349043; Tue, 21 Nov 2017 01:09:09 -0800 (PST) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id x20sm2997214ljd.88.2017.11.21.01.09.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 01:09:07 -0800 (PST) From: Ricardo Ribalda Delgado To: linux-spi@vger.kernel.org Cc: Ricardo Ribalda Delgado , Mark Brown , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 2/3] spi: xilinx: Add support for xlnx,axi-quad-spi-1.00.a Date: Tue, 21 Nov 2017 10:09:03 +0100 Message-Id: <20171121090904.6901-2-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171121090904.6901-1-ricardo.ribalda@gmail.com> References: <20171121090904.6901-1-ricardo.ribalda@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The driver has been successfully tested with Xilinx's core axi-quad-spi-1.0.0a. Documented on DS843: https://www.xilinx.com/support/documentation/ip_documentation/axi_quad_spi/v1_00_a/ds843_axi_quad_spi.pdf Cc: Mark Brown Cc: Rob Herring Cc: devicetree@vger.kernel.org Signed-off-by: Ricardo Ribalda Delgado Acked-by: Rob Herring --- Documentation/devicetree/bindings/spi/spi-xilinx.txt | 2 +- drivers/spi/spi-xilinx.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.txt b/Documentation/devicetree/bindings/spi/spi-xilinx.txt index c7b7856bd528..7bf61efc66c8 100644 --- a/Documentation/devicetree/bindings/spi/spi-xilinx.txt +++ b/Documentation/devicetree/bindings/spi/spi-xilinx.txt @@ -2,7 +2,7 @@ Xilinx SPI controller Device Tree Bindings ------------------------------------------------- Required properties: -- compatible : Should be "xlnx,xps-spi-2.00.a" or "xlnx,xps-spi-2.00.b" +- compatible : Should be "xlnx,xps-spi-2.00.a", "xlnx,xps-spi-2.00.b" or "xlnx,axi-quad-spi-1.00.a" - reg : Physical base address and size of SPI registers map. - interrupts : Property with a value describing the interrupt number. diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index e0b9fe1d0e37..63fedc49ae9c 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c @@ -381,6 +381,7 @@ static int xilinx_spi_find_buffer_size(struct xilinx_spi *xspi) } static const struct of_device_id xilinx_spi_of_match[] = { + { .compatible = "xlnx,axi-quad-spi-1.00.a", }, { .compatible = "xlnx,xps-spi-2.00.a", }, { .compatible = "xlnx,xps-spi-2.00.b", }, {}