Received: by 10.192.165.156 with SMTP id m28csp465202imm; Wed, 11 Apr 2018 02:00:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx48drnKmkoBQ4D0MuA6k/IQ13qyqcN+2KKnndffBV5vktT7FQ2hph+cCRoM6u5p2Zb5wlJv+ X-Received: by 10.101.88.78 with SMTP id s14mr2767785pgr.97.1523437251095; Wed, 11 Apr 2018 02:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523437251; cv=none; d=google.com; s=arc-20160816; b=OTX9GVpE1MST6aLo8U7gjPFA2juqjrcVM47i8z0QfvehZxYZ3REklsJyleyDoH20Si uwhXAyvhuPm79Fn5B+qs9SO5nRjeA8KX+8EZqRxT0R8j0rYQAsFGQ3I+i7nzB65TMema Pt8eyV6/MHBAqSjeHy30vb3BK4QzgnPzGgMIc/LOsQ3ub7ynHbXtUwLd9GOFAGKw7/ly arkspeKnVVyKR36qarReq47ciGcVUD5sQjO5QzPsXvqymNviEM0ZXtPXCOikDjpGx2+n Xj8j3M+fbRXW4omhOQFFT9OVxNT78S5nklP4UWwjpkfdY4JpOT2IdobKxQ3pLogmLqLY /KIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=kfERyZrdtlqlr2G3RcfnBOadKlEGgy7z1AhEWeZGksM=; b=Y956j+rtyjIvSNsnUd67AOIud1z6ndlc2QN/HlOU1PQDL1ppt9Z0q9aV+v97ObQd18 KJWTbtO/lIyPWPszuwmtd0L0qYd2CjNWNVywzKFavwSdRkVZVJRPI1vU+2vfa0tLk6UR NyKxcc4rUNw3/C/1EhzK15Q3Fn5XI2Py9a1cTiBGXbN8vnpwMeOS2/t6kJVILpW+NYl5 kRn+r2u46RmDp+OR4qCds3+HGO+SQTIzNN9ABMnkl6WeujbM7v4F1T6qHHDl2JRfsg9N GAFTttTl9UEZC580j21zUuWQBbDCW2dMwytt9cJPenAuqgtfwLq+wnL8G6l57G23NSf4 zH0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18-v6si650171plo.81.2018.04.11.02.00.14; Wed, 11 Apr 2018 02:00:51 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752953AbeDKIzz (ORCPT + 99 others); Wed, 11 Apr 2018 04:55:55 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:20664 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752335AbeDKIyR (ORCPT ); Wed, 11 Apr 2018 04:54:17 -0400 X-UUID: 16e08e73fea744159465fa28bfae12e4-20180411 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1694220195; Wed, 11 Apr 2018 16:54:10 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 11 Apr 2018 16:54:08 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 11 Apr 2018 16:54:08 +0800 From: To: , , , , CC: , , Sean Wang , Subject: [PATCH v2 03/12] arm: dts: mt7623: fix invalid memory node being generated Date: Wed, 11 Apr 2018 16:53:56 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Below two wrong nodes in existing DTS files would cause a fail boot since in fact the address 0 is not the correct place the memory device locates at. memory { device_type = "memory"; reg = <0x0 0x0 0x0 0x0>; }; memory@80000000 { reg = <0x0 0x80000000 0x0 0x40000000>; }; In order to avoid having a memory node starting at address 0, we can't include file skeleton64.dtsi and instead need to explicitly manually define a few of properties the DTS relies on such as #address-cells and #size-cells in root node and device_type in the node memory@80000000. Cc: stable@vger.kernel.org Fixes: 31ac0d69a1d4 ("ARM: dts: mediatek: add MT7623 basic support") Signed-off-by: Sean Wang Cc: Rob Herring --- arch/arm/boot/dts/mt7623.dtsi | 3 ++- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | 1 + arch/arm/boot/dts/mt7623n-rfb.dtsi | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index fec4715..406a9f3 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -15,11 +15,12 @@ #include #include #include -#include "skeleton64.dtsi" / { compatible = "mediatek,mt7623"; interrupt-parent = <&sysirq>; + #address-cells = <2>; + #size-cells = <2>; cpu_opp_table: opp-table { compatible = "operating-points-v2"; diff --git a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts index bbf56f8..5938e4c 100644 --- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts +++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts @@ -109,6 +109,7 @@ }; memory@80000000 { + device_type = "memory"; reg = <0 0x80000000 0 0x40000000>; }; }; diff --git a/arch/arm/boot/dts/mt7623n-rfb.dtsi b/arch/arm/boot/dts/mt7623n-rfb.dtsi index a199ae7..343e8ef 100644 --- a/arch/arm/boot/dts/mt7623n-rfb.dtsi +++ b/arch/arm/boot/dts/mt7623n-rfb.dtsi @@ -40,6 +40,7 @@ }; memory@80000000 { + device_type = "memory"; reg = <0 0x80000000 0 0x40000000>; }; -- 2.7.4