From patchwork Mon Aug 22 08:03:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frieder Schrempf X-Patchwork-Id: 12950308 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 F2202C28D13 for ; Mon, 22 Aug 2022 08:16:28 +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=PUSp5/Zrsz16kzJVDU5YO1oXp7z4Ov/dQ8Qu+7Wu5r0=; b=a2lqWIlqbl10/I fdbVfGrUe33daR/AGzczjWBA4Udvkryn3ZYmh0QUpzEJzK7YIlC2gS6NxfZ0CvRMUvZxQaEbUaU2E eklgDx1F0FGtqTeS1GZqv/9Y1zMKbgksYjSGqXeyTE1uyW0DaBq4+nFGYZsI2pM1qBkkhpTPHxY1K emxQr7HC0/t/bnQCY/MAcUPAQK4tOdZGIdzWsbJ8yLseXEZPMTR8yT35YFH0bHBGbLVRf7kqS64fL DvusyHnWhMWfSS1iCyq2Q3BA20Li86hK0TBUf+KtbXjoyK/3hBgNx6lwVvBQ9Yfd9JB2lgn1/1uEs 5u0rD3e6+W2Ybp8gXshA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ2Zz-006Lt4-3t; Mon, 22 Aug 2022 08:14:40 +0000 Received: from mail.fris.de ([116.203.77.234]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ2QC-006FY1-Th for linux-arm-kernel@lists.infradead.org; Mon, 22 Aug 2022 08:04:44 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9B52DBFAFA; Mon, 22 Aug 2022 10:04:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1661155471; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=iTStzuxb5vRL6ZAuMTKwjwGjFUfAcj6/+ysC/Cth/CI=; b=YzOWY4b1PrU+6G0J0ECYAmCZqHdNrCtzKT0Aw1+PbW6VLT0m8AUEBOKSu/4LFCcxzseIa9 KU7DnhUfK+Ulq8zTYATw8cxnX1l2ZX2s4UToWaclzuEJ31fTP8OP2YkrtED8M1CI2JN9Px HNk1Pv2S3LQUS1h9HnqKt+C5HrAUHARSv8Xbwxu1ZJfDZazrrCYZD7HX8dAlW3ZybJCTye ynPJIdpmUsxubekWUkgt8St0GEGn3kpcVPTj2CE1YEjQvyh3E2GIsuwALtFY62mABekMCV m7f/hKx5YTqNY6BNZH9tMGhhu24arPWNKHTtRgSnoMuw8huTvwgUQLVxSNUoyw== 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: Krzysztof Kozlowski , Frieder Schrempf , Fabio Estevam , Heiko Thiery , NXP Linux Team , Pengutronix Kernel Team Subject: [PATCH v4 7/8] arm64: dts: imx8mm-kontron: Add SPI NOR partition layout Date: Mon, 22 Aug 2022 10:03:53 +0200 Message-Id: <20220822080357.24478-8-frieder@fris.de> In-Reply-To: <20220822080357.24478-1-frieder@fris.de> References: <20220822080357.24478-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-20220822_010435_057866_4F08241B X-CRM114-Status: UNSURE ( 9.00 ) 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 v4: * fix hex values in reg to be lowercase * fix unit addresses to match reg Changes in v3: * rebase on v6.0-rc1 Changes in v2: * new patch --- .../boot/dts/freescale/imx8mm-kontron-sl.dtsi | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-kontron-sl.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-kontron-sl.dtsi index ce9c27619e26..0679728d2489 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-kontron-sl.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-kontron-sl.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@1e0000 { + label = "env"; + reg = <0x1e0000 0x10000>; + }; + + partition@1f0000 { + label = "env_redundant"; + reg = <0x1f0000 0x10000>; + }; + }; }; };