From patchwork Thu Aug 31 11:52:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13371461 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 B59C0C83F34 for ; Thu, 31 Aug 2023 11:53:33 +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=Pmpudxbe88bU5vkhsUFC+ejRn+ZoCK4zzwy9bI8+gLg=; b=AjsDcoNpnL2+Yg TQUnO6re2d9J9q4yitJWGeDSYRrhrobsFONyjemN161N593MCUTyMCC6NmiaBHlFQI8Obt99PrhFL /7jnBsmtKiCOBu60IYUNl9235SMo6VcvngjSoMikpbuYlBB2LPE+OwIIPxw5Wfg4VCAyMRH0hGvTk MnmJCcCBKhO3954sEn13oq3lbc1IJtlWAfTrLeWc29cqX/ZrCxohuZqZ2sk6UdkkvmDLtYsqM5E3x ZQYVsEs9mrrJFhEWc5Wxy2ubsdoAB+dK/NfN1RY1g3DdX5JEVd3BIY2olSn3PfQEs6sA+8QKGsa44 4jdT/sHEOfJBnu60wwiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qbgET-00FEID-2g; Thu, 31 Aug 2023 11:53:05 +0000 Received: from laurent.telenet-ops.be ([2a02:1800:110:4::f00:19]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qbgE8-00FE7M-1w for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2023 11:52:47 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:6c13:6b1b:7366:87c0]) by laurent.telenet-ops.be with bizsmtp id gBsf2A0023874jb01Bsfvy; 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-00274z-Cg; Thu, 31 Aug 2023 13:52:38 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qbgE2-00CIVJ-SJ; 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 11/13] ARM: dts: renesas: rskrza1: Add FLASH nodes Date: Thu, 31 Aug 2023 13:52:33 +0200 Message-Id: <17a221699da14639e72264ffa39d47592d470f9a.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_045244_828950_F86F9C60 X-CRM114-Status: GOOD ( 10.35 ) 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 device nodes for the Spansion S29GL512S NOR FLASH and the dual Spansion S25FL512S QSPI NOR FLASH on the RSK+RZA1 development board. The former resides in the external address space of the Bus State Controller (BSC). The latter is mapped directly through the SPI Multi I/O Bus Controller. Signed-off-by: Geert Uytterhoeven --- .../arm/boot/dts/renesas/r7s72100-rskrza1.dts | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts b/arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts index e95b820e401663eb..f3233290041d0b52 100644 --- a/arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts +++ b/arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts @@ -29,6 +29,48 @@ memory@8000000 { reg = <0x08000000 0x02000000>; }; + flash@18000000 { + compatible = "mtd-rom"; + reg = <0x18000000 0x08000000>; + clocks = <&mstp9_clks R7S72100_CLK_SPIBSC0>; + power-domains = <&cpg_clocks>; + bank-width = <4>; + device-width = <1>; + #address-cells = <1>; + #size-cells = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "uboot"; + reg = <0x00000000 0x00080000>; + }; + + partition@80000 { + label = "uboot-env"; + reg = <0x00080000 0x00040000>; + }; + + partition@c0000 { + label = "dt"; + reg = <0x000c0000 0x00040000>; + }; + + partition@100000 { + label = "kernel"; + reg = <0x00100000 0x00280000>; + }; + + partition@400000 { + label = "rootfs"; + reg = <0x00400000 0x01c00000>; + }; + }; + }; + keyboard { compatible = "gpio-keys"; @@ -113,6 +155,30 @@ eeprom@50 { }; }; +&bsc { + flash@0 { + compatible = "cfi-flash"; + reg = <0x00000000 0x4000000>; + bank-width = <2>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "apps"; + reg = <0x00000000 0x01000000>; + }; + + partition@1000000 { + label = "data"; + reg = <0x01000000 0x03000000>; + }; + }; + }; +}; + &usb_x1_clk { clock-frequency = <48000000>; };