From patchwork Thu Jan 18 19:07:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10173949 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 165D560230 for ; Thu, 18 Jan 2018 19:08:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05FEB28438 for ; Thu, 18 Jan 2018 19:08:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF13328474; Thu, 18 Jan 2018 19:08:16 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 8622128438 for ; Thu, 18 Jan 2018 19:08:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755003AbeARTIQ (ORCPT ); Thu, 18 Jan 2018 14:08:16 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:41282 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752368AbeARTIP (ORCPT ); Thu, 18 Jan 2018 14:08:15 -0500 Received: by mail-pg0-f66.google.com with SMTP id 136so14506671pgd.8 for ; Thu, 18 Jan 2018 11:08:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=DfF8PLO3j0ioiBlmTMMnRKZgwOl+mjzcMv7DCF0aFb0=; b=sppqyns3T1cZI35UsVKe+aPcgjOMEPctpdN3FjiiGTV0KQF7BsPza9QXCYP69/5me/ Nw0hVcGJH6lm+t7fdp+V8zjCzwLEnmEWU6Wu2oUMXYutd+N6abj4pZfgStkeBLcMT1H3 p0f0mipP4Pb7WxXGsjB7VTtytYKAwNQ9nwTRmPHpqzukvrdyFGWJykiXS44JeC3w1V2S SzBBzzddaJ7D/eBggpmiMkm0sjUCP1lvUwlFUgFqCSnqgO6r3NXHb+xmMlnJfHD2ej7s 8A6YaF/Q81ExBw9rJCkl6M9ysERUK4pnZMcOfRHDbww2RGz60cwMW0jiYOcdgzF6gYDr nYAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=DfF8PLO3j0ioiBlmTMMnRKZgwOl+mjzcMv7DCF0aFb0=; b=jCpRi2cgnZ6fOOhu0UJzaDCQLAYszTIy/vu6BP8oq1yBoSsYKrIcImxNbFmmxB26C8 pn2ZzIb0H5p53IELdluhkFDzoT6pODAMd7U7mmKq1fY16lD1SBiqkMaLLn0EZZc9VFD2 2IXXRuxvkrGfpPGMahY6ic6x7QJGR4ydvYyOVGskkSCePnfqPWsjDqSsfiETkwXrl2jD uwTBaugpmRTMuTborvRypqYFA70/PlIABd3hsfFY9TMfBK7v6xJiAwIvmztWGmLnfBaD r8/K8d/HTM8WnylngYs7RZ6fvpZJJ6Kbhz6uPv5HLFcBBoXl1+IA/7EXuDjfaGseBe0Q RzZA== X-Gm-Message-State: AKwxytd02ugMRBK/NCbqgi7UB8IPspuAgX+yJQ7NfqpcFq5o+fK8kPQc kHyg1DKdCeOyF07SY02TMqO6worh X-Google-Smtp-Source: ACJfBoveAGGzQMiXhInfDCQ6y/gRPrPR60Yqq7plizLj5Zy9wO0Rv8SdidEV5+YTCll/Wjj+SiaEjg== X-Received: by 2002:a17:902:f:: with SMTP id 15-v6mr267736pla.419.1516302494959; Thu, 18 Jan 2018 11:08:14 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id q65sm15226886pfj.137.2018.01.18.11.08.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 11:08:13 -0800 (PST) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Fri, 19 Jan 2018 04:07:37 +0900 Message-Id: <151630245794.14098.8902060257525149943.sendpatchset@little-apple> In-Reply-To: <151630243226.14098.14517816422611139335.sendpatchset@little-apple> References: <151630243226.14098.14517816422611139335.sendpatchset@little-apple> Subject: [PATCH/RFC 03/03] arm64: dts: renesas: eagle: NOR flash SPI bitbang prototype 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 From: Magnus Damm Drive the NOR flash chips via SPI bitbang instead of via the two channels of QSPI hardware. This is useful to test the on-chip GPIO devices. Not-Yet-Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) --- 0002/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts +++ work/arch/arm64/boot/dts/renesas/r8a77970-eagle.dts 2018-01-19 03:47:16.380607110 +0900 @@ -31,6 +31,42 @@ /* first 128MB is reserved for secure area. */ reg = <0x0 0x48000000 0x0 0x38000000>; }; + + spi_flash@0 { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio5 0 0>; + gpio-mosi = <&gpio5 1 0>; + gpio-miso = <&gpio5 2 0>; + cs-gpios = <&gpio5 5 0>; + num-chipselects = <1>; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + }; + }; + + spi_flash@1 { + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio5 6 0>; + gpio-mosi = <&gpio5 7 0>; + gpio-miso = <&gpio5 8 0>; + cs-gpios = <&gpio5 11 0>; + num-chipselects = <1>; + + flash@1 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <30000000>; + }; + }; }; &avb {