From patchwork Thu Aug 31 11:52:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13371464 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05E7FC83F10 for ; Thu, 31 Aug 2023 11:53:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oqReGemPrPQxK8eOQXPtQSNBNu5WXqhIGTKmuIt7eg0=; b=A4+PDsPvBp9YrX xkjaewTX/IpUoUDV4Y5UaKBVpDLR4uHh6nNLAxWpUjHqFQjKNTtx9TURgbKG5+6DTIixq+1jxYEdQ R7qAYLuGRRoddBuXYCYeDsEGw0VD1jzVEt+qstFQs68n9+NdSX3oqZmdpenxr5QI1lTjStpuzk1Bi iabeNgbwwVU+MxwNXahP8/8ilt98aiCOLJoXjcU+dqqt/9/E9nqCPzHeOZfQWizc/hx8iu8EZBS53 2YTezr3u/qSFR53MLd+HReJumREEjR503Q4R+sWybYcVYIEYzmpeyXwsfsppjzFPJ4zTcksLa6p/6 mMVEuykmhkhaMsMhEl+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qbgES-00FEGz-0G; Thu, 31 Aug 2023 11:53:04 +0000 Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qbgE7-00FE7S-2C for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2023 11:52:45 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:6c13:6b1b:7366:87c0]) by baptiste.telenet-ops.be with bizsmtp id gBsf2A00B3874jb01BsfNn; Thu, 31 Aug 2023 13:52:39 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qbgDq-002755-Dw; Thu, 31 Aug 2023 13:52:38 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qbgE2-00CIVN-T8; Thu, 31 Aug 2023 13:52:38 +0200 From: Geert Uytterhoeven To: Magnus Damm , Marek Vasut , Jacopo Mondi , Chris Brandt , Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven Subject: [PATCH/RFC 12/13] ARM: dts: renesas: marzen: Add FLASH node Date: Thu, 31 Aug 2023 13:52:34 +0200 Message-Id: <440ce3bb950c34fd57071b4eec83ad9643b682e5.1693481518.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230831_045243_893862_6FEF54CB X-CRM114-Status: GOOD ( 11.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a device node for the Spansion S29GL512N NOR FLASH on the Marzen development board. This FLASH resides in the external address space of the Local Bus State Controller. Note that as the CFI-FLASH has a run-time conflict with CPU bring-up, it will only be available when booting with SMP disabled. Signed-off-by: Geert Uytterhoeven --- Changes compared to RFC: - Use "cfi-flash" compatible value, - Add pin control, - Move to LBSC, - Depends on "[PATCH] ARM: shmobile: r8a7779: Reserve boot area when SMP is enabled". [1] "[PATCH/RFC] ARM: dts: marzen: Add FLASH node" https://lore.kernel.org/r/07cf5e2b466f3ba217403afc66a8246460609e09.1679330105.git.geert+renesas@glider.be/ --- arch/arm/boot/dts/renesas/r8a7779-marzen.dts | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r8a7779-marzen.dts b/arch/arm/boot/dts/renesas/r8a7779-marzen.dts index 9c001cbfc02f79f7..dfc6d63a21cd5474 100644 --- a/arch/arm/boot/dts/renesas/r8a7779-marzen.dts +++ b/arch/arm/boot/dts/renesas/r8a7779-marzen.dts @@ -229,6 +229,35 @@ &extal_clk { }; &lbsc { + flash@0 { + compatible = "cfi-flash"; + reg = <0x0 0x04000000>; + pinctrl-0 = <&flash_pins>; + pinctrl-names = "default"; + bank-width = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "uboot"; + reg = <0x00000000 0x00040000>; + read-only; + }; + partition@40000 { + label = "uboot-env"; + reg = <0x00040000 0x00040000>; + read-only; + }; + partition@80000 { + label = "flash"; + reg = <0x00080000 0x03f80000>; + }; + }; + }; + ethernet@18000000 { compatible = "smsc,lan89218", "smsc,lan9115"; reg = <0x18000000 0x100>; @@ -288,6 +317,11 @@ lbsc { }; }; + flash_pins: flash { + groups = "lbsc_cs0"; + function = "lbsc"; + }; + scif2_pins: scif2 { groups = "scif2_data_c"; function = "scif2";