From patchwork Tue Oct 29 10:39:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13854729 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7414D2AB1D for ; Tue, 29 Oct 2024 11:03:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kA2523qYUhUEFCv+YtsYoSs5yMA+mmGNCd9m9PrUL0M=; b=vS8+ZCpvoCVjIQ/Li+zsnnAS/m VD+H5GNh7U3GBBKXtE1mbHFa6ApAN+a73aNqVLA8G9TAwycNWqCgTU9SyrT9GgJpi1Z5KZeetzOQD exJcDgZxBbDQrKh1cdAcldlHcAO559IYQPTYrTBOnxAEF/U3F9HnSU7d4duvmtWc7AT2FxDK/gctq Sq3GhqZXk4j21nD/efoMFNq66NmU+pszwQThnoLWcXVtHrLkNVcESeYRrLXf8gJP3TgCFxXuo3KYQ c3eBu5OyEByzp99U/hefUgmKAmbV5IhoExhcbxg6+N+kqbIGt5CWPin8xubKHcbIe00cSES1whk1y gaT6JS0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t5k0V-0000000E9xi-1Tg5; Tue, 29 Oct 2024 11:03:27 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t5jdh-0000000E49z-04AD; Tue, 29 Oct 2024 10:39:55 +0000 Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 9752B101578; Tue, 29 Oct 2024 10:39:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1730198390; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kA2523qYUhUEFCv+YtsYoSs5yMA+mmGNCd9m9PrUL0M=; b=OYXEJ4mQ/JPue8n7aKICB4zAyGO2GX9YXOOe8gq7FUECVLqCt/BaMKGg1wMS0x+ArP0Ses tluatSuxlWqX6PlDa/qZ0VA/1W7F8lTlSllihDhaqfH8kJGUjxGv9lkYh1dV4x9xPNcJgS RN/QtOI9Qq9j0IWETYaEBjgns3VGT1s= Received: from frank-u24.. (fttx-pool-80.245.73.173.bambit.de [80.245.73.173]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 0694C36037C; Tue, 29 Oct 2024 10:39:50 +0000 (UTC) From: Frank Wunderlich To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Frank Wunderlich , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [RFC v1 12/14] arm64: dts: mediatek: mt7988: add reserved memory Date: Tue, 29 Oct 2024 11:39:31 +0100 Message-ID: <20241029103937.45852-13-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241029103937.45852-1-linux@fw-web.de> References: <20241029103937.45852-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: a95d1809-21ad-4521-bf01-ef6152e9e13d X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241029_033953_411980_9B30E3CA X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add memory range handled by ATF to not be touched by linux kernel. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi index a3a7deda35a5..7721d2ec06ee 100644 --- a/arch/arm64/boot/dts/mediatek/mt7988a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7988a.dtsi @@ -81,6 +81,18 @@ reg_3p3v: regulator-3p3v { regulator-always-on; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* 320 KiB reserved for ARM Trusted Firmware (BL31 and BL32) */ + secmon_reserved: secmon@43000000 { + reg = <0 0x43000000 0 0x50000>; + no-map; + }; + }; + soc { compatible = "simple-bus"; ranges;