All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@somainline.org>
To: ~postmarketos/upstreaming@lists.sr.ht
Cc: martin.botka@somainline.org,
	angelogioacchino.delregno@somainline.org,
	marijn.suijten@somainline.org, jamipkettunen@somainline.org,
	Konrad Dybcio <konrad.dybcio@somainline.org>,
	Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 12/15] arm64: dts: qcom: msm8994: Add OCMEM node
Date: Sat, 19 Mar 2022 18:46:42 +0100	[thread overview]
Message-ID: <20220319174645.340379-13-konrad.dybcio@somainline.org> (raw)
In-Reply-To: <20220319174645.340379-1-konrad.dybcio@somainline.org>

Add OCMEM node to allow for GPU SRAM access.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
---
 arch/arm64/boot/dts/qcom/msm8992.dtsi |  8 ++++++++
 arch/arm64/boot/dts/qcom/msm8994.dtsi | 17 +++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/msm8992.dtsi b/arch/arm64/boot/dts/qcom/msm8992.dtsi
index 1de1d9c4643d..92c1f87d6bba 100644
--- a/arch/arm64/boot/dts/qcom/msm8992.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8992.dtsi
@@ -24,6 +24,14 @@ &mmcc {
 			       <800000000>;
 };
 
+&ocmem {
+	reg = <0xfdd00000 0x2000>, <0xfec00000 0x100000>;
+
+	gmu-sram@0 {
+		reg = <0x0 0x80000>;
+	};
+};
+
 &rpmcc {
 	compatible = "qcom,rpmcc-msm8992";
 };
diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi
index a2210cf9d0b4..2f531e93f3c6 100644
--- a/arch/arm64/boot/dts/qcom/msm8994.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi
@@ -1052,6 +1052,23 @@ mmcc: clock-controller@fd8c0000 {
 					       <960000000>,
 					       <600000000>;
 		};
+
+		ocmem: ocmem@fdd00000 {
+			compatible = "qcom,msm8974-ocmem";
+			reg = <0xfdd00000 0x2000>,
+			      <0xfec00000 0x200000>;
+			reg-names = "ctrl", "mem";
+			clocks = <&rpmcc RPM_SMD_OCMEMGX_CLK>,
+				 <&mmcc OCMEMCX_OCMEMNOC_CLK>;
+			clock-names = "core", "iface";
+
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			gmu_sram: gmu-sram@0 {
+				reg = <0x0 0x180000>;
+			};
+		};
 	};
 
 	timer: timer {
-- 
2.35.1


  parent reply	other threads:[~2022-03-19 17:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20220319174645.340379-1-konrad.dybcio@somainline.org>
2022-03-19 17:46 ` [PATCH 01/15] arm64: dts: qcom: msm8994: Fix sleep clock name Konrad Dybcio
2022-03-23 21:06   ` Petr Vorel
2022-03-19 17:46 ` [PATCH 02/15] arm64: dts: qcom: msm8992-libra: Add CPU regulators Konrad Dybcio
2022-03-19 17:46 ` [PATCH 03/15] arm64: dts: qcom: msm8992-libra: Temporarily restrict CPU count to 1 Konrad Dybcio
2022-03-19 17:46 ` [PATCH 04/15] arm64: dts: qcom: msm8992-libra: Remove superfluous status = "okay" Konrad Dybcio
2022-03-19 17:46 ` [PATCH 05/15] arm64: dts: qcom: msm8994: Add MMCC node Konrad Dybcio
2022-03-19 17:46 ` [PATCH 06/15] arm64: dts: qcom: msm8992: Use the correct GCC compatible Konrad Dybcio
2022-03-23 21:12   ` Petr Vorel
2022-03-19 17:46 ` [PATCH 07/15] arm64: dts: qcom: msm8992: Use the correct MMCC compatible Konrad Dybcio
2022-03-19 17:46 ` [PATCH 08/15] arm64: dts: qcom: msm8994: Fix the cont_splash_mem address Konrad Dybcio
2022-03-19 17:46 ` [PATCH 09/15] arm64: dts: qcom: msm8992-libra: Fix up the framebuffer Konrad Dybcio
2022-03-19 18:19   ` Konrad Dybcio
2022-03-19 17:46 ` [PATCH 10/15] arm64: dts: qcom: msm8994-kitakami: Disable a mistakengly enabled I2C host Konrad Dybcio
2022-03-19 17:46 ` [PATCH 11/15] arm64: dts: qcom: msm8994-kitakami: Update regulator configuration Konrad Dybcio
2022-03-19 17:46 ` Konrad Dybcio [this message]
2022-03-19 17:46 ` [PATCH 13/15] arm64: dts: qcom: msm8994: Fix BLSP[12]_DMA channels count Konrad Dybcio
2022-03-19 17:46 ` [PATCH 14/15] arm64: dts: qcom: msm8994: Add watchdog timer node Konrad Dybcio
2022-03-19 17:46 ` [PATCH 15/15] arm64: dts: qcom: msm8994: Add mmc aliases Konrad Dybcio
2022-03-23 21:25   ` Petr Vorel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220319174645.340379-13-konrad.dybcio@somainline.org \
    --to=konrad.dybcio@somainline.org \
    --cc=agross@kernel.org \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jamipkettunen@somainline.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=martin.botka@somainline.org \
    --cc=robh+dt@kernel.org \
    --cc=~postmarketos/upstreaming@lists.sr.ht \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.