ARM: qcom: msm8974: Add rpm-master-stats node
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>
Fri, 22 Sep 2023 00:35:33 +0000 (03:35 +0300)
committerBjorn Andersson <andersson@kernel.org>
Wed, 27 Sep 2023 23:07:59 +0000 (16:07 -0700)
Add rpm-master-stats node for MSM8974 and the required RPM MSG RAM
slices for memory access.

Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
Reviewed-by: Luca Weiss <luca@z3ntu.xyz>
Link: https://lore.kernel.org/r/20230922003533.107835-3-matti.lehtimaki@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/boot/dts/qcom/qcom-msm8974.dtsi

index 706fef53767e10b2dcaae2ab8cd8fee01a778df7..0bc2e66d15b15621aa506ff2a3e0ad7fd300035e 100644 (file)
        rpm: remoteproc {
                compatible = "qcom,msm8974-rpm-proc", "qcom,rpm-proc";
 
+               master-stats {
+                       compatible = "qcom,rpm-master-stats";
+                       qcom,rpm-msg-ram = <&apss_master_stats>,
+                                          <&mpss_master_stats>,
+                                          <&lpss_master_stats>,
+                                          <&pronto_master_stats>;
+                       qcom,master-names = "APSS",
+                                           "MPSS",
+                                           "LPSS",
+                                           "PRONTO";
+               };
+
                smd-edge {
                        interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
                        qcom,ipc = <&apcs 8 0>;
                rpm_msg_ram: sram@fc428000 {
                        compatible = "qcom,rpm-msg-ram";
                        reg = <0xfc428000 0x4000>;
+
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0 0xfc428000 0x4000>;
+
+                       apss_master_stats: sram@150 {
+                               reg = <0x150 0x14>;
+                       };
+
+                       mpss_master_stats: sram@b50 {
+                               reg = <0xb50 0x14>;
+                       };
+
+                       lpss_master_stats: sram@1550 {
+                               reg = <0x1550 0x14>;
+                       };
+
+                       pronto_master_stats: sram@1f50 {
+                               reg = <0x1f50 0x14>;
+                       };
                };
 
                bimc: interconnect@fc380000 {