From patchwork Mon Aug 10 22:00:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 6986641 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 C8491C05AC for ; Mon, 10 Aug 2015 22:00:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EE51620790 for ; Mon, 10 Aug 2015 22:00:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E7AE120798 for ; Mon, 10 Aug 2015 22:00:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933323AbbHJWAj (ORCPT ); Mon, 10 Aug 2015 18:00:39 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:36848 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932984AbbHJWAi (ORCPT ); Mon, 10 Aug 2015 18:00:38 -0400 Received: by lbbpu9 with SMTP id pu9so75489521lbb.3 for ; Mon, 10 Aug 2015 15:00:37 -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=4pR+3qGms4Pc+1JP71AwgBX8nn0s5xHLI4fffz11jws=; b=j2y5V9zRfIYhwsk0xsTnieeaPdDpiS2YJ9N56kqEcaYvj5v6eAC6Xl9aVJXOrigGtg 3+sPo4W5uQpuS+/HuNdbUPu50vBm0cK7uH7AyjFzcp5h4iPpGmLpCCY9op33ODWdJ4gC eDYwW4aTSnZM/tl/cUsp7PnuFSPjceZAB+jaw7rHBWCAvpLaXWFY9+oKBrizfqcOHBH0 gf+NALncavBV3yMFlYJxWOrC8etTBZCc7f0TS/kfM+53LMOafotL3KRMdZg1KjuS5JEY Bp8umIPnW1sqjs4D4jhM2jpf0kOwGaX+j321ZdqlbtL6+sW3llT/EGM0gvmzUXL7jKiV oW5A== X-Gm-Message-State: ALoCoQkM6vBYJQYTzOJ2ben37BG6PjFBLJOysKd/bq2Krg2s+CUWtlkt68ESNqGHSy6DJ6M7L3S4 X-Received: by 10.112.118.41 with SMTP id kj9mr22911049lbb.123.1439244037434; Mon, 10 Aug 2015 15:00:37 -0700 (PDT) Received: from wasted.cogentembedded.com (ppp18-119.pppoe.mtu-net.ru. [81.195.18.119]) by smtp.gmail.com with ESMTPSA id c4sm1910420laa.7.2015.08.10.15.00.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 15:00:36 -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 v2 2/2] ARM: shmobile: silk: add QSPI DT support Date: Tue, 11 Aug 2015 01:00:35 +0300 Message-ID: <7036752.0LCvRcbC9K@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: <4187771.Fb49GBKgyg@wasted.cogentembedded.com> References: <4187771.Fb49GBKgyg@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=-6.9 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 Acked-by: Geert Uytterhoeven --- Changes in version 2: - added fallback value to the SPI flash's "compatible" property; - grouped all SPI-related properties together in the SPI flash node. 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", "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; + + 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>; + }; + }; +};