From patchwork Fri Sep 2 22:09:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9311737 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 38D5360760 for ; Fri, 2 Sep 2016 22:11:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FECD297B6 for ; Fri, 2 Sep 2016 22:11:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 146D22983B; Fri, 2 Sep 2016 22:11:15 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EFEF9297B6 for ; Fri, 2 Sep 2016 22:11:13 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfwep-0000l4-Ny; Fri, 02 Sep 2016 22:09:55 +0000 Received: from mail-lf0-x22b.google.com ([2a00:1450:4010:c07::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfwek-0000at-M1 for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2016 22:09:52 +0000 Received: by mail-lf0-x22b.google.com with SMTP id e198so59071817lfb.2 for ; Fri, 02 Sep 2016 15:09:30 -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=hQjudhgs7y3pMeFLb9j87afi47xM1HyWCfYtAOexHgA=; b=p8s63jLr6yarpOIPt1mVXsEyjSNh8zN7JaCKEPFMSOb8r4dNC7tcJpau6JCJi/l8Zd fP/X7Whg5glZi5scxhq2A8nn6VnnpWmQ18wfX4wmxylFbTQ1SZHpXqdB9kfEsaaVrS9d F49DR9LekR9mzAqq4Md+n4rjXNLAQK6ITVza3TAjbq+izJyf13rCDHniNwcHqxNOqqYB yRf5Jv9HsvNXb1bQpxAdQufjLtQQI2vmOq9+ThAY3JIX3LwNmB0tksmUWbcvERr9bc3T ekp/QeV8ql2sAicStl5jAYC/4d4LLaLSZ528rAQbSsxvwSlSjDrLjJhOsxOUU/BQBewX SG7A== 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=hQjudhgs7y3pMeFLb9j87afi47xM1HyWCfYtAOexHgA=; b=L2pKPFQG/txQrOudMN55O0FcWatLu+49LeDl9OFeyCZs2Q6sRuPYiHv2vdAjg0dZ/E KuHzvdsLBe854W1JAYN0CL0nLNYYO9huyKqz+mpXEhXaW4i73K3psWAVBymRP/ewt5Ro cH31SkF7wZjkgtXsTfd/jzwvO0c6QBOYmT/7y3PNOtG2XshbQfyqAoJZUMZgfHCZrQNp +e+EIWR87Rv1cI0aSadHJlpLaCX3pioa5vIsSPrBw7WPW4AkQLyH+zN4JD/tGJoj7p9x bRGiJLrhZUpNg1at014DTWUR0eW3VwJ43/rjAd8yYXlWDpqX8nXkAenliifudYEKLvAb w+Bg== X-Gm-Message-State: AE9vXwMlnUXf77yHU8C2TsVGYt0J3rRdyvwd4l5y3QA+000QKQML2QdfNG9Kyuor93/akg== X-Received: by 10.46.9.144 with SMTP id 138mr7230136ljj.6.1472854168526; Fri, 02 Sep 2016 15:09:28 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.81.121]) by smtp.gmail.com with ESMTPSA id s187sm2680867lfd.3.2016.09.02.15.09.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 15:09:27 -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 Subject: [PATCH 3/3] ARM: dts: wheat: add QSPI support Date: Sat, 03 Sep 2016 01:09:26 +0300 Message-ID: <3191777.fJ30rYXr4J@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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160902_150951_045321_BB65667B X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@arm.linux.org.uk, magnus.damm@gmail.com, linux-arm-kernel@lists.infradead.org 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 Define the Wheat 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 (and large) patch by Vladimir Barinov . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7792-wheat.dts | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7792-wheat.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7792-wheat.dts +++ renesas/arch/arm/boot/dts/r8a7792-wheat.dts @@ -132,6 +132,11 @@ function = "sdhi0"; }; + qspi_pins: qspi { + groups = "qspi_ctrl", "qspi_data4"; + function = "qspi"; + }; + du0_pins: du0 { groups = "du0_rgb888", "du0_sync", "du0_disp"; function = "du0"; @@ -173,6 +178,44 @@ status = "okay"; }; +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + status = "okay"; + + flash@0 { + compatible = "spansion,s25fl512s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + spi-cpol; + spi-cpha; + m25p,fast-read; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + 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>; + }; + }; + }; +}; + &i2c4 { status = "okay"; clock-frequency = <400000>;