From patchwork Fri Oct 9 20:51:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 7363841 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 891459F36A for ; Fri, 9 Oct 2015 20:51:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B53202054D for ; Fri, 9 Oct 2015 20:51:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C90992053A for ; Fri, 9 Oct 2015 20:51:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751558AbbJIUvJ (ORCPT ); Fri, 9 Oct 2015 16:51:09 -0400 Received: from mail-lb0-f170.google.com ([209.85.217.170]:33279 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751047AbbJIUvI (ORCPT ); Fri, 9 Oct 2015 16:51:08 -0400 Received: by lbos8 with SMTP id s8so92416816lbo.0 for ; Fri, 09 Oct 2015 13:51:07 -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=TSoKWoL0AHVCKYsVK6290J9VCY462rK42NfCbQ7q704=; b=bTgVNAG4WOWivs/dQjaVDtzRdUbY7O9xi2hvhnSoMyhMXE6cUoMXoPfzc1/eveBZQH lnR4yIR+0i2VUOnBKrkdVLCWMvi/3m/mJMjPfLDuBazl8tBTY77S7mcxUfp9xCE2CUt9 tZVT6fYQV4wMJrdaGXgfNof4CSB6BRESTpjHCatIDt6G5DpOxol6Wtu2a+UpH17jJ+C+ u8N3so0/vwxbCliQi8pU5abbTCd1sBRN73Yxhw3d6vkm4VCFdQO6NWUmbE0rze9BkqJb NsaMIYIJa0symRHuVMxSUFFPPn5rXdKF2zUv/mEHcbBwHH1szOD6PtQH7TfzWp9l01aH wfdA== X-Gm-Message-State: ALoCoQn48Sw4cmmK4qjz06LkBHxlvfW5e1prtHK7xkDfk2s2kevZ6SxjgzLTTN20tj+q9Zb2CkXc X-Received: by 10.112.162.162 with SMTP id yb2mr7569814lbb.94.1444423866920; Fri, 09 Oct 2015 13:51:06 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp18-83.pppoe.mtu-net.ru. [81.195.18.83]) by smtp.gmail.com with ESMTPSA id ps9sm582778lbb.19.2015.10.09.13.51.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Oct 2015 13:51:06 -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] ARM: shmobile: porter: add QSPI DT support Date: Fri, 09 Oct 2015 23:51:05 +0300 Message-ID: <1738678.v21ITp1gYW@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. 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";