Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9447824ybi; Wed, 24 Jul 2019 04:18:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkbGXtwond2xW1rWUJIqVe0PjkPlrHn1eAdptqkYU/IGqKPZDmpqDqRkxc9j1R8f3Pgb5d X-Received: by 2002:a65:458d:: with SMTP id o13mr79902693pgq.34.1563967095838; Wed, 24 Jul 2019 04:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563967095; cv=none; d=google.com; s=arc-20160816; b=P+4iMS7Qa/fgSUcF7kxKx+a14RPTiJNfBRDu1wyjOYV4W7HxAI//wrLbCvh3Bsny1G Qe7s7KRiaPRLl7xRdoIClVPYSPpFS9QA0Vbwpsg1+pXaEZ4l7csl9GmSHLwzrJbreIJ/ nY0dMZecW+Q1I6/GYx7JlEwWnLvsHa3JeXUwMWqkjKYa0h6kDoBh8hfQKb8gL/4+/xPe pLHPa6rJ/DtkdP5RbIcMBO6bDcFYpucq8F8GMTP2AmPEfLY/LeksGXKrnnytGZIRvs3t un06SihERRjPVfziUFac+Xu0jxixOhx5HAsG9/RqZBvH5PlQMiaXGb+xvgLYYnMx2zAZ zcsA== 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:from:references:cc:to:subject; bh=uLznQ7Ob99aD/A27ewK27btnLHvUaPKSBSRs78a1O9w=; b=qDI3slhd6GDDfzVKFVt6PNz3POwooPTqUS6j1VvXKjiPWBwcqY6CejLbV7T+jpP62v hEy2vk0Y3CIPjcK0GIYnFTH8LXi+z0iAMjvkBczF4R92AJMXQaEYQPndISVUJh72M2zb 95TCCSo/cCZyTu9uh8NZn/KzjRt/FBCPCnn8C8ZU2aMv8Hzsd0DszrS19zhDDhWceuxa y08CG8i2WduGUkDW3WxcIIp4Ya9qnCalvfzY0v1Bo34uZCSOey6GIPpxlhaoZNiEsQI2 /I/gV9/pI+U1nsJUlUCx96E0f4ay7JVBsSYq2mMxX5woj7cEuB0rz5e4IRNmS+Cem5/1 fHwg== 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 v184si13083255pgd.278.2019.07.24.04.18.01; Wed, 24 Jul 2019 04:18: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; 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 S1727422AbfGXLQx (ORCPT + 99 others); Wed, 24 Jul 2019 07:16:53 -0400 Received: from ns.iliad.fr ([212.27.33.1]:56064 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfGXLQw (ORCPT ); Wed, 24 Jul 2019 07:16:52 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id A083C20609; Wed, 24 Jul 2019 13:16:50 +0200 (CEST) Received: from [192.168.108.49] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 88C652018B; Wed, 24 Jul 2019 13:16:50 +0200 (CEST) Subject: Re: [PATCH] arm64: dts: qcom: msm8998: Node ordering, address cleanups To: Jeffrey Hugo , Andy Gross , Bjorn Andersson Cc: Rob Herring , Mark Rutland , MSM , DT , LKML References: <20190722165823.21539-1-jeffrey.l.hugo@gmail.com> From: Marc Gonzalez Message-ID: <2165bbd3-aa60-bec0-4ee7-dfb7dc1dd1ad@free.fr> Date: Wed, 24 Jul 2019 13:16:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190722165823.21539-1-jeffrey.l.hugo@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Wed Jul 24 13:16:50 2019 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/07/2019 18:58, Jeffrey Hugo wrote: > DT nodes should be ordered by address, then node name, and finally label. > The msm8998 dtsi does not follow this, so clean it up by reordering the > nodes. While we are at it, extend the addresses to be fully 32-bits wide > so that ordering is easy to determine when adding new nodes. Also, two > or so nodes had the wrong address value in their node name (did not match > the reg property), so fix those up as well. > > Hopefully going forward, things can be maintained so that a cleanup like > this is not needed. > > Signed-off-by: Jeffrey Hugo > --- > arch/arm64/boot/dts/qcom/msm8998.dtsi | 254 +++++++++++++------------- > 1 file changed, 127 insertions(+), 127 deletions(-) LGTM. Reviewed-by: Marc Gonzalez Rob, Mark: when there are multiple reg properties, why is the convention to use the *first* address in the node's name, rather than the lowest address? e.g. spmi_bus: spmi@800f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0800f000 0x1000>, <0x08400000 0x1000000>, <0x09400000 0x1000000>, <0x0a400000 0x220000>, <0x0800a000 0x3000>; reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; "spmi@800f000" instead of "spmi@800a000" Especially, since the reg props could be in any order here, given the lookup by name. Regards.