Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1921705imm; Thu, 14 Jun 2018 06:06:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLv+Bo2MNlELSERabT+8KD/LiedkXjfG1Bw4Cixo2JD26inDDqxUEU0Apk8mFpE6bokenYq X-Received: by 2002:a17:902:9b92:: with SMTP id y18-v6mr2929427plp.57.1528981599354; Thu, 14 Jun 2018 06:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528981599; cv=none; d=google.com; s=arc-20160816; b=mnJe8ufDLPJ+V77fuH0F/ZR8efzhlKweCdg32bfNnlwjvPrRYd1gyCCBaZ/7EWoily Tu06CkY7xbLWI/v7BgGL/rkRo2lwc6cK1vm6VvoMWVWjATiNa2mfc47+MekSn9Bh3Bdp LcX4rA8Dcjmtrh8JWrkEt3Jor+xw/c1G/ZqmDztNLuj/Xm5whQf4/U1M5oq48gWwda8w x0UJRlzSGgm5Nn8nWkQB8qCiA0VbQeqPu3/ud/EVZi2Mt3fjijhcoube8VKPnJ//6hbW TmqnjS5nebtUmQowkwB6omfKiciMbOX0WSlahSXRS/oUOSz1ZAEp1tAuPtHgwZFUIkoh NOmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=WnOF6B5t6Uxo2Kr94e2RIKEnrGP0S/Q5JnH5EGBjmS8=; b=lkVYlCBgqgL8Vv8HpFPwySf0SfmHZCTLm3IU4KY6Emtoq48QRhcHoyyGcJcrCJHWw4 sKcEOqOP8yi7pBhjp4zhW6OhuQ92kirAJ5iIGaczahxW/QQPipBSBE9ezwQGphHfvbvt 2c+5k0eLpPJENFz3mQsdHEJ53MjdcROBzpvxjxGRDWDxEtrh/Ef4nN4ZCJH1G6Pp/u+8 6QmcO7xf8lKykdP6rBBwRzwR4TozNW6Ka5cqz/iHZL74lBWtoAq33E77vddG6zYRLdyN luJ1obTC+V9ZYShX8CZw2AG7xMrNLU9lWVUPW/eetDIWElE29DWgTC+3HBRexgCx9p0h SFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ALbu+T40; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13-v6si4345295pgc.274.2018.06.14.06.06.25; Thu, 14 Jun 2018 06:06:39 -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=@ti.com header.s=ti-com-17Q1 header.b=ALbu+T40; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755338AbeFNNFV (ORCPT + 99 others); Thu, 14 Jun 2018 09:05:21 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:17644 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755200AbeFNNFF (ORCPT ); Thu, 14 Jun 2018 09:05:05 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5ED4an5012098; Thu, 14 Jun 2018 08:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528981476; bh=WnOF6B5t6Uxo2Kr94e2RIKEnrGP0S/Q5JnH5EGBjmS8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=ALbu+T40jEGmCrm3dPqqv2FuG4du/oMCURGyDIsa/Zw8hCsYxmcvag91xWjHN3Z08 598JhLpT/Sr5wnQdcuhJPDBBfh7Vj/U8oiEBIW5g/N2R1YnGgnjM8r7AJ9BUZPS/+2 oDdo5jmrtqiM7mjfZRuH+IBozMX64AsXh0LnCDDY= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5ED4aGv010258; Thu, 14 Jun 2018 08:04:36 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Thu, 14 Jun 2018 08:04:35 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Thu, 14 Jun 2018 08:04:35 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5ED4ZNC021494; Thu, 14 Jun 2018 08:04:35 -0500 Date: Thu, 14 Jun 2018 08:04:35 -0500 From: Nishanth Menon To: Tony Lindgren CC: Rob Herring , Santosh Shilimkar , Will Deacon , Catalin Marinas , Greg Kroah-Hartman , Mark Rutland , "open list:SERIAL DRIVERS" , "linux-kernel@vger.kernel.org" , , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Vignesh R , Tero Kristo , Russell King , Sudeep Holla Subject: Re: [RFC PATCH 5/6] arm64: dts: ti: Add Support for AM654 SoC Message-ID: <20180614130435.j2bmzam6corrjylx@kahuna> References: <20180605060510.32473-1-nm@ti.com> <20180607233853.p7iw7nlxxuyi66og@kahuna> <20180614123805.GF112168@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180614123805.GF112168@atomide.com> User-Agent: NeoMutt/20170714-126-deb55f (1.8.3) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12:38-20180614, Tony Lindgren wrote: > Some comments on the ranges below. Thanks for reviewing in detail (I understand we are in the middle of merge window, so thanks for the extra effort). > > * Nishanth Menon [180607 16:41]: > > + soc0: soc0 { > > + compatible = "simple-bus"; > > + #address-cells = <2>; > > + #size-cells = <2>; > > + ranges; > > I suggest you leave out the soc0, that's not real. Just make Why is that so, on a more complex board representation with multiple SoCs, this is a clear node indicating what the main SoC is in the final dtb representation. > the cbass@0 the top level interconnect. It can then provide > ranges to mcu interconnect which can provide ranges to the wkup > interconnect. So just model it after what's in the hardware :) That might blow up things quite a bit - it is like the comment in: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/dra7.dtsi#n141 The trees are pretty deep with many interconnections (example main does have direct connections to wkup as well, which is simplified off in top level diagram) - basically it is not a direct one dimensional relationship. But then, the same is the case for other SoCs.. we can represent NAVSS as a bus segment as well. > > I found the following ranges based on a quick look at the TRM, > they could be split further if needed for power domains for > genpd for example. genpd is not really an issue, since it is handled in system firmware and OSes dont have a visibility into the permitted ranges that the OS is allowed to use. I think it is just how accurate a representation is it worth. > > main covers > 0x0000000000 - 0x5402000000 > > main provides at least the following ranges for mcu > 0x0028380000 - 0x002bc00000 > 0x0040080000 - 0x0041c80000 > 0x0045100000 - 0x0045180000 > 0x0045600000 - 0x0045640000 > 0x0045810000 - 0x0045860000 > 0x0045950000 - 0x0045950400 > 0x0045a50000 - 0x0045a50400 > 0x0045b04000 - 0x0045b06400 > 0x0045d10000 - 0x0045d24000 > 0x0046000000 - 0x0060000000 > 0x0400000000 - 0x0800000000 > 0x4c3c020000 - 0x4c3c030000 > 0x4c3e000000 - 0x4c3e040000 > 0x5400000000 - 0x5402000000 > > then mcu provides the following ranges for wkup > 0x0042000000 - 0x0044410020 > 0x0045000000 - 0x0045030000 > 0x0045080000 - 0x00450a0000 > 0x0045808000 - 0x0045808800 > 0x0045b00000 - 0x0045b02400 > > This based on looking at "figure 1-1. device top-level > block diagram" and the memory map in TRM. Thanks for researching. I did debate something like: From A53 view, a more accurate view might be - from an interconnect view of the world (still simplified - i have ignored the sub bus segments in the representations below): msmc { navss_main { cbass_main{ cbass_mcu { navss_mcu { }; cbass_wkup{ }; }; }; }; }; From R5 view, the view will be very different ofcourse: view of the world (still simplified): cbass_mcu { navss_mcu { }; cbass_wkup{ }; cbass_main{ navss_main { msmc { }; }; }; }; Do we really need this level of representation, I am not sure I had seen this detailed a representation in other aarch64 SoCs (I am sure they are as complex as TI SoCs as well). I am trying to understand the direction and logic why we'd want to have such a detailed representation. A more flatter representation of just the main segments allow for dts reuse between r5 and a53 as well (but that is minor). Thoughts? -- Regards, Nishanth Menon