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: 10067765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 185E96038F for ; Tue, 21 Nov 2017 09:09:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 050A3287EB for ; Tue, 21 Nov 2017 09:09:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE01C28FE5; Tue, 21 Nov 2017 09:09:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BAFDD287EB for ; Tue, 21 Nov 2017 09:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751198AbdKUJJO (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: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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", }, {}