Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1375154ybl; Mon, 2 Dec 2019 02:31:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxF6JLXng6Lk9H5B2hEODepT3sG/9qonms5zrGKrS1biE3XF9drdBdyYRV3XcEJIBkc92Z+ X-Received: by 2002:aa7:d3c3:: with SMTP id o3mr24924145edr.167.1575282673699; Mon, 02 Dec 2019 02:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575282673; cv=none; d=google.com; s=arc-20160816; b=OPZiAPLqqdtvt3iK8oEKq4+OoLmQkiaaSOhv5eVCOsaBtxSHqx1cG9zhNSo4BnmFvT 1YJwKbvoWOn/CBvAn2Bij46EFmFKbYu9TOKhWi+dukl7fJNmDdzqoD0i13swTncEw4NM B+BXol6IkykzcNaBIjJ/p0NvpPf6Vopvx/062UalBva5utDtVIzKYsADkouQhAlUIVvq YwR+Q1W9W88GR59cYdilzfyftbWbev6OUSlshsQU9IdYZ1xB9e7nmZW3AtOeaXwSFdOf yfr2RQKi2a2ctpkfA/+ZNoS+lDf/J2j/SyA+tUP4JK6mlJ56XLk0J4fK5yyaGpo2aCXG OrNg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9/1mqy2ZOH2KzUBzDd4hNeNQVXjsrJ7tE9lh3JTjgNs=; b=t9HKT98SO58qANu2a71TcYsxQddrC+DB+9wD0aMNaym5bxkp4TXvT/BHxyxL+4rfRo IUm6C87KXeyePh4PlewD1E42GLxRHKvgYzPEQTR6KR2KWFxS0DCPKFWb64Jg3Ubesz0p FG41L7Qau8tGGv9MpqTMwsObIZ8Y3rI5dEyY9Vk63fbyLvYdQfedvuOP3ECvt4X0AYHM 1emIusJ2KAVEnkH2lqFh46393+6DCgyWD1kMy0WnmRNZGbLeYhgT5gKu4Hs0A2+7x2LC Ulql19P8PEuWIkEYFyiCCesq9dGJRbcVPjXr7b+PQL8K6UVrnqJP/gHR6x/RnPmmo4cX eWGQ== 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 j20si19552943ejm.348.2019.12.02.02.30.49; Mon, 02 Dec 2019 02:31:13 -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 S1727479AbfLBK30 (ORCPT + 99 others); Mon, 2 Dec 2019 05:29:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:57564 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727430AbfLBK3X (ORCPT ); Mon, 2 Dec 2019 05:29:23 -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 6E18EB2B3; Mon, 2 Dec 2019 10:29:21 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , James Tai , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 5/9] arm64: dts: realtek: rtd16xx: Carve out boot ROM from memory Date: Mon, 2 Dec 2019 11:29:06 +0100 Message-Id: <20191202102910.26916-6-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191202102910.26916-1-afaerber@suse.de> References: <20191202102910.26916-1-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update Mjolnir /memory node to exclude 0..0x2dfff from reg entry. Add this region to /soc ranges instead. Suggested-by: Rob Herring Cc: James Tai Signed-off-by: Andreas Färber --- TODO: Add Fixes header once RTD1619 has a stable -rc1 based commit hash. To be followed up by patch unshadowing more RAM from /soc 0x98000000..0xffffffff, once we know the higher RAM windows. v2: New arch/arm64/boot/dts/realtek/rtd1619-mjolnir.dts | 5 +++-- arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1619-mjolnir.dts b/arch/arm64/boot/dts/realtek/rtd1619-mjolnir.dts index 44dd67e04335..90ed6681468f 100644 --- a/arch/arm64/boot/dts/realtek/rtd1619-mjolnir.dts +++ b/arch/arm64/boot/dts/realtek/rtd1619-mjolnir.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* * Copyright (c) 2019 Realtek Semiconductor Corp. + * Copyright (c) 2019 Andreas Färber */ /dts-v1/; @@ -11,9 +12,9 @@ compatible = "realtek,mjolnir", "realtek,rtd1619"; model = "Realtek Mjolnir EVB"; - memory@0 { + memory@2e000 { device_type = "memory"; - reg = <0x0 0x80000000>; + reg = <0x2e000 0x7ffd2000>; /* boot ROM to 2 GiB */ }; chosen { diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi index c7bbf2c7bb7c..69cc0d941c8d 100644 --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi @@ -3,6 +3,7 @@ * Realtek RTD16xx SoC family * * Copyright (c) 2019 Realtek Semiconductor Corp. + * Copyright (c) 2019 Andreas Färber */ #include @@ -107,7 +108,8 @@ compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x98000000 0x98000000 0x68000000>; + ranges = <0x00000000 0x00000000 0x0002e000>, /* boot ROM */ + <0x98000000 0x98000000 0x68000000>; rbus: bus@98000000 { compatible = "simple-bus"; -- 2.16.4