From patchwork Wed Mar 15 11:19:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 663609 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97D8EC76195 for ; Wed, 15 Mar 2023 11:20:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231374AbjCOLUt (ORCPT ); Wed, 15 Mar 2023 07:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231527AbjCOLU3 (ORCPT ); Wed, 15 Mar 2023 07:20:29 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9402F12BC2 for ; Wed, 15 Mar 2023 04:20:01 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id y14so4284523wrq.4 for ; Wed, 15 Mar 2023 04:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678879194; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V4lIKxT2fGoirRHmch8dzAkOMft+emleSnT/iIO7ryY=; b=qEBZGcIwIGAd2at6H9jZUl/tx9Z9iMV7iFxl8LkThoqL36dWKkoJTyjGu+eVHPxQNz khgUsvvGOHnquG+NoUZUmaSepqq40281Gka6xbC57tvYNXy5ly/LiFF/yJpobRo1ciEx VFCwva1sU4dbHkLGVozJYUMuWPmTlZ5OqGi8ix0UftnEnbxDJ5RRlL2GzvlLoetr7cgd xajJEdOo7TUEYmd3WI2J+w7yO7mhldFqyHqI2yQ7C8H7y0AX+Tsu7y/5zqd8p7wUfyfw f6tpNz1aCJvFffVEucPGr/kllav+4+YABMbHuV6PqZh/Rl6Rajs7ZxBFZjE2AgfZcZJ2 f/UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678879194; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V4lIKxT2fGoirRHmch8dzAkOMft+emleSnT/iIO7ryY=; b=cz6EU2jeIiUEirW2CbWQPw1wR1/9v4YKt3qbXZ2W++Yp/v9/PClsBuBj+n+wv5zpp8 oHrbzDAXW1/WpxdvjBRjQ6a/FYxm1ZR8LSFOviPtAXHQFz5GwCSiRkq3Pt6gb86yGoAM gfjgujf1F1LVjT2sCLbjH/E+zhBVyXyK1TUb4F/C8+0qT4lxWph12e0TFBDJ1CE6oZAg NVQ8ISxg7tZJtCz8LlbMYyXtVp1XmnP/6nzXvBJ68MlqbOoC7Zgi9TFGJ+rWT59G1TtS 9yqXxHzVV7EJ+QEI0G2ANEQLe+w/bjbacc2AABOOC9AvnZ0DriM/j1cJlG/MtOqS2nTX AJag== X-Gm-Message-State: AO0yUKUvibDl2xF/MIGLZM7knOr25sLfeUfroK53RVthqpn5WFLxa6tv h5lU9mwli+afm32TSgKxIR8FRWGqdFq8jwEZ6+sPwA== X-Google-Smtp-Source: AK7set/Fc8+nzOWDf/h9rE6Qamjt7uImZWspknxs+LN1Fq/dt9PUbqVcXIy7K5f2TqSZE/rbZ0VQBA== X-Received: by 2002:adf:e707:0:b0:2ce:a162:784c with SMTP id c7-20020adfe707000000b002cea162784cmr1530128wrm.65.1678879194571; Wed, 15 Mar 2023 04:19:54 -0700 (PDT) Received: from lion.caleb.cas.dev (cpc76484-cwma10-2-0-cust274.7-3.cable.virginm.net. [82.31.201.19]) by smtp.gmail.com with ESMTPSA id d13-20020adffbcd000000b002c55521903bsm4250015wrs.51.2023.03.15.04.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 04:19:54 -0700 (PDT) From: Caleb Connolly To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring Cc: Caleb Connolly , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 2/2] arm64: dts: qcom: sdm850: commonise framebuffer memory Date: Wed, 15 Mar 2023 11:19:46 +0000 Message-Id: <20230315111947.3807083-2-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230315111947.3807083-1-caleb.connolly@linaro.org> References: <20230315111947.3807083-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This region needs to be reserved as it's mapped by the bootloader and the kernel doesn't currently have a way of unmapping it. Both the Galaxy Book2 and C630 use the same address and size for the framebuffer reserved memory region. Move the definition to sdm850.dtsi. The c630 was missing this region, this patch ensures that it's reserved there too. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts | 6 ------ arch/arm64/boot/dts/qcom/sdm850.dtsi | 9 +++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts b/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts index 9850140514ba..6e36ad2f2d3e 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts @@ -61,12 +61,6 @@ aliases { /* Reserved memory changes */ reserved-memory { - /* Bootloader display framebuffer region */ - cont_splash_mem: memory@80400000 { - reg = <0x0 0x80400000 0x0 0x960000>; - no-map; - }; - qseecom_mem: memory@8b500000 { reg = <0 0x8b500000 0 0xa00000>; no-map; diff --git a/arch/arm64/boot/dts/qcom/sdm850.dtsi b/arch/arm64/boot/dts/qcom/sdm850.dtsi index b787575c77a5..89eda97daa57 100644 --- a/arch/arm64/boot/dts/qcom/sdm850.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm850.dtsi @@ -9,6 +9,15 @@ /delete-node/ &cont_splash_mem; +/ { + reserved-memory { + cont_splash_mem: framebuffer@80400000 { + reg = <0x0 0x80400000 0x0 0x960000>; + no-map; + }; + }; +}; + &cpu4_opp_table { cpu4_opp33: opp-2841600000 { opp-hz = /bits/ 64 <2841600000>;