From patchwork Sat Aug 8 22:27:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6976991 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 A19A7C05AC for ; Sat, 8 Aug 2015 22:27:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C8E3820763 for ; Sat, 8 Aug 2015 22:27:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E30FE20761 for ; Sat, 8 Aug 2015 22:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992825AbbHHW1U (ORCPT ); Sat, 8 Aug 2015 18:27:20 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:35982 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992793AbbHHW1Q (ORCPT ); Sat, 8 Aug 2015 18:27:16 -0400 Received: by lbbpu9 with SMTP id pu9so50101040lbb.3 for ; Sat, 08 Aug 2015 15:27:15 -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=Ersa3KA1X4QMiZBu9JX5Qe1oILdH98sKkhZjAN0MVwc=; b=aiRrZfID1qxNXiWObJMnqYky6RpRukszpNpw9Iajjze+waJQq4VklOt5Jn0q/gyYn0 ZMbln6+8ga3hzUQmcgtkKFrmklfE0G9/smcv3pvVZC1u1iXyc3xQ6TRou4wdJYBIcpvQ jc2WywrLtZ19+YQH+s4xdLjpXbUrW23l6dEYrym1E7C+fVNVqURg0fy9wXUbjF2tIzc3 VBvtJZ7T+indBUEVA5mQAczrv8nRNg2715l9ommGlxMLtSUpY4q+VSc8uywrEm90/HSg ylQLjbJRsocUFYEjWpDQ/FzBvVt4urO6YR15+jLMfssqiXfuf+9kJgHPoAhj8UrtYlCX +kGg== X-Gm-Message-State: ALoCoQn1OR/f3Inwct9VM2DYqqN/+87oTE9rQzjcLsPBUhNqkvePbZpSEtWLMiAy57zl4wvPjAhL X-Received: by 10.152.42.145 with SMTP id o17mr14245402lal.5.1439072835405; Sat, 08 Aug 2015 15:27:15 -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 10sm1257296lar.32.2015.08.08.15.27.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Aug 2015 15:27:14 -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 2/2] ARM: shmobile: silk: add QSPI DT support Date: Sun, 09 Aug 2015 01:27:14 +0300 Message-ID: <1768974.jEFIAaInqd@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 SILK board dependent part of the QSPI device node. Add device nodes for Spansion S25FL512S SPI flash and MTD partitions on it. Based on the original patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov --- arch/arm/boot/dts/r8a7794-silk.dts | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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-silk.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts @@ -65,6 +65,11 @@ renesas,groups = "mmc_data8", "mmc_ctrl"; renesas,function = "mmc"; }; + + qspi_pins: spi0 { + renesas,groups = "qspi_ctrl", "qspi_data4"; + renesas,function = "qspi"; + }; }; &scif2 { @@ -100,3 +105,38 @@ non-removable; status = "okay"; }; + +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + + status = "okay"; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl512s"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + m25p,fast-read; + spi-cpol; + spi-cpha; + + partition@0 { + label = "loader"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash"; + reg = <0x00440000 0x03bc0000>; + }; + }; +};