From patchwork Mon Aug 10 21:59:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6986631 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 C239FC05AC for ; Mon, 10 Aug 2015 21:59:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D758E2061C for ; Mon, 10 Aug 2015 21:59:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1A3820791 for ; Mon, 10 Aug 2015 21:59:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933013AbbHJV72 (ORCPT ); Mon, 10 Aug 2015 17:59:28 -0400 Received: from mail-la0-f51.google.com ([209.85.215.51]:35266 "EHLO mail-la0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933363AbbHJV71 (ORCPT ); Mon, 10 Aug 2015 17:59:27 -0400 Received: by lahi9 with SMTP id i9so30734487lah.2 for ; Mon, 10 Aug 2015 14:59:26 -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=FXhrxIXcppSnVFWCFn6PIAIm+dqq0jlQwWPVQq2n9RA=; b=ECWwszzHZ8GYZCzs9O3jA0N6NJUlF2n/dwHnxooqwieg7qsXK3MccOcmLMuoHqnPQG zFsiE4Jp0pQ5buUjC+EJAPWVoOUOr4uAkQuQk0y19IGF2uqleq+NDQl++Uo7SUKlOvbg VmB3nxanEmi7ABqwr3Y/jb7fIvTAuN9bnrpkXnDI1Z0scpvL1v9rGt74evEPFNfNzhSU 2Nk6C7A0XhYT3ECJktZojFj7gYhMVo07f6kXicgFMvYWOnxYE2WJcxSO3AJihWQcrQ6f ururg+MbSjm/zsaSoqyqCUObP3ygAVrX0l8z+U1hKXUfjFdCUiUeQlJIsVFbswHPikcu ng8Q== X-Gm-Message-State: ALoCoQmkJtCYq7p+gwJX0Wlmz47f93Q1PnHHtD0ObiqOC+TxuA9r/0mCOgD0XjucdB0+fEx4zUGJ X-Received: by 10.153.7.137 with SMTP id dc9mr22317756lad.16.1439243966007; Mon, 10 Aug 2015 14:59:26 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp18-119.pppoe.mtu-net.ru. [81.195.18.119]) by smtp.gmail.com with ESMTPSA id pl1sm4526207lbc.30.2015.08.10.14.59.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 14:59:25 -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 v2 1/2] ARM: shmobile: r8a7794: add QSPI DT support Date: Tue, 11 Aug 2015 00:59:24 +0300 Message-ID: <1540672.y3DTbtssP8@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: <4187771.Fb49GBKgyg@wasted.cogentembedded.com> References: <4187771.Fb49GBKgyg@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=-6.9 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 --- Changes in version 2: - moved the "power-domains" property after the DMA properties. 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>; + dmas = <&dmac0 0x17>, <&dmac0 0x18>; + dma-names = "tx", "rx"; + power-domains = <&cpg_clocks>; + num-cs = <1>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + clocks { #address-cells = <2>; #size-cells = <2>;