Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2064719rwa; Mon, 22 Aug 2022 01:08:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR5ATd8KwFtDYacrqoaD/N6JR35Y1BQEKFgm3dXIRR6WjF76/rnuCvzgArwYbh6dVRTa02eb X-Received: by 2002:aa7:dc0d:0:b0:443:e1ca:bdb1 with SMTP id b13-20020aa7dc0d000000b00443e1cabdb1mr15192348edu.62.1661155710603; Mon, 22 Aug 2022 01:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661155710; cv=none; d=google.com; s=arc-20160816; b=EoULr0kHsUHxqdTVOSyihqC85ufXzQios0jduqw+t2u9yeINBNhn1h2SEqYdmlZYhq Pu2UKoGIP/lT+TBAOBARlhEuA4okjSnElnVSbyFJjW0qV+CVRT8cGejddWerFxYEOkdg 1y1NQMpVxZUOyud8CNSRFFk8v9L20uGNhlklmzWSb8pCldPkBlVk0Zuo7refP2rWHtWV tKIKmGJNbFagHMxv2ZX6gaVtr+Tt3L6/MEmqn/KPYhm7/hVjadLt5RGK0TIyRRteZcM5 araO7v9z4NkpdS5oSw5OlDnqnZTuDSCGg0Wh/dvzE418LuDkCCQz+3WWkjooohcnaJrc KfLw== 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=iTStzuxb5vRL6ZAuMTKwjwGjFUfAcj6/+ysC/Cth/CI=; b=amuFn8eUeKKJiydYUKoyXJqNyjaY6acIa5sU4UONjuN8FzxCfc2Egf0meWCsgNvJ7L ORW9Bip2sOkWEyKnbvk/mAC4vNXngdyWCgqtoVDeDmyueAk0kxZn7riPwyCm63x9TCSA OIGfyfZMGG0x2+ERygaXN/740eGJVCsHsAnPb0UuwTI2VREqt7fsCqK1jypjtPKmIeu/ Mp40TD7UxcFsbfVpw4SV3fZFY01/Ggtz+NKFqD8nu/YTYcJuiki9UycKUZVERYzlHJ7s lKAnAEO6s/R7IUziPbyUZvnxnyVcRitYXkTPFZT5eB82upBZoNMK7v0fwLjl0QiSVKKU 05yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=YzOWY4b1; 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 go40-20020a1709070da800b0073314be476csi9096127ejc.525.2022.08.22.01.08.04; Mon, 22 Aug 2022 01:08:30 -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=YzOWY4b1; 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 S233710AbiHVIFy (ORCPT + 99 others); Mon, 22 Aug 2022 04:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233677AbiHVIE6 (ORCPT ); Mon, 22 Aug 2022 04:04:58 -0400 Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCD20300; Mon, 22 Aug 2022 01:04:32 -0700 (PDT) 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 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, T_SCC_BODY_TEXT_LINE 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 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>; + }; + }; }; }; -- 2.37.2