Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4599359pja; Thu, 21 Nov 2019 22:35:37 -0800 (PST) X-Google-Smtp-Source: APXvYqyIuBR8PK5Oi8mVVWwBftHnrZTXfDVjjdCF7SdO+1eBUbDspFZG6vu+dqCdqYPLuA/QbQh1 X-Received: by 2002:a17:907:43ef:: with SMTP id ol23mr2048186ejb.264.1574404537416; Thu, 21 Nov 2019 22:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574404537; cv=none; d=google.com; s=arc-20160816; b=Kn+WpFj2CCSRdy6lb3Bb3axc365rc8bZlEIjlYr+3yLx5XqjIMYy2iFWlU/mlV0O2E bfPl4rx5P9NXOfDA+cjxJLjqgUjrojWZMlEIb4G1k09asewdNaI1vtvM6QAWILYOpIZs 5jb+jFFdEElNmoaImJORND3jOs3cEJ9XsHgBR97ddYlmzEn7TPhC6IMoXC9inmjMorwN fpKboE/WVowqDIYWOCYY++G/o6KyZKMDq43tojA/Vhv021K71GinrB4kfLQJ3QzxV690 MeRjQmVfp61nbcDvlkyoki571hsaR9sr1W9gP2Dr5QI2sQmEZEYJ1hzlB8ygJpkahUcS Vdzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xdgvXzKmG1PDU8OaWJCurJ1FiXtRaophKaaCHAIh5jo=; b=w8qcHSdQk5Vn/g3eHd4/WpsjsBq5KLmu6RYy6dKA85uYc2tUw9w4oZ57cqKqgdWefB R2ABIf1wa8wCxyQlnRmMy62Zr6GynKbaJuUi384jx/vvwJrv7h1ile2mQW68/x1HYASY F1UCEmeLW8K8JEwCS/iXHK/rMkbwdnGEdvztASmymD4+KZ+HUt/QG19Owx/d/kIovaCa 59P6FvAAk6dxHoOoukGRuEUNSx/tBEJm/b8Yg4rdNsiqN8BRMr1smdxOWVIvz6F6QL3K 3RLIWYNlr9x7kMSnw8dSbMHaAy8gJMKxlR8URgQHmQ8kYqHToDIUg9AfmYcvH8s3433p ox9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M+O4cnIU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si3637112edv.282.2019.11.21.22.35.14; Thu, 21 Nov 2019 22:35:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=M+O4cnIU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729335AbfKVGar (ORCPT + 99 others); Fri, 22 Nov 2019 01:30:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:53618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727016AbfKVFt3 (ORCPT ); Fri, 22 Nov 2019 00:49:29 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 11FB12071F; Fri, 22 Nov 2019 05:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401768; bh=//48Y0e+TnSjcWbypK13uBxiX7dydB+93cLmWpdG+a8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M+O4cnIUMktUkwbl7VL3x0Jhp6A2C4sVuZZkRBh4OcHdvS1R7uJMVyLzpvdv1PoTs 77TceYoqwJhz6zNyNbxjshO5vktczrAhXiHyOTbZZupL/AbUbtVvNl2U83wIIe3cN8 42ae8WZ2KLIQUyfRjnxrts2yVeVzvVh6dy6Dwe6Y= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Fabio Estevam , Rob Herring , Shawn Guo , Sasha Levin , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 019/219] ARM: dts: imx27: Fix memory node duplication Date: Fri, 22 Nov 2019 00:45:51 -0500 Message-Id: <20191122054911.1750-12-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabio Estevam [ Upstream commit 38715dcd49b4430ac5b6bc1293278d91a4d32bd5 ] Boards based on imx27 have duplicate memory nodes: - One coming from the board dts file: memory@ - One coming from the imx27.dtsi file. Fix the duplication by removing the memory node from the dtsi file and by adding 'device_type = "memory";' in the board dts. Reported-by: Rob Herring Signed-off-by: Fabio Estevam Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm/boot/dts/imx27-apf27.dts | 1 + arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi | 1 + arch/arm/boot/dts/imx27-pdk.dts | 1 + arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi | 1 + arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi | 1 + arch/arm/boot/dts/imx27.dtsi | 2 -- 6 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx27-apf27.dts b/arch/arm/boot/dts/imx27-apf27.dts index 3eddd805a793a..f635d5c5029c4 100644 --- a/arch/arm/boot/dts/imx27-apf27.dts +++ b/arch/arm/boot/dts/imx27-apf27.dts @@ -20,6 +20,7 @@ compatible = "armadeus,imx27-apf27", "fsl,imx27"; memory@a0000000 { + device_type = "memory"; reg = <0xa0000000 0x04000000>; }; }; diff --git a/arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi b/arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi index 9c455dcbe6ebf..c85f9d01768a1 100644 --- a/arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi +++ b/arch/arm/boot/dts/imx27-eukrea-cpuimx27.dtsi @@ -17,6 +17,7 @@ compatible = "eukrea,cpuimx27", "fsl,imx27"; memory@a0000000 { + device_type = "memory"; reg = <0xa0000000 0x04000000>; }; diff --git a/arch/arm/boot/dts/imx27-pdk.dts b/arch/arm/boot/dts/imx27-pdk.dts index f9a882d991329..35123b7cb6b3e 100644 --- a/arch/arm/boot/dts/imx27-pdk.dts +++ b/arch/arm/boot/dts/imx27-pdk.dts @@ -10,6 +10,7 @@ compatible = "fsl,imx27-pdk", "fsl,imx27"; memory@a0000000 { + device_type = "memory"; reg = <0xa0000000 0x08000000>; }; diff --git a/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi b/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi index cbad7c88c58cc..b0b4f7c00246d 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi +++ b/arch/arm/boot/dts/imx27-phytec-phycard-s-som.dtsi @@ -18,6 +18,7 @@ compatible = "phytec,imx27-pca100", "fsl,imx27"; memory@a0000000 { + device_type = "memory"; reg = <0xa0000000 0x08000000>; /* 128MB */ }; }; diff --git a/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi b/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi index ec466b4bfd410..0935e1400e5d2 100644 --- a/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi +++ b/arch/arm/boot/dts/imx27-phytec-phycore-som.dtsi @@ -17,6 +17,7 @@ compatible = "phytec,imx27-pcm038", "fsl,imx27"; memory@a0000000 { + device_type = "memory"; reg = <0xa0000000 0x08000000>; }; diff --git a/arch/arm/boot/dts/imx27.dtsi b/arch/arm/boot/dts/imx27.dtsi index 753d88df16274..39e75b997bdc8 100644 --- a/arch/arm/boot/dts/imx27.dtsi +++ b/arch/arm/boot/dts/imx27.dtsi @@ -16,10 +16,8 @@ * The decompressor and also some bootloaders rely on a * pre-existing /chosen node to be available to insert the * command line and merge other ATAGS info. - * Also for U-Boot there must be a pre-existing /memory node. */ chosen {}; - memory { device_type = "memory"; }; aliases { ethernet0 = &fec; -- 2.20.1