From patchwork Tue Aug 27 15:10:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 13779659 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 E4C05C54731 for ; Tue, 27 Aug 2024 15:12:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=3WZUiJ+S1tJ3Av97erWGdxb+OR4BtI+I9p0lNeSdlV4=; b=l1mBuTKBqJn9kqppGCa1bA1och U1JtCSXrtDbN+fj47kZUYUBKSQpcbL6Hw22q2N+gh3HvqhZOFnkYtJvrDoIIJogIOYAUwwoHOu16e G/VMXrS2/GCUUSkFV4ZxdZ2zJNz4zjuTk5y3R+NQwDtZaGHYVwsIbfVitfUCEijFLR6Rz3nfmK4MP UWOLYQL0xLte8skcJcMUyfVUZMxNLdXSp2+dHf5QJvD0dOfQxFRmIwHwTPLiaky+EkGfTxfFwTXVf 9XyzxhSOTn0nj2Jr69a8BFCUw7X8YfYlrnoPpigap4Qhs9yKcep7POZeT2KXgiqvWpwultO9CHWV7 LrYRvf1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sixrR-0000000BoiV-3nTR; Tue, 27 Aug 2024 15:11:57 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sixqb-0000000BoVi-1CLG for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 15:11:08 +0000 Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 309FD87F5C; Tue, 27 Aug 2024 17:11:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1724771462; bh=3WZUiJ+S1tJ3Av97erWGdxb+OR4BtI+I9p0lNeSdlV4=; h=From:To:Cc:Subject:Date:From; b=EoEv3bOvf3C940mtrhICVIynLhMsZGdDbDkSGOwlcZgMZ+J9rEDTLH8eW9BDNStTs iX3bsPt/V7q+0mwGxwPct/FZ8/aKv9FVXGXynYxi29YcOWav9ZYtpeqjAU3/k/Gzrn E6J4q1ChVa6L8zbYv0my9U5GwSUxku5TKpRCPFkYlktmj6H1j3XheZDXGi3m4tz9N5 inH55G9kXIiFUMLPTVRdx4UOD1kYs4E39GbUMMrKx7HuRuOc9xhflHegJrUSNyEbO/ SuzkZS31ZhiKaPYIMVGeQwbs/QYDxkL3xmGY7FQvXquFLBrkoyz7YWVGcWJ0Cp2Dy4 ShBN6I+2ojk4w== From: Lukasz Majewski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer Cc: Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lukasz Majewski Subject: [PATCH v2] dts: nxp: mxs: Fix partitions definitions and remove saif (imx28-lwe.dtsi) Date: Tue, 27 Aug 2024 17:10:42 +0200 Message-Id: <20240827151042.2254651-1-lukma@denx.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_081105_500402_BCD9229C X-CRM114-Status: GOOD ( 10.71 ) 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 The SPI-NOR memory layout has evolved during time lifetime of the device - for example special partitions to keep track of booted devices for A/B booting scheme were added. Additionally the saifX nodes are specific to other group of the imx287 based devices, so needs to be moved to different devices description. Signed-off-by: Lukasz Majewski --- Changes for v2: - Add more descriptive commit message - Replace e.g. partition@4 with partition@fe0000 - Use lower case letters for HEX offsets descriptions --- arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi | 38 +++++++++--------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi index 69fcb0dde940..410dfe17f8ca 100644 --- a/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi +++ b/arch/arm/boot/dts/nxp/mxs/imx28-lwe.dtsi @@ -55,23 +55,6 @@ &i2c0 { status = "okay"; }; -&saif0 { - pinctrl-names = "default"; - pinctrl-0 = <&saif0_pins_a>; - #sound-dai-cells = <0>; - assigned-clocks = <&clks 53>; - assigned-clock-rates = <12000000>; - status = "okay"; -}; - -&saif1 { - pinctrl-names = "default"; - pinctrl-0 = <&saif1_pins_a>; - fsl,saif-master = <&saif0>; - #sound-dai-cells = <0>; - status = "okay"; -}; - &spi3_pins_a { fsl,pinmux-ids = < MX28_PAD_AUART2_RX__SSP3_D4 @@ -109,7 +92,7 @@ &ssp3 { flash@0 { compatible = "jedec,spi-nor"; - spi-max-frequency = <40000000>; + spi-max-frequency = <20000000>; reg = <0>; partitions { @@ -133,14 +116,21 @@ partition@90000 { reg = <0x90000 0x10000>; }; - partition@100000 { - label = "kernel"; - reg = <0x100000 0x400000>; + partition@a0000 { + label = "rescue"; + reg = <0xa0000 0xf40000>; + }; + + partition@fe0000 { + /* 1st sector for SPL boot img source data */ + label = "spl-boot-data1"; + reg = <0xfe0000 0x10000>; }; - partition@500000 { - label = "swupdate"; - reg = <0x500000 0x800000>; + partition@ff0000 { + /* 2nd sector for SPL boot img source data */ + label = "spl-boot-data2"; + reg = <0xff0000 0x10000>; }; }; };