Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp900197imm; Fri, 11 May 2018 08:04:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqLlsCWSSa6Xl7RcgBczpkBM0LZ2eSRB+xV5YeAw4DUhR9qTPoVKcJJ7oHQlv27O7WNrCxe X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr5833484plf.288.1526051055988; Fri, 11 May 2018 08:04:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526051055; cv=none; d=google.com; s=arc-20160816; b=j5P85jau7boE0pnSuP1MiGmWiC4IcHIdXA0DutpQiDpW9Qdnxxag9Uz9q1qMtnjTDt rP+x/E9ErKp3aO8Ih8vZjUg6dzf6K+QeFSQPWOCYhb0mUzc0/D6sAMlCh95Rrtsoa60+ YBzXBaae1dMjcASMZdMSLoRxAd04IN1bOloOunqhujSIt3LYOAcd181IlcBW2UFtukYr ZjL+hBCKkzfEN+J2b5DEhdrJb50AnXpcIK53NVJcqLZUOiNhIi/xQt5QOCL6Agt9hzzu /561MEdFLwFATDbIsf39+n7MmFlAQtI66qIKLSRqMVY+3QBV11zMYAtQ+zVTCYKR7YXy EoXw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=VZO4iEW5MtEXnCwz5lHIIo+B0lXC2DFidn8QR2EXigs=; b=SXkNmFgv35W9gJ44DphWUr9+yuBzqZSt7lHHuTOsz96b7kYZxl3NR9AiD7s3EE0ZxA Dv8tGhYI9w4nnhNctJydYpn08l4VZfOIJqRuozvoKGQ5ZdeFmWsXjxKIqcG6C682pBvA GnPtHfVNrJmsIAGJh1GG8qFFSE54bOo74RN7c8Quc8azJ1fdvasGZBW+YH3LfGdrtgBh oy40t2CDF/9SX9vGHGWi/bRKg3+L8PXenwuMW+leV6VOxjyV556e4W4pybVmMc9K0Y4F WB4J2eBAYoYS2FOTLGdrLRw/Q3BbVl9sSM3ele1JF4Y3LA+zjwPkEaYEk4GuZ9/DyQr1 cJ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zjimfx93; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3-v6si2711555pgp.95.2018.05.11.08.03.50; Fri, 11 May 2018 08:04:15 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zjimfx93; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753335AbeEKPD2 (ORCPT + 99 others); Fri, 11 May 2018 11:03:28 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:50838 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752997AbeEKPD0 (ORCPT ); Fri, 11 May 2018 11:03:26 -0400 Received: by mail-wm0-f66.google.com with SMTP id t11-v6so3205105wmt.0; Fri, 11 May 2018 08:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VZO4iEW5MtEXnCwz5lHIIo+B0lXC2DFidn8QR2EXigs=; b=Zjimfx93Nf6clnAqB2nKoAyE9JWxVIrwRFbLfvgZqGbrYzVzOrcGH4C63lZYitZhYg haAi9NwHGTjwyq6OoWMgHNA8jS1zuXExBVD/g67z6gB6VHIJ2n13RI7dV49K0n/XGp8P Ui4QOIi1fHDaDXYS8ipOE/97e/fbGIMFCqUWwFFykT5hoCy61h0R8Iz2CKQq4IQ66b2X vM7YKvzW0j+ExN0FNNSAe42LYI2aXasiwTwJKDOZA6gNOKmKhempbmMQMwHoLznp6N6G eThg4TB9A+AmJqsU4RLUP19CgtDOTFRHifh8kiGGlQ5p92pdOsUEUBQgE/8OFZr69MOr CgJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=VZO4iEW5MtEXnCwz5lHIIo+B0lXC2DFidn8QR2EXigs=; b=gUNq8HXupA+Q1PmslsyLZ3HwDPOjtKXjqEF5m9GPTeGz1S2laFwKmtHQdwuHhNldQr lGDJnVEdd1ovMbIoK+S6HrzFWD+GcD1OmtLL4D3q9xpOqzVmcHQ00JOw2041MPe0cvsp 22tO2JO2gv6DfCiIkALI+VfkU1lMD42/pRoGtJvvQaGVAzNc6vPP6YVzVuuQqgPUgLKC /azS0lv+jL4OnkgzKf2OU5LXXORMZ4UeJE7F8whPK7JQsfvgOt9zSs368/za/gEBzY8j oerOncWi5uVCA3z6fF1I2JY6UmdmXVkxLEc/3dAe/q2CStTfglyXq6VM/Y1+ZABtDbDl leew== X-Gm-Message-State: ALKqPwfabDPD1R2LA9uOwRSOiq/SAqCnmcfjIT/yCUzOHsQzxV6LM+Zp 09yhLLNJeLPJgMSpU/BH729nCK3U X-Received: by 2002:aa7:d512:: with SMTP id y18-v6mr7895912edq.299.1526051005051; Fri, 11 May 2018 08:03:25 -0700 (PDT) Received: from ziggy.stardust ([37.223.140.222]) by smtp.gmail.com with ESMTPSA id y53-v6sm1895059edb.17.2018.05.11.08.03.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 08:03:24 -0700 (PDT) Subject: Re: [PATCH v2 03/12] arm: dts: mt7623: fix invalid memory node being generated To: sean.wang@mediatek.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: From: Matthias Brugger Openpgp: preference=signencrypt Autocrypt: addr=matthias.bgg@gmail.com; prefer-encrypt=mutual; keydata= xsFNBFP1zgUBEAC21D6hk7//0kOmsUrE3eZ55kjc9DmFPKIz6l4NggqwQjBNRHIMh04BbCMY fL3eT7ZsYV5nur7zctmJ+vbszoOASXUpfq8M+S5hU2w7sBaVk5rpH9yW8CUWz2+ZpQXPJcFa OhLZuSKB1F5JcvLbETRjNzNU7B3TdS2+zkgQQdEyt7Ij2HXGLJ2w+yG2GuR9/iyCJRf10Okq gTh//XESJZ8S6KlOWbLXRE+yfkKDXQx2Jr1XuVvM3zPqH5FMg8reRVFsQ+vI0b+OlyekT/Xe 0Hwvqkev95GG6x7yseJwI+2ydDH6M5O7fPKFW5mzAdDE2g/K9B4e2tYK6/rA7Fq4cqiAw1+u EgO44+eFgv082xtBez5WNkGn18vtw0LW3ESmKh19u6kEGoi0WZwslCNaGFrS4M7OH+aOJeqK fx5dIv2CEbxc6xnHY7dwkcHikTA4QdbdFeUSuj4YhIZ+0QlDVtS1QEXyvZbZky7ur9rHkZvP ZqlUsLJ2nOqsmahMTIQ8Mgx9SLEShWqD4kOF4zNfPJsgEMB49KbS2o9jxbGB+JKupjNddfxZ HlH1KF8QwCMZEYaTNogrVazuEJzx6JdRpR3sFda/0x5qjTadwIW6Cl9tkqe2h391dOGX1eOA 1ntn9O/39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WGf XM8DY1aFdU79pac005PuhxCWkKTJz3gCmznnoat4GCnL5gy/m0Qk45l4PFqwWXVLo9AQg2Kp 3mlIFZ6fsEKIAN5hxlbNvNb9V2Zo5bFZjPWPFTxOteM0omUAS+QopwU0yPLLGJVf2iCmItHc UXI+r2JwH1CJjrHWeQEI2ucSKsNa8FllDmG/fQ== Message-ID: <4dcb0435-1f98-0753-0feb-d17ad02077ae@gmail.com> Date: Fri, 11 May 2018 17:03:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/11/2018 10:53 AM, sean.wang@mediatek.com wrote: > 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(-) > merged. We would need this at least for mt2701 as well, correct? Would you mind to provide a patch. Regards, Matthias > 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>; > }; > >