arm64: dts: qcom: msm8994: Add OCMEM node
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Sat, 19 Mar 2022 17:46:42 +0000 (18:46 +0100)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 13 Apr 2022 03:08:58 +0000 (22:08 -0500)
Add OCMEM node to allow for GPU SRAM access.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220319174645.340379-13-konrad.dybcio@somainline.org
arch/arm64/boot/dts/qcom/msm8992.dtsi
arch/arm64/boot/dts/qcom/msm8994.dtsi

index 1de1d9c..92c1f87 100644 (file)
                               <800000000>;
 };
 
+&ocmem {
+       reg = <0xfdd00000 0x2000>, <0xfec00000 0x100000>;
+
+       gmu-sram@0 {
+               reg = <0x0 0x80000>;
+       };
+};
+
 &rpmcc {
        compatible = "qcom,rpmcc-msm8992";
 };
index 18cf055..e4b2126 100644 (file)
                                               <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 {