From patchwork Mon Aug 1 13:15:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12933769 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 7FE30C00144 for ; Mon, 1 Aug 2022 13:18:18 +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=IvGKTubixo/C+eBUMKdieVfv+9kPriPIXpo2S4s4VzU=; b=MJD+d/gW0+rtKX clMW20Jrccz/9gw0zaPqKR6MMjjBbzQOFBpTXqU01KN4CDvcAPyTtT0mURhwQu1Twp2GyY1dm+Op6 V8z9laQNooK7yfyNkgKmEgzpESnpGyKpJNpTWA8FPwYClnsBhybe+7cL3IctEHzmQ9/QHSH8SZQ+Z ffJBcG3n/ja1/deGptMMYKrKXhVE8bhzd9C6a+Njf9GP3aERI5vAn7MXshoK3YO67mNJsbda1fHjH 5eSNo0+A+quJx3lPZcQf2LlKxpX1YZoqoprqx6GQMLHAbz4CwdeqnohdshULsoAdJtKdxK5QbA1AL yFDJIWgzZtvzgbuVly2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIVIB-006bAd-Pi; Mon, 01 Aug 2022 13:17:08 +0000 Received: from mail.fris.de ([2a01:4f8:c2c:390b::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oIVHN-006akZ-QB for linux-arm-kernel@lists.infradead.org; Mon, 01 Aug 2022 13:16:19 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6800CC01CB; Mon, 1 Aug 2022 15:16:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1659359773; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=oa9sycEErUOj2Oq3kpiFHxM6XsttM4oiFCIw5P8CBXE=; b=Nu9+dDEj0erdR9PyNkcR7Lyrp/6Pc4rqngUdwrFEL3CH0dBOZfzCyaDdtLEy7K928YqPs5 JAia4T5t+89crAwuVkgzhVPZCDOTczaSFFOiJZIh7hvc3DDMbY5Tmk9WJ8/NiN4sgDL45C ykyW5cYngwVo14OGrnK7saVn46TIiiH0Red+4WxZW0Ke38m41NiU7zsAM5IloBDkXnARLZ WaSaSW0dlu4juoRK2j1u21SPzYoIJBlS0IhWO9UQmnj80ZznkFeWrYoQ9R89MDutXa1Ic0 M5kITVGYwfLvOk1SK66mT9nhwRHMEYJIDF+Tgp4jHaIDpzAAhgn7ilHh2OZHjQ== From: Frieder Schrempf To: devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Sascha Hauer , Shawn Guo Cc: Fabio Estevam , Frieder Schrempf , Heiko Thiery , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH v2 7/8] arm64: dts: imx8mm-kontron: Add SPI NOR partition layout Date: Mon, 1 Aug 2022 15:15:51 +0200 Message-Id: <20220801131554.116795-8-frieder@fris.de> In-Reply-To: <20220801131554.116795-1-frieder@fris.de> References: <20220801131554.116795-1-frieder@fris.de> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220801_061618_136075_EC488A78 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. 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 From: Frieder Schrempf This is the layout used by the bootloader. Add it to the kernel devicetree to make the same layout available in Linux and have the devicetrees synced. Signed-off-by: Frieder Schrempf --- Changes in v2: * new patch --- .../freescale/imx8mm-kontron-n801x-som.dtsi | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi index c995592981c2..bb87e8b166bf 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-n801x-som.dtsi @@ -66,6 +66,27 @@ flash@0 { compatible = "mxicy,mx25r1635f", "jedec,spi-nor"; spi-max-frequency = <80000000>; reg = <0>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x1E0000>; + }; + + partition@1 { + label = "env"; + reg = <0x1E0000 0x10000>; + }; + + partition@2 { + label = "env_redundant"; + reg = <0x1F0000 0x10000>; + }; + }; }; };