From patchwork Wed Dec 4 21:29:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 3285431 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 906BFC0D4A for ; Wed, 4 Dec 2013 21:29:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AD4F20501 for ; Wed, 4 Dec 2013 21:29:06 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BEAA204FF for ; Wed, 4 Dec 2013 21:29:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VoK08-0002Ke-F5; Wed, 04 Dec 2013 21:28:56 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VoK06-0001fV-0K; Wed, 04 Dec 2013 21:28:54 +0000 Received: from mail-pb0-x232.google.com ([2607:f8b0:400e:c01::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VoK02-0001fB-TA for linux-arm-kernel@lists.infradead.org; Wed, 04 Dec 2013 21:28:52 +0000 Received: by mail-pb0-f50.google.com with SMTP id rr13so24429319pbb.37 for ; Wed, 04 Dec 2013 13:28:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:subject; bh=PY84fDmYRQjDlU6Ae9ywF/d2zpvXRbsYKMra7tsi9R0=; b=jVthcuNLKKQTJqNkhMAs8YrjgqJ5yFJEzsVd60P59hNCk7aHYKh9SYjYZxOagVPdfd EzIbBYLzAQb4gjPHZ4tFKYSOWe2EgxLPyTPTfEGI3fVOtWs5S2uOnnG0DiAsF5U9ziHL kGtvsftbAUfL9PNSsiFZcwTQpQinmIVHOPGdA5Rq+ZiZj6oE4vyfF8rrvkKY7mKz+UIf kjfGTqJyHXYw8R+7tR12fAkFWbO2E+KntvQm0NMHcXQVHo/QYVz8tViUKZKvoQIxenKB t5WQZyI8KHhtrmxl4VVOJDJtdJiXxdbyiZd7ILmUn38m3WEJrpwFnmhd/X2E84xnCa6i zymQ== X-Received: by 10.69.31.1 with SMTP id ki1mr48139222pbd.124.1386192508824; Wed, 04 Dec 2013 13:28:28 -0800 (PST) Received: from [127.0.0.1] (ac230065.ppp.asahi-net.or.jp. [183.77.230.65]) by mx.google.com with ESMTPSA id oj6sm160367699pab.9.2013.12.04.13.28.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Dec 2013 13:28:27 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Thu, 05 Dec 2013 06:29:15 +0900 Message-Id: <20131204212915.24243.27225.sendpatchset@w520> Subject: [PATCH] ARM: shmobile: Genmai SPI over GPIO support X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131204_162851_029114_18D81D91 X-CRM114-Status: UNSURE ( 7.28 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: wsa@the-dreams.de, linus.walleij@linaro.org, Magnus Damm , horms@verge.net.au, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: Magnus Damm Hook up the serial flash memory to bit bang SPI on the Genmai board. Signed-off-by: Magnus Damm --- Written on to of renesas git tag renesas-devel-v3.13-rc2-20131202 and [PATCH 00/04] ARM: shmobile: r7s72100 and Genmai GPIO / PINCTRL support arch/arm/boot/dts/r7s72100-genmai-reference.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) --- 0010/arch/arm/boot/dts/r7s72100-genmai-reference.dts +++ work/arch/arm/boot/dts/r7s72100-genmai-reference.dts 2013-12-05 06:23:57.000000000 +0900 @@ -56,5 +56,20 @@ reg = <0x50>; }; }; + spi0 { + compatible = "spi-gpio"; + gpio-sck = <&port9 2 0>; + gpio-mosi = <&port9 4 0>; + gpio-miso = <&port9 5 0>; + cs-gpios = <&port9 3 0>; + num-chipselects = <1>; + #address-cells = <1>; + #size-cells = <0>; + s25fl512s: s25fl512s0 { + compatible = "s25fl512s"; + reg = <0>; + spi-max-frequency = <104000000>; + }; + }; };