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: 9311729 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 F055860760 for ; Fri, 2 Sep 2016 22:09:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5C2C29838 for ; Fri, 2 Sep 2016 22:09:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C95692983D; Fri, 2 Sep 2016 22:09:31 +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=-5.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 6264229838 for ; Fri, 2 Sep 2016 22:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753308AbcIBWJb (ORCPT ); Fri, 2 Sep 2016 18:09:31 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:33563 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753129AbcIBWJa (ORCPT ); Fri, 2 Sep 2016 18:09:30 -0400 Received: by mail-lf0-f52.google.com with SMTP id b199so92935986lfe.0 for ; Fri, 02 Sep 2016 15:09:29 -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=ib2L9U5WkIcDG1fk6fe0VZ9Y14fClBVmHqAb/568tEytPvpxAPXlL4Q3uBnl0toP/N aWe/3mPJlzyVcMqtTvzzIj3YxsPSFdild4AhGAKAYDzhMFZYH8lW9UEJ/cbd+L1BhKjE mL3TqubjPoYUQshDLvgm/gW0DHSuql62sfVy9byYht4SIO2Gsk3nhFEsVfVDNCrZ9ejF HKHQMDg2Rzy8z/Ho39oairTsTIeHXdz4gfB4/EWlZJGlWESIT0Itvisp88/2tBR0IEKA R85Q/th794RWgyUR+ISurD/DqB2xDWqRPEoFfWmhCwVIDs9a2/5gj3nAukj9FogpnhLp qZfA== X-Gm-Message-State: AE9vXwNKDBhH8LJ5wUKrIsfW62mzDIBlU3egRgyi51RIuMZc6mmdTvptISEC3qferWiT0Q== 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 Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.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 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 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>;