Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp562770imm; Wed, 23 May 2018 01:35:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqrOT68WrUm9cKH0yWcbdZfpz3JojEIMZxIlIJidBA6XUVIbU6MEcUvr0dT1ntZEjgJz022 X-Received: by 2002:a17:902:6b44:: with SMTP id g4-v6mr1999699plt.390.1527064510078; Wed, 23 May 2018 01:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527064510; cv=none; d=google.com; s=arc-20160816; b=fDPUyYF8CUssIiTlSrUepgWuwvnpw61xfcEW2UKLjyY5pH7XohqjZivmX6mB2X6uHD NPFFrK+OgrMgrC8IoCiAiXNRKZLt5sifmPHNMeS5BtoGpJUe+8S9o6eqiw2QscnJ/qYD H17w8+PEWQOt1+Q2Cs8Y1Ymuk146LZuJC1mMKimssiRzQcvJlJ/HPxTDM4RuHh39vp4w EwhkgQvGplXV2E630kovPdD0CvwfQffUxleaIdJYKKren1aGGgmO2sK1tPCw7xO/mj3G 7dOODtj2v2VZvF2QWXsU9eDvJswCcdByT/zoVOz45pQluu4EKKvc9tPWvSwds3g3wjpd 6VHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=gBdlfSFmRy9vYFREwIwJFFV3DYcqOT48pacCuBFdTds=; b=0FNUfgubEkirhyF0DLJramOiJqTOd60Ozklj73e/hbYyKsoTT5qsHR1dFfWoSqvRhS FoF7KmMlL2by2QmYjcof+rRrr3OayVdkAd9G874dL847FTnIMiuJ6AZQg0QWcHlaWjUS 5PbiLDs1xuzMw44Oi1u9+WIfoo1ecHVyYzC0fnjGSJ8HlzPJpY9L2fnTfvEugMJFvd6c dHiOxzDy6bfpMWxlMJYHTqR0UqcRkD8WB2jYQ9ISXjQYfoCd2MfPuur3Kq8+jQ6EFOw9 zxnf3UhqH4MHkNY1nCo/Fo2Wka+DZBoL0dhyvZjccOUoV+07gFDZyH0fqfqAscfxgr8a T30g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SmqNKY6d; 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 s14-v6si17849760pfh.11.2018.05.23.01.34.55; Wed, 23 May 2018 01:35:10 -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=@kernel.org header.s=default header.b=SmqNKY6d; 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 S932111AbeEWIep (ORCPT + 99 others); Wed, 23 May 2018 04:34:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754331AbeEWIem (ORCPT ); Wed, 23 May 2018 04:34:42 -0400 Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 7772F2087F; Wed, 23 May 2018 08:34:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527064481; bh=wlOKK9kYIT2z/UNNTcOhANQBrQ3aa6dwX9xags8jSAE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=SmqNKY6dHfyJpCiNn2sM9zw/QwFKBvQx9fXNOYI312g4F6+GVTjS7YO+beybXfBkV MiwWaeL2N+dyiOtqnTyvEVYmKv8Pu69ywpucvwYl1WeEe573fjBRinEW65PdjpIKou u6cpuW6UDizQYl4DE7kuFG01Dyc8MbdxkcOf9TSM= Received: by mail-wm0-f50.google.com with SMTP id x12-v6so20531532wmc.0; Wed, 23 May 2018 01:34:41 -0700 (PDT) X-Gm-Message-State: ALKqPwcr0jUg8iKsDMkmslM5ZYez2Qs9r2LyX23x31Y+UJnA4PIdtFwA oLCLgxMaDo6g2UvOVPnyM8tuIdnJ4OPkRl7TFTc= X-Received: by 2002:a1c:c588:: with SMTP id v130-v6mr3180806wmf.135.1527064479876; Wed, 23 May 2018 01:34:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:c552:0:0:0:0:0 with HTTP; Wed, 23 May 2018 01:34:39 -0700 (PDT) In-Reply-To: References: <1526543103-21668-1-git-send-email-krzk@kernel.org> From: Krzysztof Kozlowski Date: Wed, 23 May 2018 10:34:39 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/3] ARM: dts: tegra: Remove skeleton.dtsi and fix DTC warnings for /memory To: Stefan Agner Cc: Rob Herring , Mark Rutland , Thierry Reding , Jonathan Hunter , devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Ziswiler , Lucas Stach Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 23, 2018 at 10:22 AM, Stefan Agner wrote: > On 23.05.2018 09:05, Krzysztof Kozlowski wrote: >> On Thu, May 17, 2018 at 1:39 PM, Stefan Agner wrote: >>> On 17.05.2018 09:45, Krzysztof Kozlowski wrote: >>> Could we not add >>> >>> memory { device_type = "memory"; }; >>> >>> in the SoC level device trees? >>> >>> This would save device_type in all other instances. >>> >>> That is also how it is done in other places, e.g. >>> arch/arm/boot/dts/imx6qdl.dtsi >> >> Not really because the unit address will not match between different >> boards. The imx6qdl, as I see, has the same issue: >> - imx6qdl.dtsi defines "memory" node >> - imx6dl-apf6dev.dts includes the previous and defines "memory@10000000" >> >> This is wrong - two memory nodes. >> > > Hm I see. We could add > > memory@0 { device_type = "memory"; }; > > Since the reg property is specified in the board level device tree it > would be still fine? > > Or probably better to provide a complete spec with length zero: > > memory@0 { > device_type = "memory"; > reg = <0x0 0x0>; > }; > > Even some boards do that and assume that boot loader will fill it > correctly, so that should be fine. That could be the solution although tegra30-apalis.dtsi is a problem here. For Tegra 114, 124 and 20 it would work fine - all boards from given SoC have the same address of memory (0x0 or 0x80000000). However for Tegra30 the Apalis did not have any memory reg before so I am not sure what should be used. I added 0x0. The other Tegra30 boards have memory@80000000. Best regards, Krzysztof