From patchwork Thu Jun 15 14:27:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 13281342 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 AC141EB64DB for ; Thu, 15 Jun 2023 14:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345040AbjFOO1W (ORCPT ); Thu, 15 Jun 2023 10:27:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344488AbjFOO1U (ORCPT ); Thu, 15 Jun 2023 10:27:20 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AED52707 for ; Thu, 15 Jun 2023 07:27:18 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-66643830ab3so1893747b3a.0 for ; Thu, 15 Jun 2023 07:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686839238; x=1689431238; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=Fx/MdSHrygrfEupx7fTJALuFQUBdMezRza5vPp79ZkY=; b=cRJMxBwFjT6tpqn0cHuWuzLwWGZ6XxpeFtiKltWubxfumAn3MQknDaIO2bpeJviJIP Myxw86vLE/iHzzEOvzOl6ZbjsFvVCOCc141lF0pa1y+tQoXVfO9Ru0ausAvlueYeT7vO 151VMNn28Pu8ppWqauTvZbyhYmWT05ybgn9UY7HXZ+H8YIjhRLxyjjS+mrP2sq5n+Jvv LkN9xtjoVF4HHJpYoaE4DnyORPj6xUKufyatUXQs+kT2slLhO9LxcFVhHBAQPOz6QsdM ROdTv7Am2hbUJ32IX8jnbLeYD8GCkky1KmScdkWxtuFfhs3sds20bNS+0sx1UQPbLUbU vrew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686839238; x=1689431238; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Fx/MdSHrygrfEupx7fTJALuFQUBdMezRza5vPp79ZkY=; b=YjztEbD4TBKqymywt/EJ+J2BYHrocDpjPq7kwvGdcll7VinCCeC42KjK+O57x9nos1 eoYELzQLT+cacVZ34N+IqjA4W7AOZ4kVGd/DZK3ALyfU7c+jZKOQUqHpj1yEhL+fZjfQ k6uIJ5EfSQZJk2Z+aFCi63n5fY90TpLdvgoSglk//UnFZDMt03jixzqvLPixXp/tdS8H VjzjlifgicGYc4rhbWR64PQQrKPKcBVFxthNQvyJv9H0nldV7EJ61RrrsvM/li5LrrbJ nK55HVFWpaDJIlu1s5km8F62hkGJGXq0yKoZG/Q1fdlXq3GrzueVmt6cv94MxjDDc/6g vcog== X-Gm-Message-State: AC+VfDzBANDHYJW0VZlsjH/+jxkEsaZaGHXVIMENcA4JJd8REs6OV7/Q FH0a16/LWt8yDTq9unLZWIfF8A== X-Google-Smtp-Source: ACHHUZ6cBthXcPeaMlmqQaMPOJfo1WlbQqotxd59hdZakq6AXsSziHWknx0+CFlx/FoZf2AvGjjFBg== X-Received: by 2002:a05:6a20:7d94:b0:10b:8221:3348 with SMTP id v20-20020a056a207d9400b0010b82213348mr6100156pzj.50.1686839237796; Thu, 15 Jun 2023 07:27:17 -0700 (PDT) Received: from localhost.localdomain ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id y9-20020a655a09000000b005287a0560c9sm11931577pgs.1.2023.06.15.07.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 07:27:17 -0700 (PDT) From: Amit Pundir To: Bjorn Andersson , Andy Gross , Dmitry Baryshkov , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Caleb Connolly Cc: linux-arm-msm , dt , lkml Subject: [PATCH v2] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Thu, 15 Jun 2023 19:57:11 +0530 Message-Id: <20230615142711.2994811-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Author: Amit Pundir Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Adding a reserved memory region for the framebuffer memory (the splash memory region set up by the bootloader). Signed-off-by: Amit Pundir --- v2: Updated commit message. There was some dicussion on v1 but it didn't go anywhere, https://lore.kernel.org/linux-kernel/20230124182857.1524912-1-amit.pundir@linaro.org/T/#u. The general consensus is that this memory should be freed and be made resuable but that (releasing this piece of memory) has been tried before and it is not trivial to return the reserved memory node to the system RAM pool in this case. arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index e14fe9bbb386..10a06ee8e262 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -101,6 +101,14 @@ hdmi_con: endpoint { }; }; + reserved-memory { + /* Cont splash region set up by the bootloader */ + cont_splash_mem: framebuffer@9d400000 { + reg = <0x0 0x9d400000 0x0 0x2400000>; + no-map; + }; + }; + lt9611_1v8: lt9611-vdd18-regulator { compatible = "regulator-fixed"; regulator-name = "LT9611_1V8";