From patchwork Tue Jan 26 11:12:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 60437 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1890027lbb; Tue, 26 Jan 2016 03:14:21 -0800 (PST) X-Received: by 10.98.0.135 with SMTP id 129mr32951954pfa.156.1453806860940; Tue, 26 Jan 2016 03:14:20 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id gl10si1378139pac.164.2016.01.26.03.14.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 03:14:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org 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 1aO1Zc-0003PB-VN; Tue, 26 Jan 2016 11:14:12 +0000 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aO1Yb-0002Qv-6e for linux-mtd@lists.infradead.org; Tue, 26 Jan 2016 11:13:12 +0000 Received: by mail-lf0-x231.google.com with SMTP id h129so103433666lfh.3 for ; Tue, 26 Jan 2016 03:12:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=veAzXf6R2sm/EGzX1okZjhgrdgymF6aIDceywMV6uu4=; b=YkMKhowpop8oSivKMc23fBCSEZytULyF5ewfs96M3H8RsD+JUCLLJLd3pcuaICWfl5 E9U0gVspQN/pTsdbmRZGmjpCI/RqSz2LiIw+yzFzepuYRJMIiNCswYm4o+HQ9lOimBY0 NhpTSkqhLFkyO+rQgGRYf91e6g+Z5PHsIteYM= 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:in-reply-to :references; bh=veAzXf6R2sm/EGzX1okZjhgrdgymF6aIDceywMV6uu4=; b=VRSii1Ho02+bHeiuZC8+EfY/2ffiqewXZJjZkArh2uNIhPEmzuALRLo2hyDgsDGIqj dKIWCW2PPtstus+zwc2zZjpCeRlO8GBltXxbnkde1xdtTNk3KGv2vl19vmqE2psObWW4 +rSyAkuWUH0UzA8MIHl5OM/szHLbSRc3VLS7siL2zu8srCp4xot3Yc6fvxj4mndJueK4 JidshxcM3VqShkyZeW1+c47aJPa+o1LFAt+SVDq+6rNAxvfGYtQD+yhvyVWkjEoE7/t7 RD45SdD2GgNsnvLeVD4yXsfwMY7+BRJaLEpZvZjgJD5r/lmvNbaePZQWWHkDtOKAohpa S/BQ== X-Gm-Message-State: AG10YOTecGfLUcyXwkh/MdQ0XrQfx4kWEevxdzDPh3PgevIsmbaiLdMJ9GQb+pQx5gOwu44q X-Received: by 10.25.136.139 with SMTP id k133mr8447057lfd.157.1453806767138; Tue, 26 Jan 2016 03:12:47 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id i192sm119832lfb.14.2016.01.26.03.12.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 03:12:46 -0800 (PST) From: Linus Walleij To: David Woodhouse , Brian Norris , linux-mtd@lists.infradead.org Subject: [PATCH 5/6] ARM: realview: add flash devices to the PB1176 DTS Date: Tue, 26 Jan 2016 12:12:04 +0100 Message-Id: <1453806725-4880-6-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1453806725-4880-1-git-send-email-linus.walleij@linaro.org> References: <1453806725-4880-1-git-send-email-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160126_031309_828118_90A7C992 X-CRM114-Status: GOOD ( 15.27 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:231 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , Arnd Bergmann , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org This adds the flash memories and ROM to the PB1175 DTS file. The secure flash is marked as "disabled" by default so as to protect the user from overwriting the boot monitor. Cc: Arnd Bergmann Signed-off-by: Linus Walleij --- arch/arm/boot/dts/arm-realview-pb1176.dts | 32 +++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) -- 2.4.3 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/arm/boot/dts/arm-realview-pb1176.dts b/arch/arm/boot/dts/arm-realview-pb1176.dts index 1bc64cda819e..b7d727ef1868 100644 --- a/arch/arm/boot/dts/arm-realview-pb1176.dts +++ b/arch/arm/boot/dts/arm-realview-pb1176.dts @@ -106,6 +106,31 @@ clock-frequency = <0>; }; + flash@30000000 { + compatible = "arm,versatile-flash", "cfi-flash"; + reg = <0x30000000 0x4000000>; + bank-width = <4>; + }; + + fpga_flash@38000000 { + compatible = "arm,versatile-flash", "cfi-flash"; + reg = <0x38000000 0x800000>; + bank-width = <4>; + }; + + /* + * The "secure flash" contains things like the boot + * monitor so we don't want people to accidentally + * screw this up. Mark the device tree node disabled + * by default. + */ + secflash@3c000000 { + compatible = "arm,versatile-flash", "cfi-flash"; + reg = <0x3c000000 0x4000000>; + bank-width = <4>; + status = "disabled"; + }; + soc { #address-cells = <1>; #size-cells = <1>; @@ -297,6 +322,13 @@ clocks = <&uartclk>, <&pclk>; clock-names = "uartclk", "apb_pclk"; }; + + /* Direct-mapped development chip ROM */ + pb1176_rom@10200000 { + compatible = "direct-mapped"; + reg = <0x10200000 0x4000>; + bank-width = <1>; + }; }; /* These peripherals are inside the FPGA rather than the DevChip */