Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1977662imn; Mon, 1 Aug 2022 06:57:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdF8IkpH0QfCBGgZL3+VEgkS4nKOtNj+LJdOuJwHVKra0Fzn5PKAZWklLL8jtrezXP9BcO X-Received: by 2002:aa7:cac4:0:b0:43b:ddac:aa79 with SMTP id l4-20020aa7cac4000000b0043bddacaa79mr16057635edt.202.1659362265317; Mon, 01 Aug 2022 06:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659362265; cv=none; d=google.com; s=arc-20160816; b=oWmGZJwE9EThIHidothJGLljpFz0WFI87AUcqfTUSlzOOgpBcQEm1SFd8b76CfRK5/ xq0nD+sicAvZ1WVEOext8JpoUvYMsY7tNYXg7Fm/VkXFKyvB0qyzDzMnHHyQJKztZ/Vj IrQLBTr3J9H7zOyRy+pAQpa1loJHkOaD45Qqo2axQqh7R5P+ubyCh5oIZDea5MC7W4zf stCBPpsb1HS1mfWBtfbTHkEUjUHS7lnck8af1OkD6Bzk3VqCankNb7fK4nujB0tFW+wU M3Vt24+1rHpAVUrOuO5+sa/NDo5uJgDrBnUpAAxr87OJhdCx6DkUSKdfZuMpgL3UrTYH S8Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oa9sycEErUOj2Oq3kpiFHxM6XsttM4oiFCIw5P8CBXE=; b=Mrr4Dqf5qrt5hQshK5KSH7VJIkYayaDqbNlwpuC2y0+3aZcKsKcuD4jssQZ4eXoX5r ueP9tRd0ttBjNbcJjIHI2fmSIHj0AzBwP+5aPThC9uAMZzJIXt4sQSN2QnWrvSPPKGal iBybywkrYegpiQZxFfg+SMordSEJs5eHGdwMUfew2ZZ4feU4vDEvzHXs/izFUkSIJoDO LPxUtsSBkYKajoA94FSmdj0/FCh7pba2itvbJosGqQjEO4m0owWWDZDqk1Na5+Z99C9/ jCL6y35ZlVtOqVUnWr3UhJiiDLEXS9OZbFlG+EOEBc0crx+2Q0GdLHe8xbOoMXH+0J6n fLkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=Nu9+dDEj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a170906795400b00730462ddd4fsi5852624ejo.542.2022.08.01.06.57.16; Mon, 01 Aug 2022 06:57:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=Nu9+dDEj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232667AbiHANQm (ORCPT + 99 others); Mon, 1 Aug 2022 09:16:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232428AbiHANQW (ORCPT ); Mon, 1 Aug 2022 09:16:22 -0400 Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085992FFC5; Mon, 1 Aug 2022 06:16:17 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; + }; + }; }; }; -- 2.37.1