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>; + }; }; };