From patchwork Fri Sep 2 22:08:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9311725 X-Patchwork-Delegate: horms@verge.net.au 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 33AD760772 for ; Fri, 2 Sep 2016 22:08:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A0942983B for ; Fri, 2 Sep 2016 22:08:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0ED3729857; Fri, 2 Sep 2016 22:08:51 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 8AD7C2983B for ; Fri, 2 Sep 2016 22:08:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753082AbcIBWIu (ORCPT ); Fri, 2 Sep 2016 18:08:50 -0400 Received: from mail-lf0-f43.google.com ([209.85.215.43]:33824 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753129AbcIBWIt (ORCPT ); Fri, 2 Sep 2016 18:08:49 -0400 Received: by mail-lf0-f43.google.com with SMTP id p41so74184991lfi.1 for ; Fri, 02 Sep 2016 15:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=iLfRIXPyobRta8BlFDdsyI/4Q1OE4U3OQ9oOe0gzAFI=; b=t0D2YLUXZh6Eh1V1WyiH4pN+riHioZnOKgDX26S/Y3KpKqA0HlKizrbTRuEuT1Ae4X i7c0g/1mV5j55Z3L6cM3C/6lEEXZ8qc65u3P1CA5uOriaBD1WClfyh8zCOz9BsBw0qoZ hMoL3xzpmCokjd6asrH3R8p7IWtJMmfRjzGvU4Mz2xOCkWVG8YtXOTUOP3UYTmqHZwAw UdUEzc9tTy45Lc/3Rl/+zis4PVQfMOKfBVwI6I0fKl0/2DXk73YqYRcqyxPrgs4BmQnn VaJ3i2FhoyT44FTheq0hmYXqtIzFIDUEGsqF4giNuB4rZ0v5tX3LLaZjg2WmY8brlnnx +vbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=iLfRIXPyobRta8BlFDdsyI/4Q1OE4U3OQ9oOe0gzAFI=; b=KW44cMSuVMocBNaoRUushYmrzxEi+7/pI8hQyfE1t3pfj8nmBzSCIM/puNQC/7mApg ddJTKdgTIldM//yrsfD0WglI6aLxe5ZeJJfb8XbBwzgDEkyWtH0WQHD+jxY5ydR6FaKD 6eVCq/na7gbKLyQK1QJ45Q01ZX8xnp6x545eBhTZGwPL8gsm4uQ7KUMLXp9a98TgzJjd pO+fu8wf3E47mgQFJkeKp+Rv1NwTnGzkU/iiQl2sfL9ws5dautZMNoeRAjv4QGaZuBwK LguPxwo56SG0ELjs6SDDK+EoVTXhfCgltPUCMskZJxiDWZFX5THAMZYzEagKrNiCrt3B um/w== X-Gm-Message-State: AE9vXwMo5lUywOd8dH/t1ytUqALuYwrew70N9o53rqF2CLP5BXphBViM9b42DUkeAaLMFQ== X-Received: by 10.25.25.69 with SMTP id 66mr7635377lfz.14.1472854127629; Fri, 02 Sep 2016 15:08:47 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.121]) by smtp.gmail.com with ESMTPSA id s130sm2453174lja.46.2016.09.02.15.08.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 15:08:47 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] ARM: dts: r8a7792: add QSPI support Date: Sat, 03 Sep 2016 01:08:45 +0300 Message-ID: <16566445.LA832Ff91Q@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.6.7-200.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <1648590.FPpmBRoQyh@wasted.cogentembedded.com> References: <1648590.FPpmBRoQyh@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the generic R8A7792 part of the QSPI device node. Based on the original (and large) patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7792.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7792.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi +++ renesas/arch/arm/boot/dts/r8a7792.dtsi @@ -25,6 +25,7 @@ i2c3 = &i2c3; i2c4 = &i2c4; i2c5 = &i2c5; + spi0 = &qspi; vin0 = &vin0; vin1 = &vin1; vin2 = &vin2; @@ -554,6 +555,21 @@ #address-cells = <1>; #size-cells = <0>; status = "disabled"; + }; + + qspi: spi@e6b10000 { + compatible = "renesas,qspi-r8a7792", "renesas,qspi"; + reg = <0 0xe6b10000 0 0x2c>; + interrupts = ; + clocks = <&mstp9_clks R8A7792_CLK_QSPI_MOD>; + dmas = <&dmac0 0x17>, <&dmac0 0x18>, + <&dmac1 0x17>, <&dmac1 0x18>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A7792_PD_ALWAYS_ON>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; }; du: display@feb00000 {