From patchwork Mon Jan 23 22:51:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9533689 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 6F9ED604A2 for ; Mon, 23 Jan 2017 22:52:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6678F2793A for ; Mon, 23 Jan 2017 22:52:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B37127CAF; Mon, 23 Jan 2017 22:52:28 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 070AE283F3 for ; Mon, 23 Jan 2017 22:52:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751944AbdAWWv6 (ORCPT ); Mon, 23 Jan 2017 17:51:58 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33350 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbdAWWvl (ORCPT ); Mon, 23 Jan 2017 17:51:41 -0500 Received: by mail-pf0-f193.google.com with SMTP id e4so10755019pfg.0; Mon, 23 Jan 2017 14:51:41 -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 :in-reply-to:references; bh=ZJu2QWy8mAxOyNhVZVY0XuWzwYwoNZDBeY/JZAjqS3o=; b=LuKwCYmQXENnhtsEM59oLo+tYNatjIzNAgDjOX/hzYYaQrK4YiffAyw4qDqj9JnJD6 mFtG9ntXhR5MSS4ZvpzDKljoPJpIZAxDVKmSXJyRS00OVLNypiQV6ttEGr6r2jiz1PwG 5/UfA6EG6wfhRvcOaVnkHCzM/1FrtRjluYcM8TrqI0mK0lx64vS6tTQiNm1VKuFoW9al Pfz4LzycPNPFWZUfA6CSjp0BB78HQwe37/oWTiZVfqadb+BQjZZu8hz3+fqTy+Tm6LDc k0oZ+nhEjEpPvh9PAc7BZKLVIBAdZ59mqrvrQoAVdzUWPti4l5iLzTUFghEH7C8j8wSr Mnmw== 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:in-reply-to:references; bh=ZJu2QWy8mAxOyNhVZVY0XuWzwYwoNZDBeY/JZAjqS3o=; b=qECZkFEFqgpxDgWd0QP8xlYCUNcVkMl+ZNYemweP+5U0eI0ELAJsWGnfaJja1rzY7B KsZCw277MsFiE6UWo7BS++LR4Wf+bsCgh8ZQ3yxbqiNy6p+rHbEG+wxUV8/a29nSX7ZQ 1zELzfqMgPq/fw8xy6SvfcVGzZPW/uT5SBhZjcWpn1Z1r+TsiyP+qSeUk/4caH1d7N+O tylkf1cXguMX48pdIAwTcZEdkQZejHoZQ1qeEF5ZckrBPaoo0BMRGs5ZtBC8j7QsvXkN 4KuRybSjpxG5aZlNqV88aMUAz1OQZZZjXdw/etozC5iHvZn07l231Oaj7eaHDs4/jawI 6kng== X-Gm-Message-State: AIkVDXJEf8NiWS8OpkgaPuKY5cSJYeu3z4twvMWTuoK12gbWxT+v8gmDKpJICVDN22gBeA== X-Received: by 10.99.188.10 with SMTP id q10mr7051302pge.106.1485211877181; Mon, 23 Jan 2017 14:51:17 -0800 (PST) Received: from jclayton-pc.columbia.uniwest.com (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id d69sm39353003pfd.11.2017.01.23.14.51.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 14:51:15 -0800 (PST) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Russell King , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Mark Rutland , Rob Herring , Anatolij Gustschin , Joshua Clayton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fpga@vger.kernel.org Subject: [PATCH v8 3/3] ARM: dts: imx6q-evi: support cyclone-ps-spi Date: Mon, 23 Jan 2017 14:51:06 -0800 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for Altera cyclone V FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts index 24fe093..a0cbb2d 100644 --- a/arch/arm/boot/dts/imx6q-evi.dts +++ b/arch/arm/boot/dts/imx6q-evi.dts @@ -82,6 +82,15 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1cs>; status = "okay"; + + fpga_spi: cyclonespi@0 { + compatible = "altr,fpga-passive-serial"; + spi-max-frequency = <20000000>; + reg = <0>; + pinctrl-0 = <&pinctrl_fpgaspi>; + nconfig-gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; + nstat-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; + }; }; &ecspi3 { @@ -313,6 +322,13 @@ >; }; + pinctrl_fpgaspi: fpgaspigrp { + fsl,pins = < + MX6QDL_PAD_KEY_ROW1__GPIO4_IO09 0x1b0b0 + MX6QDL_PAD_KEY_ROW2__GPIO4_IO11 0x1b0b0 + >; + }; + pinctrl_gpminand: gpminandgrp { fsl,pins = < MX6QDL_PAD_NANDF_CLE__NAND_CLE 0xb0b1