From patchwork Fri Oct 9 21:40:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7364131 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3B8019F36A for ; Fri, 9 Oct 2015 21:40:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 431632076B for ; Fri, 9 Oct 2015 21:40:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 596DA20857 for ; Fri, 9 Oct 2015 21:40:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932351AbbJIVkg (ORCPT ); Fri, 9 Oct 2015 17:40:36 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:35138 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932144AbbJIVke (ORCPT ); Fri, 9 Oct 2015 17:40:34 -0400 Received: by lbwr8 with SMTP id r8so93780491lbw.2 for ; Fri, 09 Oct 2015 14:40:33 -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:mime-version:content-transfer-encoding:content-type; bh=kvXqMfCioCZwZbIpIYEEqbaO3cZ/8kIcOHzRCNS36Aw=; b=cqVPU2yYZMexrHD+IejedybP7mQyq123T73ZQZNvJyt7Nbg3QIc7vf3D9TO2Up4aii Q7VEGhYbHcI0cG4/wTiK1Op3Bl6qrIPxB2FDjDZX/hy1B9N12gaz4Ldph2v1ckomyDmb 9EEwaGsCA3cmLG4xBUv49UfKPgtNa0feghL6KZ18RZ7bDBM8M38ui+yisTrwAberyG5Q tr9UXsec72ABXl1iNq0/lzGG48PWw/0AGAyIzDOzmFuHjgw4tTRwdaB8sI6vuyYDyJQN E+1QLbczUopwHr2AkRSo1F07jGUxW8FM8ffraJctjQ+Xyt2QBJ5Jwd4Xtbeqvou/lJGD hsPQ== X-Gm-Message-State: ALoCoQnPvgpI215Bs/I9o74zA0B/cEQ2rPzk7B25MfBPK9ZbKoAb/5wOTLuiALoPUbxpxxmQ0Njc X-Received: by 10.112.163.193 with SMTP id yk1mr7675361lbb.1.1444426832992; Fri, 09 Oct 2015 14:40:32 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp18-83.pppoe.mtu-net.ru. [81.195.18.83]) by smtp.gmail.com with ESMTPSA id q1sm66740lbb.5.2015.10.09.14.40.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 14:40:31 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] ARM: shmobile: porter: add QSPI DT support Date: Sat, 10 Oct 2015 00:40:31 +0300 Message-ID: <2106212.7FLXjWMUMh@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.9 (Linux/4.1.8-100.fc21.x86_64; KDE/4.14.9; x86_64; ; ) 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, T_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 Porter board dependent part of the QSPI device node. Add device nodes for Spansion S25FL512S SPI flash and the MTD partitions on it. This patch is mostly analogous to the commit f59838d44835 ("ARM: shmobile: henninger: add QSPI DT support") as there are no differences between the boards in this respect. Signed-off-by: Sergei Shtylyov --- This patch is against 'renesas-devel-20151008-v4.3-rc4' tag of Simon Horman's 'renesas.git' repo plus the Porter I2C2 and VIN0/ADV7180 patches posted earlier. Changes in version 2: - fixed the commit citing style and reformatted that whole paragraph. arch/arm/boot/dts/r8a7791-porter.dts | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 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/r8a7791-porter.dts =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7791-porter.dts +++ renesas/arch/arm/boot/dts/r8a7791-porter.dts @@ -110,6 +110,11 @@ renesas,function = "sdhi2"; }; + qspi_pins: spi0 { + renesas,groups = "qspi_ctrl", "qspi_data4"; + renesas,function = "qspi"; + }; + i2c2_pins: i2c2 { renesas,groups = "i2c2"; renesas,function = "i2c2"; @@ -165,6 +170,39 @@ status = "okay"; }; +&qspi { + pinctrl-0 = <&qspi_pins>; + pinctrl-names = "default"; + + status = "okay"; + + flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl512s", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + spi-tx-bus-width = <4>; + spi-rx-bus-width = <4>; + m25p,fast-read; + + partition@0 { + label = "loader_prg"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "user_prg"; + reg = <0x00040000 0x00400000>; + read-only; + }; + partition@440000 { + label = "flash_fs"; + reg = <0x00440000 0x03bc0000>; + }; + }; +}; + &i2c2 { pinctrl-0 = <&i2c2_pins>; pinctrl-names = "default";