From patchwork Fri Jun 9 22:39:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 9779523 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 61A216034B for ; Fri, 9 Jun 2017 22:52:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5210A2863A for ; Fri, 9 Jun 2017 22:52:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46797286CD; Fri, 9 Jun 2017 22:52:46 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D585D2863A for ; Fri, 9 Jun 2017 22:52:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=p3xL5c1aaLCiInpNmxg4vaewZ6HSozGH3SwxHhsOuMM=; b=Kz2lAkuKaXSq/CBnVu1IJOq8LD xjw8rZnA+Xnr8Pg89COkWvfg27r5MQMlvnUQrvemZ6oqNGwaQvAuYbkyJJySKVeCitoKV3hyuLd4z FW88dGr86/+3mSdHf2dIp8+9wWhLIk/7D6hwOLshKD+iTzomsRIwHGtidiyioIlK4MjRrfVCVad4n K7Fv+64Z4WSu5ZnkQIlJi90TqBwdl4QAK1xx7XpIDGQt0nbAygwgEs1o7sDL03YOrY+ZrEF05t4UW IbOHd0ZSJ7gn8+OVkOkreDZyfbDTquZz6KM9iBWOEvccPQgvc6i+6Oql904J1Rv0Imsbv+bRqEHx/ Fr8S5SKw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dJSli-0007N2-SA; Fri, 09 Jun 2017 22:52:38 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dJSZl-0000Vk-2q for linux-arm-kernel@lists.infradead.org; Fri, 09 Jun 2017 22:40:21 +0000 Received: by mail-pg0-x242.google.com with SMTP id v18so8786168pgb.3 for ; Fri, 09 Jun 2017 15:39:56 -0700 (PDT) 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=0otU2M4qonPI3l0TKEszVBcktbnr+6fBsyC7FGHrNGI=; b=bu/DzPsM054epp7YpJqBgAnI4OCwt3nHzq3SANB/uNchg8Q/quTFPBByo53kt4id+P 3HFwFpwNXDSuZDtSEZce6kcOguOAUmaJjKTe6Wmj4cygqffcs3YnhsaEopqpLNCMK+wZ FTutA0bIkCNGeo8eLqIQ1EqHHWtBVJVDEMeRWBQE1AD7DNslprzOQvx/TEgBnfPUR5Hj PlLKjyau3Tk9/w5xog5MRsErVkOUXKmPlNvRpCM9qNEw7jKKUqv/RQlyAt4cHuB0q+Xu JTmGH3MGoBlaG/69yBwBb3doUTYaCIAP56R6xIuTIP4jG7w3HTZbj92e0ASxFSaFgvHq Y/HQ== 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=0otU2M4qonPI3l0TKEszVBcktbnr+6fBsyC7FGHrNGI=; b=FpZ6fU1y6YevlPJrrOH+vDV54BRuwZXsza1MbKXG05w0++trBpkJv8UG28HYL44Men E+AfKf5eq9Rvtz2AvJN8PWTJ8ZTU/IUFJPRmGeNA/pwTNwGXT6Pj1ywavIPfppYzpvH6 OjB7hzk+Ad0VUVtwWx680frKupdJVrv7lKzZY6Jfcc0PuAiCNRF6L0EhN63tuue5q1wZ 0QN/iasYDTzRRcSgcDQvWqv1wiB2qHya9sZKWI0U9Y7XPfpxWMo0o3M2+sOjTMRYBSVu 3jgZTBGIZ/X5rdUeWfPcWi17SfPtX7mVw5UMcHCGSuy1vrwQITT7enZYjZv78l5M8zlF eB8A== X-Gm-Message-State: AODbwcC5dBpaDpPeD5OSMTwNf+HN74xybYCeUUDHxZtEUNNVtJ0AhtKJ +26WuNJqA3eUKw== X-Received: by 10.98.131.73 with SMTP id h70mr8662346pfe.18.1497047996405; Fri, 09 Jun 2017 15:39:56 -0700 (PDT) Received: from localhost.localdomain (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by smtp.gmail.com with ESMTPSA id s4sm4771804pgr.10.2017.06.09.15.39.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Jun 2017 15:39:55 -0700 (PDT) From: Joshua Clayton To: Alan Tull , Moritz Fischer , Anatolij Gustschin , Bastian Stender , Shawn Guo , Joshua Clayton Subject: [PATCH v13 4/6] ARM: dts: imx6q-evi: support altera-ps-spi Date: Fri, 9 Jun 2017 15:39:37 -0700 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: <03e591707dc72f4c2b5e63a1272060956294ea51.1497047816.git.stillcompiling@gmail.com> References: <03e591707dc72f4c2b5e63a1272060956294ea51.1497047816.git.stillcompiling@gmail.com> In-Reply-To: <03e591707dc72f4c2b5e63a1272060956294ea51.1497047816.git.stillcompiling@gmail.com> References: <03e591707dc72f4c2b5e63a1272060956294ea51.1497047816.git.stillcompiling@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170609_154017_463240_9D4C3E5F X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-fpga@vger.kernel.org, Russell King , linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Fabio Estevam , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for Altera 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 24fe093a66db..59aebbc95671 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: fpga@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