From patchwork Tue Apr 23 11:31:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13639903 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 8AB5BC10F15 for ; Tue, 23 Apr 2024 11:32:27 +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=t1ql0W/AVxWjOub6oCIIZuECBA4nTfN5zbn6Led+D+E=; b=3K2AFkgHsZr2eE 1q7KRcLyBBSiiMmAgONUwOhJ/m91GIJS63RBsj5x7PAAXbThnJkN1VyXRn111lWKv+SjYB58YSuD2 ahfDo5reYzDiS3pGcOpRXo4tZWgiyOD4fA7w6tG0ZYmGTfT3Ptg4Fi7cXaZ8dPsuHSlz2yop+p6A+ NqIed+wPbGLSzmuK01RQBYC5QY2D/+QxFTUR1EAO3nUTrrwG52H4jhPxGB4JBZQrsXAXIPy7JxbUo x15cwtpqgKDfOdWkZwwa4rFyz/gG/vjxz8EIkd8Rbz/EjYM0eADRS5rfTrz5WIRHJlMUhR4kqyUpq I6zgV9/kFoC5/Cbz5tXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENg-0000000H6wp-175I; Tue, 23 Apr 2024 11:32:12 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENc-0000000H6vC-4BmX for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 11:32:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871929; x=1745407929; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wofwYl3aLeJL4MtGjQakxRMPKOMFpPo928i/DlFFhz4=; b=P8Jw9JeFOWpE+MtEcTz5oujaSJt/XK+rueMlUAsze3dYhf5l2cf1oE8J JVH+OxBFv2yjEj6cUZBpsilrqCPeQQ4BSAw2cfjZ00auv9yq3GuMUyybG EUppA29GhIP+Ty94oATPaUw7Ka8LKp9m8NfcyovfAYNe22viEzGw/NOA0 Wq/W3NmhnOofbTzeR9jAlAUvrnGkoN881FoPjXVObaSDFPAKbSn4jXYI/ TiWE8//JfrAZTTzwNRBtizWVeNSCIY+5PpNkmVODKLYYbaaFrpbjsUbl9 GmzzDif2xACFgDvx5hDQJJuyo/8CUTMvCJurr27214YUfDYCzcK4rOdwT A==; X-IronPort-AV: E=Sophos;i="6.07,222,1708383600"; d="scan'208";a="36565268" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 23 Apr 2024 13:32:05 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id D6625170860; Tue, 23 Apr 2024 13:31:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1713871921; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=wofwYl3aLeJL4MtGjQakxRMPKOMFpPo928i/DlFFhz4=; b=poKuUsrc+vn61XYDxhlFXS5YMQGSZr+rfRDdko1Alu+5GLUVKeKYaMEaQkz/13VAzCA753 usN3p5ZlQA2/kcc+eEIqbFNLlb7YUHEnC+LK6vsGK3tvnTpT10GH4qE5x4n+/bO8gKZk5D 8DbDN/Q7c7zELNcYwKEBfsDXXMmINdo89EBgx3/t7krjCAU5VgVuLrAp/MmMe3lgaxTaVn gt0Rz9d6IDrrCYFUngmBtGAMrGG6277Vaj63TESCKLrtmOBNS6pE4ZHUqNXtfSWxOC053U mqmkWMI0s5J0gyhOYmmfJiL6vo8geIAxM5Olu3KMQUaNErU0eMYSm7AEEyhOGQ== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] arm64: dts: freescale: tqma9352: Add partitions subnode to spi-nor Date: Tue, 23 Apr 2024 13:31:46 +0200 Message-Id: <20240423113151.2145120-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> References: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> 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-20240423_043209_606403_61D09820 X-CRM114-Status: UNSURE ( 8.38 ) 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 The bootloader adds MTD partitions in this subnode if present, or in the spi-nor node itself otherwise. Direct children cause warnings like: 425e0000.spi: ofpart partition /soc@0/bus@42000000/spi@425e0000/flash@0/ partition@600000 (/soc@0/bus@42000000/spi@425e0000/flash@0) #size-cells is wrongly set to <0>, assuming <1> for parsing partitions. This is due flexspi node having #size-cells = <0>. Setting #size-cells in MTD nodes itself is deprecated by mtd.yaml. Fix all this by adding an empty partitions node which the bootloader will fill with configured MTD partitions. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi b/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi index 9d2328c185c90..edbd8cad35bca 100644 --- a/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352.dtsi @@ -75,6 +75,12 @@ flash0: flash@0 { spi-max-frequency = <62000000>; spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + }; }; }; From patchwork Tue Apr 23 11:31:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13639904 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 5DEFAC10F15 for ; Tue, 23 Apr 2024 11:32:36 +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=aPaL0wTGl8BpnSAhc61dzJ1FwHkeuOpD1I3ffy1ghdI=; b=3Xh1mBmVXvrAEs zK4nqQAN0G/0xyzuyK/AGSgaxXpcZxHMyUdQkIFc37t1TyZnWwplqNcJDGXs2/62D0ezzlbCkr67M tLP/qRYwiGCTJv9UllivK+OyGxrgtlZ/4AeBGlArhusNCYoGPDZTACL10A5+p+9Fmv6tW1LQ1h2IL DdJlgdk5VUXo4JorvGyEADWESkhknWTTxpGb78Lto5WMGj6Ss38kmUlXojC861opptVf+qPVO8ouN GxuHKK+xYzSwY7ozgyDUJ1+rBH7Hf4AOnB1bz0l2Z7pPcvWt4L2NwEp11a6wbbOzDUQs3TEf3kJGW 8eI9hf3dxICVNftZhGxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENs-0000000H72M-1U08; Tue, 23 Apr 2024 11:32:24 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENf-0000000H6vC-26jq for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 11:32:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871931; x=1745407931; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=snX5lHY+6h5NMtxReHQmGgvtWgJjZ/5Cp+LMYtyS3Do=; b=XfckXm+b1nKwA/V5InOLzocqMcEQvy8jTuh2Wy1Vuvegb094frhEeftG fkbksWjtiywOjju/n7hHVZv51uRV9riNEMUzm+AYiczAeRze9ZdSUGdKN 683tL8GuGVTA97khJeznBH5EcAgmUkOaA/7gAMHfHsoRaA6ee1OsH3/Pj 9xnfyhRGJW9lJ7MLZ6ajuND3AQxmoB8WAZN+rpycr3RBGFquIWqwHJTB+ 6BYDb3kU+HEevzpg5FpYxP6ILA+jCJajam0J/Qz7j3d8BVSecJBhhSLWa fC8X6ldK2AhpesdSk6Fap2bukmeqZe1YSfaEz0uo2zdj/lXlKhBGwtS4z Q==; X-IronPort-AV: E=Sophos;i="6.07,222,1708383600"; d="scan'208";a="36565272" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 23 Apr 2024 13:32:11 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2588416FAE8; Tue, 23 Apr 2024 13:32:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1713871926; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=snX5lHY+6h5NMtxReHQmGgvtWgJjZ/5Cp+LMYtyS3Do=; b=KriSuQqY7DKVcSU613RwUXc74k/09NQ3qauZE1DhgeTTAtwFhkTbpsF9S/MlfSqH7wcwGe TZ1Adp8wGYS3vvFiNaMef/UFdU5pUe8TfM3g+NML1DTk2ZJTo5W1K+fdLuR5jDLqQPwI4k MFo5uIaylX7wP4JYj+pknJ+CWuAO3NYKLFFU6nDLtH6fFHtNzsnn7Fo+VtJiMQYJ+PneEC 2Wi5vZKUwG7aJdh6++mst/a123OKXJBZt1APUHI2W/OI493tXIL2J35w81R/2kVlCio5wI ihFgcPVetrmpEt5R09R0vkTAGzYWBbDioiQYEHxQWWZlrYzs35JMRP5E9FCioQ== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] arm64: dts: freescale: tqma8mqml: Add partitions subnode to spi-nor Date: Tue, 23 Apr 2024 13:31:47 +0200 Message-Id: <20240423113151.2145120-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> References: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> 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-20240423_043212_346098_6C1B6C24 X-CRM114-Status: UNSURE ( 9.41 ) 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 The bootloader adds MTD partitions in this subnode if present, or in the spi-nor node itself otherwise. Setting #size-cells in MTD nodes itself is deprecated by mtd.yaml. Fix all this by adding an empty partitions node which the bootloader will fill with configured MTD partitions. Remove the deprecated properties as well. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi index 8c0c6e7159247..ca0205b9019e6 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi @@ -62,11 +62,15 @@ &flexspi { flash0: flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - #address-cells = <1>; - #size-cells = <1>; spi-max-frequency = <84000000>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + }; }; }; From patchwork Tue Apr 23 11:31:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13639905 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 0F400C4345F for ; Tue, 23 Apr 2024 11:32:37 +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=tiD9JwhdEbXRRiIxbYLGZ6PtQ5BweWQUDmonXSFc0vo=; b=IlySEYsdMA8aJD SF9mezdTMO/qgQk54bhZ/wzG1wZ6aTI6wvm5SK7N5Wxbr44Bk3y/Ks2nIIoTMm/+9uC1HoFM++usu HjzQhCXg95pKxv5iPHJuwmBshDOkhYRi/6mUpiJ9fPkn2VSa0RilfK8h698IpKMBbhhs8rfvQoFUf T7WPNf0DJFEN1WeZ2EZ49Vr2ODazc7rCyeP2ArR45ImKNgp+BWB//iFd/EBo7CGVR1J7bCAnqjYkt 53SbBjD9h4Ox+zVq7Ljl+YSzrrXCGDOyv6QWUfi5zxt3MwkpVneti5Ag6TWT2i3d8osROIUOsvcv+ zRac4WEE7Y+I6I+mou5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENt-0000000H73F-192X; Tue, 23 Apr 2024 11:32:25 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENl-0000000H6vC-2GZw for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 11:32:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871937; x=1745407937; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QdSi3c2hCk307uljy0iamJEo2vwFvN1F0/IRX/AWjy0=; b=m2eX+JXVD3QbtpXFUiEtmSJGPOsdj+JIxjjhsxPcjnX8KQ1TqdZVZYmy TAHwmtCPor85rOpBc8SbnpTDjlBGVoqJB/BbKzFo9hnmmYj7GUt+8vpXn J5aDYS3cPjWwgUlDsWY4Mk5Hj6c02N2JTE6M7v0Qw9QCIYiTAQD7d9jS3 oYvU62hslfRHQ9az6jSpvk9Lx35lBxmoY/oYnOjy813MZqCUDNiGSfVcI hTiCSYk+FjOhO2AbGLrDpu6y35BapsPH3b2S19uSfiw+I0Hl6L2Y19TwL rsExfngBWJxJd9LVgOZ8sPwnuLTMU0lXh2RLasjhanRHpdCx8XmlmUG/Q g==; X-IronPort-AV: E=Sophos;i="6.07,222,1708383600"; d="scan'208";a="36565274" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 23 Apr 2024 13:32:16 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3C00616FD61; Tue, 23 Apr 2024 13:32:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1713871932; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=QdSi3c2hCk307uljy0iamJEo2vwFvN1F0/IRX/AWjy0=; b=ohKajoupL97ZlAnUNCkDo1O1Gqxt1a912/azd5+H3nqxfqBdZfRpwpJ1Ai8KGgCheApi6T Bc1C/Pz6bmsFpNRGim3LflGUA0cdmVrFQCLDBV4OvCcbcRTvJBOfqWijOs1Mhk0SeXVLoD PtxYuu6T61zPaknB7ibMQkZ9GwwZqZ2tfmoHLmXmpneaaT+1PgWk7UJqtbIqBJkpoU7o7k EHWrSENH2w/lZ+oN0vXEV4kIId8Wn/pJTCYCt3Rn/znozqoDWDbCfH+bH42y623u7dW3SG hOFNUbgLPILb6JwKQUfc2sRcceQ7yVgsNRM0dYb/9syUUGix0hmseoAeqUVuBw== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] arm64: dts: freescale: tqma8mqnl: Add partitions subnode to spi-nor Date: Tue, 23 Apr 2024 13:31:48 +0200 Message-Id: <20240423113151.2145120-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> References: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> 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-20240423_043217_968780_9D84910F X-CRM114-Status: UNSURE ( 9.41 ) 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 The bootloader adds MTD partitions in this subnode if present, or in the spi-nor node itself otherwise. Setting #size-cells in MTD nodes itself is deprecated by mtd.yaml. Fix all this by adding an empty partitions node which the bootloader will fill with configured MTD partitions. Remove the deprecated properties as well. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi index fb24b9aa1b938..e68a3fd73e17d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-tqma8mqnl.dtsi @@ -60,11 +60,15 @@ &flexspi { flash0: flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - #address-cells = <1>; - #size-cells = <1>; spi-max-frequency = <84000000>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + }; }; }; From patchwork Tue Apr 23 11:31:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13639907 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 1AAF8C4345F for ; Tue, 23 Apr 2024 11:33:01 +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=ZEkE21YikQp+EA/a6RR/VstXMdTV4jxtIlUl/yPOG/I=; b=45sNjex849ZGyT 5b1hwkeGvWGsQeAtzmuy2k/FZ8Z8PBnY/s1DHh/0EPwF63MUEBoE0uUCenNJ4e3pbBiscyhxyAm9p tslJ7GgRjfzsOKeNvgt+dGSPwinfE/D4jv5ia6VAjCJRdkNu7QP5fHm1H0/wyButUWNRWLTzqFQTI SjF9oH6+xdLO8+lbFOWfI4bs7BK0nBoMjv+K2MCe2NTR63yqmOmEAPm6tl+tyUMJAzF/fEyR1KqAz XKpK4foqUEzeNuU/Ihy5OSWKNHoqqPl2enB/brapKCgCNEzkIqBdnonnKQAj36PXTraL8vuvGI5RU Hmq7l4Fi1lWm9w4PcRFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzEOE-0000000H7FR-3l80; Tue, 23 Apr 2024 11:32:46 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENr-0000000H6vC-0ban for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 11:32:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871943; x=1745407943; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IHGaWNydXvipFKi2uOhyOlxIuJUsH0uNjrD85MUH+mY=; b=XShhd4kkrCLfwkYIIxpQwEm0EMSrp3prwzZATc6kzCqR9oFmyXqvkIiV xenkx+1DmH/DJVtSSagSs6CIrbLVK3YKZWoQAMDDPB3iEPr5ph5FSoR0l aysvRsr7Zs7xSqUgNc8nK/JpX8Oz0ufxFaZTzR/LkLSK0i0k3DKfOIvYW 1oq0BcU/wA7HMgaFA6QMlYM5Ej4n6xpI+3q0iIBM7yxI+YX2KkJ/FnofI IKWgVOoMhiLULhv04z6Laq7x8lJmPb59/0fWrL8euHGQA5IAuTdvFCVQj ZkMpVsiCjcCTR0rF0ArSYZir0JMrxnf3H9tuPIp0XVkFvmmn8XIe88wL2 g==; X-IronPort-AV: E=Sophos;i="6.07,222,1708383600"; d="scan'208";a="36565278" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 23 Apr 2024 13:32:22 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id BFC0416F693; Tue, 23 Apr 2024 13:32:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1713871938; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=IHGaWNydXvipFKi2uOhyOlxIuJUsH0uNjrD85MUH+mY=; b=a/+pDAvLD4loevnWfiYm9xbOo+biD3JPBluf3IQVRNppTTUJbhYOWpEJ48rCcmS4Y+HfHg 2Cy6ANh2lW8Ba1yFWjk5QOfNvcdqi8KyVJP3VWcavuiGumDcR8ho63b8zsOq0R6FiluPse 64QwviCByZRLZCeXmA9+GSgg2bN2nIRneXR8c5aukEND4ILm7fYABTwycynwfxE77CygZG Y3Gh+YgoHI9wK+OKozwwbTKgaS6+NvK0hEnOE3TJzSjWY99DWbGMN9cR0cb/UxJn8SbF/7 fkQXuwlxWYMdCZu4OetYMVXbJ7M63j/6iyYa5/qXG/ThvPZcciUE0QhddwB5MA== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: freescale: tqma8mpql: Add partitions subnode to spi-nor Date: Tue, 23 Apr 2024 13:31:49 +0200 Message-Id: <20240423113151.2145120-5-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> References: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> 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-20240423_043223_524117_90DC48B2 X-CRM114-Status: UNSURE ( 9.44 ) 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 The bootloader adds MTD partitions in this subnode if present, or in the spi-nor node itself otherwise. Setting #size-cells in MTD nodes itself is deprecated by mtd.yaml. Fix all this by adding an empty partitions node which the bootloader will fill with configured MTD partitions. Remove the deprecated properties as well. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi index ebc29a950ba9a..336785a9fba89 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql.dtsi @@ -45,12 +45,16 @@ &flexspi { flash0: flash@0 { reg = <0>; - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; spi-max-frequency = <80000000>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + }; }; }; From patchwork Tue Apr 23 11:31:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13639906 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 C0874C4345F for ; Tue, 23 Apr 2024 11:32:58 +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=ahFJxgCnEWacWWpyw1O1aF5RTFvfsmjOjB50MISlpsU=; b=CAvaYvTOx0Sooi x7T0bH8bI0UemwAu+dIoJ3GPRVux2R3ITF3d6xAukoTtESkxJ8khYOFeRh6U/iAzXNXDYNbvdW6IA QAt8cw5S2ApjCuyJc1DjIswXOLd/FGhC8tdKhSURc2eCwEJOrq5LvIZit356COLkk6S2lKCnthqsD VlQGpox/mOEM3Gdah48JTQlDrcZkXz1+nZrVNt7lzoNvBjN2xcTCuXHLrC7p8YLCE62nYnYU23Lho y3W9mG8O3c47kaMkFg8OXyMIOK7UZA4lX9IbOQqg+DvoPsnBc7+GfY7Szb5DNDeRHAppbSBKkmuJs TnNlMgRMG0KTDDt1QWFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzEOG-0000000H7Ga-1xUs; Tue, 23 Apr 2024 11:32:48 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzENw-0000000H6vC-3SxI for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 11:32:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871948; x=1745407948; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iu1dWYNKDp9es51AFvUQfiaCrk+4XgYnKK2u7hGngWI=; b=nWJQgNTLdoqOXNPFASR7E4GZxH5/XUnWqnMPmlinMtwO9lrAR8hMHdgu mDmFUqkU7X4k7w16IMX1MbEatwvAbR7SInmhWZIleKhkWtXrQbm3dkc/t yL9J0WmuXQknZ2Mm+BUYBqIiirD7RWaV/ytAGo0z1wrWNVVichtkjbuSZ la/83IDB3lVlk4wUVFPVuoyht+tW6GEHxMdS9hndNIlA0SIZB+PfXkWla K4FkqeDo0Ev9vvgJMyl+OIKUPNUyIx8rNlLRm/XyFgbmtD1o9fqqdebBT BFK6a/LyK5ucR9GsxUe6XKKyrGTQTVnJXyk8BzY7HIDFC/SIchQuPWlYI w==; X-IronPort-AV: E=Sophos;i="6.07,222,1708383600"; d="scan'208";a="36565285" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 23 Apr 2024 13:32:28 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 17F9A1702F4; Tue, 23 Apr 2024 13:32:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1713871944; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=iu1dWYNKDp9es51AFvUQfiaCrk+4XgYnKK2u7hGngWI=; b=rAugLcGHgiuz1Oyvl6KBwdn5BzeB5gtuK3wRKTe3q/S6eOlw8WCj2ZMN10oqBmqqv22yOO /+FtnEkC7DreL7u50alA2g5FHbDfPG3lfQqEIZRLf/4+AT1n/zuPSFbkpY4sgrIRJbHviZ QIWEgbhf289G9ydfkvTvQhqi0r1VptQBBrbaG7olMDe9v49yYGGKqbC4sGGA0WMKMlAxNX CTPsLHaq/fUWZo+Y1MSYaSkRKM6c8YM8HLXKLfYIkfKpg1K6BMmxiB8fDo01RZ2jP7o5ps y5eH6WFEgRBQXkOZBys3gaUmW8o2WAPqYHGpc4fLTB2/VQL7U04c3lBJKQJC5g== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Alexander Stein , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: freescale: tqma8mq: Add partitions subnode to spi-nor Date: Tue, 23 Apr 2024 13:31:50 +0200 Message-Id: <20240423113151.2145120-6-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> References: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> 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-20240423_043229_225226_6718D698 X-CRM114-Status: UNSURE ( 9.41 ) 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 The bootloader adds MTD partitions in this subnode if present, or in the spi-nor node itself otherwise. Setting #size-cells in MTD nodes itself is deprecated by mtd.yaml. Fix all this by adding an empty partitions node which the bootloader will fill with configured MTD partitions. Remove the deprecated properties as well. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi index 5ca6b22525469..01e5092e4c40a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi @@ -251,11 +251,15 @@ &qspi0 { flash0: flash@0 { compatible = "jedec,spi-nor"; reg = <0>; - #address-cells = <1>; - #size-cells = <1>; spi-max-frequency = <84000000>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + }; }; }; From patchwork Tue Apr 23 11:31:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13639908 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 42B60C10F15 for ; Tue, 23 Apr 2024 11:33:02 +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=u3o+jrQsaFFdkolgNyEirhdUnOia3hbOZLDtBT7h/HE=; b=kxGBoVAXQVcbaz doeHT1KQJNFpoTsiLTo2ws5gt1WrgJphHvNrPkdEyvQCcF83ONw9S3UwwfLQBlpVFFHX/OnBlDRYW flkam2nTmEskOUN6McLYFZbGXtTyz+kh4xyTbIaDiPIQ3p6I9OHxSt32ocWBqFCWF1qV4svCTfQXq UwuXa/f2+OT9++8lsfU48WGYC5w2hbYj1bq53iSYpy+YwzAvvB7GXWr5TTXZv1AX25Ex3lF+EFKQG zVF7y4esFRz8pfDuOfbuMdOocHcmcYbWyr0WFo5chMHp1kP9cl5naM4Pln7PVtlIbnMrL4rVfyjaY nILqjfDhOVegE8xVpbKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzEOH-0000000H7HG-3ZlN; Tue, 23 Apr 2024 11:32:49 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzEO2-0000000H6vC-22Ag for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 11:32:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871954; x=1745407954; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pCLoCC6GOo9gQ9iL/Fi4GAoIoWICczCG1YlZoCwuv8U=; b=a678XM4+Ntc0d0Pnyi7hYH+N1YAEcu7M9rLTFzGBegyuTUnPy4CCEvP1 qT166I4p87jmOv4bZ2NTNaDXoZ0wAsuYgLjR7eR0I60O1eIvxtbAUIgDC 6ElIDnFc7l6eUS8iZDMz6/cPThghBDFqPPe5cAOxutkn2ySYOkLBpj46F zGSMMuyMjXqkVjD2BrUj3IseVrJthuJbBahw24hUm8VHOY8HXDuTazg7V Els1GH82Y5GIkzScVkJ93Vts+TuAhOq3mQ1qxwTZSMPMregjlNRG5C/Zk WfGpwFa3puBgj975InXdRwoYw6UhdnxiPcpN9EIbwRGktKnLx3eWz4xql Q==; X-IronPort-AV: E=Sophos;i="6.07,222,1708383600"; d="scan'208";a="36565292" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 23 Apr 2024 13:32:33 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 98CA61706D1; Tue, 23 Apr 2024 13:32:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1713871949; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=pCLoCC6GOo9gQ9iL/Fi4GAoIoWICczCG1YlZoCwuv8U=; b=QhwY3aund2zBHehIjbkKKf5Dw5G1hphylELqCTpdTSET2ekepXcgiNkrfK8NHecF4DHTxQ PkMULW0Skx2/pwI1AvLSueg82jzDHcxTw5mqVBM9ByNzx2sFDKp6tT75eh3Jwq/te5TvxS qWW7A1dtaw6RIsA3yk1XTot8iwyEHvUQ06kSTZRvTHc2ZKeUU8VwHyDdvEFAsf8br9I9RW sTu7McLyyPVLs8jH8+twgeMOqGBUZX+MLGCiXkK++YPJycnmzlffMRhvbfnpryK1SvvUdr ILKIdvSgwyC9g1njHtW9CNwYKOeoPpVL6UU6y0FWT0+58Yni7C8Yn85UAHXigg== From: Alexander Stein To: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Alexander Stein , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] arm64: dts: freescale: tqma8xx: Add partitions subnode to spi-nor Date: Tue, 23 Apr 2024 13:31:51 +0200 Message-Id: <20240423113151.2145120-7-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> References: <20240423113151.2145120-1-alexander.stein@ew.tq-group.com> 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-20240423_043236_073348_68392017 X-CRM114-Status: UNSURE ( 9.15 ) 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 The bootloader adds MTD partitions in this subnode if present, or in the spi-nor node itself otherwise. Setting #size-cells in MTD nodes itself is deprecated by mtd.yaml. Fix all this by adding an empty partitions node which the bootloader will fill with configured MTD partitions. Remove the deprecated properties as well. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/tqma8xx.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/tqma8xx.dtsi b/arch/arm64/boot/dts/freescale/tqma8xx.dtsi index d98469a7c47cc..366912bf3d5e5 100644 --- a/arch/arm64/boot/dts/freescale/tqma8xx.dtsi +++ b/arch/arm64/boot/dts/freescale/tqma8xx.dtsi @@ -61,12 +61,16 @@ &flexspi0 { flash0: flash@0 { reg = <0>; - #address-cells = <1>; - #size-cells = <1>; compatible = "jedec,spi-nor"; spi-max-frequency = <66000000>; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + }; }; };