From patchwork Thu Oct 15 10:20:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 54993 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by patches.linaro.org (Postfix) with ESMTPS id 98E9E22FFA for ; Thu, 15 Oct 2015 10:22:49 +0000 (UTC) Received: by lbbpc3 with SMTP id pc3sf8093432lbb.2 for ; Thu, 15 Oct 2015 03:22:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:cc:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=Jn2KI4iPePXdUGenAtXW5fsk6tEyNhNLqJjfTYy8x6I=; b=g65/uYzjMfNah+XrFErrCTQ92V0CmWpXcrrw+mXUXu0wwzB22UNd+7Z3DyydbCjCyo 8pAn1lPxcHW/+VWhW0zvMBljcxWYZfzbELEtlqaXow0G5uiz2jQWPk6PpeFGVBGorqn1 MmsefxpcCqm0UnR7NSFiPECWJ1Ia6tkmAc+thIUJ6PTbR2MdN4LqqPtaEpTUmq2UzxSk IhabPmduxXiwu0sfo/LJTZRX1Nht7sEyRHNiCYzFqo2d6OmoKN8VqWfkharyFWrsee/F Rpj+Ia+3GJ12jnUn8a2HZTILGKK2prExUMQFQaUL/5lXCHtSGVbc5CD/gmZMlR3MAhnD 4glw== X-Gm-Message-State: ALoCoQmxzuMdtMaKHVOHaIIsPxusfcc48+cEq5lXcUCJooJdmqIFNCmSaZ/MJGQTp/YyBko17XBb X-Received: by 10.112.150.229 with SMTP id ul5mr2002683lbb.2.1444904568217; Thu, 15 Oct 2015 03:22:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.18.233 with SMTP id 102ls150203lfs.1.gmail; Thu, 15 Oct 2015 03:22:48 -0700 (PDT) X-Received: by 10.25.207.82 with SMTP id f79mr2717594lfg.73.1444904568082; Thu, 15 Oct 2015 03:22:48 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id r20si8640262lfd.110.2015.10.15.03.22.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 03:22:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbwr8 with SMTP id r8so65282835lbw.2 for ; Thu, 15 Oct 2015 03:22:48 -0700 (PDT) X-Received: by 10.112.159.136 with SMTP id xc8mr3314188lbb.76.1444904567917; Thu, 15 Oct 2015 03:22:47 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp533925lbq; Thu, 15 Oct 2015 03:22:47 -0700 (PDT) X-Received: by 10.50.142.1 with SMTP id rs1mr9482037igb.17.1444904567061; Thu, 15 Oct 2015 03:22:47 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id bf6si20695322igb.42.2015.10.15.03.22.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 03:22:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZmfeX-0008Vi-Or; Thu, 15 Oct 2015 10:20:53 +0000 Received: from mail-lb0-f179.google.com ([209.85.217.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZmfeU-0008DZ-Dj for linux-arm-kernel@lists.infradead.org; Thu, 15 Oct 2015 10:20:51 +0000 Received: by lbbwb3 with SMTP id wb3so3296314lbb.1 for ; Thu, 15 Oct 2015 03:20:27 -0700 (PDT) X-Received: by 10.112.172.165 with SMTP id bd5mr4040104lbc.51.1444904427445; Thu, 15 Oct 2015 03:20:27 -0700 (PDT) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id ug9sm1936275lbb.22.2015.10.15.03.20.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Oct 2015 03:20:26 -0700 (PDT) From: Linus Walleij To: arm@kernel.org Subject: [PATCH] ARM64: juno: add NOR flash to device tree Date: Thu, 15 Oct 2015 12:20:15 +0200 Message-Id: <1444904415-19597-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151015_032050_657938_B1CACF8F X-CRM114-Status: GOOD ( 13.52 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.217.179 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.179 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: Catalin Marinas , Linus Walleij , Liviu Dudau , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: linus.walleij@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The Juno motherboard has a NOR flash on the motherboard, enable this to be accessed with the CFI flash driver. Results after enabling MTD, MTD_CFI, MTD_PHYSMAP, MTD_PHYSMAP_OF, MTD_CFI_INTELEXT: 8000000.flash: Found 2 x16 devices at 0x0 in 32-bit bank. Manufacturer ID 0x000089 Chip ID 0x008919 Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Using buffer write method Using auto-unlock on power-up/resume cfi_cmdset_0001: Erase suspend on write enabled erase region 0: offset=0x0,size=0x40000,blocks=255 erase region 1: offset=0x3fc0000,size=0x10000,blocks=4 Cc: Liviu Dudau Cc: Catalin Marinas Signed-off-by: Linus Walleij Acked-by: Liviu Dudau --- ARM SoC folks: please apply this directly for -next if people are OK with it, as I have no other Juno patches pending for now. --- arch/arm64/boot/dts/arm/juno-motherboard.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi index 637e046f0e36..c7c99a42e2e9 100644 --- a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi +++ b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi @@ -103,6 +103,14 @@ }; }; + flash@0,00000000 { + /* 2 * 32MiB NOR Flash memory mounted on CS0 */ + compatible = "arm,vexpress-flash", "cfi-flash"; + linux,part-probe = "afs"; + reg = <0 0x00000000 0x04000000>; + bank-width = <4>; + }; + ethernet@2,00000000 { compatible = "smsc,lan9118", "smsc,lan9115"; reg = <2 0x00000000 0x10000>;