From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F9FC82C60 for ; Tue, 23 Apr 2024 11:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.104.207.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871932; cv=none; b=W9NVCUwYzz/1lU5TFmW85oRC7DvZkBfHTiLQkqmPay8k6BgvY7KLd+10f0kx1Mqq11qnrm/gmkD/xJC2yhBIIGCbZiliWur0THq6xj8r1XmXMBJJBk9BbDNig+v9HeSJrzgv76Ssf868EsqvYMV6gv5WvxjtpY6wt4gN9S4ANzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713871932; c=relaxed/simple; bh=aH67okvChfjNK/qdROTeGr50aua0GAV9FbdIPCD96iA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MLC/8XmNm9terTp3EyUDVCJ9Fa/pb0JLsAV0/w/0W+8qonVwmfRiUZP3PZczm1uQGaMYwJ29xnIU1PgcB0JsmQOKa5sRYuaaiIH/w/TxN3Bi6bM/FM9W5DKDX5OzPNCAFsa12Imhip+GU9PUCATGrWGplZpSPnIKDkCyvaA/Taw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com; spf=pass smtp.mailfrom=ew.tq-group.com; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b=G80+gpWt; dkim=fail (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b=poKuUsrc reason="key not found in DNS"; arc=none smtp.client-ip=93.104.207.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ew.tq-group.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.b="G80+gpWt"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=ew.tq-group.com header.i=@ew.tq-group.com header.b="poKuUsrc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1713871928; x=1745407928; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wofwYl3aLeJL4MtGjQakxRMPKOMFpPo928i/DlFFhz4=; b=G80+gpWtVjNFF1Ld4uS/Wt09LCm87BJcVxC25oH2KeBSKtRFXLy/cRYo 7Xc8OC3wsuXySZVc+XeFXQ9wS82AIC5oYSNQTNSWQwJyshdgU+dIMoIqR 0rG3QvgNv1py8ti1OykgTVP9CYYrf0qUAUkfztrI+haBlIE9FiuKWPiHr 3MGf9Q4ikGfWIrO4a5TVR6v5ggMKSOfy0tcUwtP3j6upVPu10t4hDE5KH 6TlU2KRXhR9KmFH2CoU8S1z8gz0FHiGwzbEkps+xl/T+/cHK1WNtXobr0 r944OvXQHocDu18pqHAycRebGTlNaS6lDVOdStBi8DWW5ZLPKRODJEXTQ g==; 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> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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>; + }; }; }; -- 2.34.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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>; + }; }; }; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel