Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3872651ybc; Thu, 14 Nov 2019 16:20:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzw+QdUu/9yx+fZmD5yf6AhIaamU10Ver8N1Hl7Ug9ITS5BRtOK62eYCHbXazxwBiHH5H32 X-Received: by 2002:a1c:39c2:: with SMTP id g185mr11167653wma.88.1573777228438; Thu, 14 Nov 2019 16:20:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573777228; cv=none; d=google.com; s=arc-20160816; b=MsLuRPR85YRphKNzrE/U2XUs+oY975/zI1jqKVIDLywmgreLxLm/1tTLUq7GYAHdbw 0P7Scc9FF70DgCB/V2yWAkfBh4JNdv9PhgfBg79jwKEos/d55/Tyr2+Yp++EGaG/gWD7 MZvB+O0ZQ2rUexlh2pKDrp9smMYKGk0Na7Z7yFg46gpxoP2uLyC/3Ifs8s6DwpzuzB3j I0VBLOWf6bc2WIS5YzmBhsWGK5JJP1eS35DXQCXr1BK1XRg1cf6H0JbSA7ADKDYJQ6h2 KiXB7cX4wVoGIw6nEOP200bKa4gIqvMkI7FgYRXamW8RHdDYUiLQrc2hyJ0Q1ms7Burv zb3g== 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:organization:from:references:cc:to:subject; bh=eonYD8pqI/nOn8617Yhtg8e5b9j5uefib/7L8xOFv30=; b=SQ8f7TKH6hDbZpGQwCSkeNcvvOWvMmFX2BtuEev5akVuq27AaYqG9oLowsulhqt4/I 1pYhUvhY9Xr9qP2GxWwmX3Xu8J3AeoIw71WX2mEbzaFgPNBLD+VY+t29nw7tSK24Hl/9 FUK5jguS39D/9TpJm00+ljucEj7Pb1UXt+trk63MJ0h6PDDkbLSRaJHJyofJpl9eSzFQ ie5Wo6wJrny2fw603NdZFWTNNIJP0XgY5QrayFzor1dYVH2A3z9AtyUa7E3myx06MH22 Oi7wK4sGKjDLs5zHLjvHKVujEjfXYkJSlCHWwt9iJJwRTyfPBFqtYX6UykJMJtFipXqf A8pw== 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 j7si4505330ejf.155.2019.11.14.16.20.03; Thu, 14 Nov 2019 16:20:28 -0800 (PST) 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 S1727069AbfKOAQv (ORCPT + 99 others); Thu, 14 Nov 2019 19:16:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:58860 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726852AbfKOAQv (ORCPT ); Thu, 14 Nov 2019 19:16:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 26C1DAD78; Fri, 15 Nov 2019 00:16:49 +0000 (UTC) Subject: Re: [PATCH 5/7] ARM: dts: rtd1195: Introduce r-bus To: James Tai Cc: "linux-realtek-soc@lists.infradead.org" , Mark Rutland , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Rob Herring , "linux-arm-kernel@lists.infradead.org" References: <20191111030434.29977-1-afaerber@suse.de> <20191111030434.29977-6-afaerber@suse.de> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: <960a80b9-b1bf-3709-bbb7-fc2a3c3ae1da@suse.de> Date: Fri, 15 Nov 2019 01:16:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, Am 13.11.19 um 03:53 schrieb James Tai: >> + rbus: r-bus@18000000 { >> + compatible = "simple-bus"; >> + reg = <0x18000000 0x100000>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges = <0x0 0x18000000 0x100000>; >> + > > The r-bus size of RTD1195 is 0x70000‬. Fixed, also further above for the soc node. This now leaves a gap until 0x18100000 - is that gap RAM or non-r-bus registers then? ranges = <0x18000000 0x18000000 0x00070000>, <0x18100000 0x18100000 0x01000000>, <0x40000000 0x40000000 0xc0000000>; Did you also review the other two ranges? The middle one was labeled NOR flash somewhere - are start and size correct? The final one depends on the maximum RAM size - does RTD1195 allow more than 1 GiB RAM? All non-RAM regions should be covered here. So another question, applicable to all SoCs: This reserved Boot ROM area at the start of the address space, here of size 0xa800, is that copied into RAM, or is that the actual ROM overlapping RAM? If the latter, we should exclude it from /memory@0's reg (making it /memory@a800), and add it to soc's ranges here for correctness. With the follow-up question: Is it correct that, given the size 0xa800, I have a gap between /memreserve/s from 0xa800 to 0xc000, or should we reserve that gap by extending the next /memreserve/ or inserting one? Thanks, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)