From patchwork Sat Aug 8 22:26:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6976961 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9960FC05AC for ; Sat, 8 Aug 2015 22:26:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 465F120761 for ; Sat, 8 Aug 2015 22:26:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6482C20739 for ; Sat, 8 Aug 2015 22:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2993073AbbHHW0Q (ORCPT ); Sat, 8 Aug 2015 18:26:16 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:34745 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992750AbbHHW0N (ORCPT ); Sat, 8 Aug 2015 18:26:13 -0400 Received: by lbbtg9 with SMTP id tg9so39634763lbb.1 for ; Sat, 08 Aug 2015 15:26:12 -0700 (PDT) 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:content-type; bh=Vwzg969F+tNj80XzXaa9tyGhn7GKStUuQT+06et8Pcw=; b=KA3mqxTNf5/inyeGNkROGWi/JEUew+ucSKVKcdxuGMvxYpem1O/SgsaPn0rv+DZPZZ kdn1/ANFqOlnz+/jdPJBhrzRM6atFJnXnJV65q5sQLU3W3M+Ww03u5kpci6S3X0z5IcU nmLSsiwG35b8XLRmvGD30z/vxf2zWyUdW/iEUQjR2A5GUC6By5OJZuCDiSKI6pywNEaz e+zL7qQWVZ5C4wMYWA8OgNyhynEuiaOXCnriw/aByhqGv3rpSWvmEh6OomLgLQtFWQWT W06FHhRBioqsLEb4kd+g3FrnBfNMRkjxL0BDzE/rKSXovbEfOvu1K+Xr5FpJAS8/dlGK Gl/w== X-Gm-Message-State: ALoCoQnl7hb2zNRseZPzBTsTIHjsRK4F+g2puN/OPEMMGeGite7QiEj91FmtEVgE0KIz69IaSf1o X-Received: by 10.112.67.65 with SMTP id l1mr4031313lbt.86.1439072771994; Sat, 08 Aug 2015 15:26:11 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp83-237-255-136.pppoe.mtu-net.ru. [83.237.255.136]) by smtp.gmail.com with ESMTPSA id qs1sm3085922lbb.35.2015.08.08.15.26.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Aug 2015 15:26:11 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] ARM: shmobile: r8a7794: add QSPI DT support Date: Sun, 09 Aug 2015 01:26:10 +0300 Message-ID: <5339616.vfIYf6AeR8@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.0.8-200.fc21.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <1898263.zrOs5SAUTS@wasted.cogentembedded.com> References: <1898263.zrOs5SAUTS@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Define the generic R8A7794 part of the QSPI device node. Based on original patch by Hisashi Nakamura . Signed-off-by: Sergei Shtylyov Acked-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7794.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: renesas/arch/arm/boot/dts/r8a7794.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi +++ renesas/arch/arm/boot/dts/r8a7794.dtsi @@ -19,6 +19,10 @@ #address-cells = <2>; #size-cells = <2>; + aliases { + spi0 = &qspi; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -537,6 +541,20 @@ status = "disabled"; }; + qspi: spi@e6b10000 { + compatible = "renesas,qspi-r8a7794", "renesas,qspi"; + reg = <0 0xe6b10000 0 0x2c>; + interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&mstp9_clks R8A7794_CLK_QSPI_MOD>; + power-domains = <&cpg_clocks>; + dmas = <&dmac0 0x17>, <&dmac0 0x18>; + dma-names = "tx", "rx"; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + clocks { #address-cells = <2>; #size-cells = <2>;