Skip to contentSkip to conversation

Convert Qualcomm RPM message RAM to a simple-mfd

RFC PATCH In review Konrad Dybcio 3 participants 19 messages Mar 11, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover Convert Qualcomm RPM message RAM to a simple-mfd

The Qualcomm RPM message RAM is a part of the RPM low-power processor's actual RAM that's exposed to the Application Processors as a MMIO-mapped region. It contains a couple of things, most notably the RPM master stats, detailing per-master (read: per-subsystem) sleep/wake statistics and an interrupt controller that's crucial to achieving full SoC clock and/or power collapse states (the MPM). This series tries to prepare the MSG RAM node to be a host for such devices.

Depends on https://lore.kernel.org/linux-arm-msm/[email protected]/

to solve a warning in the example.

The DTS commits don't add -cells or -ranges, as without children they're not of very much use. They'll be introduced along with subnodes.

---
Konrad Dybcio (15):
dt-bindings: mfd: Split out Qcom RPM MSG RAM
arm64: dts: qcom: msm8916: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8953: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8976: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8994: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8996: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8998: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: qcs404: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sdm630: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6115: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6125: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6375: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-apq8084: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-msm8226: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-msm8974: Add simple-mfd to rpm_msg_ram

 .../devicetree/bindings/mfd/qcom,rpm-msg-ram.yaml  | 82 ++++++++++++++++++++++
 Documentation/devicetree/bindings/sram/sram.yaml   |  2 -
 arch/arm/boot/dts/qcom-apq8084.dtsi                |  2 +-
 arch/arm/boot/dts/qcom-msm8226.dtsi                |  2 +-
 arch/arm/boot/dts/qcom-msm8974.dtsi                |  2 +-
 arch/arm64/boot/dts/qcom/msm8916.dtsi              |  2 +-
 arch/arm64/boot/dts/qcom/msm8953.dtsi              |  2 +-
 arch/arm64/boot/dts/qcom/msm8976.dtsi              |  2 +-
 arch/arm64/boot/dts/qcom/msm8994.dtsi              |  2 +-
 arch/arm64/boot/dts/qcom/msm8996.dtsi              |  2 +-
 arch/arm64/boot/dts/qcom/msm8998.dtsi              |  2 +-
 arch/arm64/boot/dts/qcom/qcs404.dtsi               |  2 +-
 arch/arm64/boot/dts/qcom/sdm630.dtsi               |  2 +-
 arch/arm64/boot/dts/qcom/sm6115.dtsi               |  2 +-
 arch/arm64/boot/dts/qcom/sm6125.dtsi               |  2 +-
 arch/arm64/boot/dts/qcom/sm6375.dtsi               |  2 +-
 16 files changed, 96 insertions(+), 16 deletions(-)

---
base-commit: 24469a0e5052ba01a35a15f104717a82b7a4798b
change-id: 20230311-topic-msg_ram-6b83ca812cec

Best regards,

Signature · 1 line
Konrad Dybcio <[email protected]>
#1 lore raw

RFC PATCH 1/15 dt-bindings: mfd: Split out Qcom RPM MSG RAM

The RPM Message RAM is a part of the RPM low-power core's RAM that's a MMIO-mapped region from the main ARM CPUs' POV. It contains sleep stats divided per "RPM master" (ARM cluster, *DSP, ...), an interrupt controller (MPM) that's vital in the low-power mode entry/exit sequence, as it signals the readiness to enter sleep, replays the interrupts after a total power collapse recovery and is able to receive external interrupts from other IPs (like the PMIC, TSENS and USB) on the SoC to initiate a wakeup sequence.

On top of that, it contains some regions that are (ab)used by SMEM (by design!), but we're not completely sure what ranges are r/w to/from. This would probably need to be determined on a SoC-by-SoC - or even worse
- firmware-by-firmware basis, but since this region is quite "wild west" by design (it may be accessed and altered in one form or another by all of the subsystems at the same time) this shouldn't really worry us..

Split out the bindings and re-model it as a simple-mfd to allow for better representation of the partitions within and allow child devices (MPM, master sleep stats - coming soon).

---
 .../devicetree/bindings/mfd/qcom,rpm-msg-ram.yaml  | 82 ++++++++++++++++++++++
 Documentation/devicetree/bindings/sram/sram.yaml   |  2 -
 2 files changed, 82 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/mfd/qcom,rpm-msg-ram.yaml new file +82 -0
new file mode 100644
index 000000000000..b1fee2b2d923
@@ -0,0 +1,82 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/qcom,rpm-msg-ram.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm RPM Message RAM
+
+maintainers:
+  - Konrad Dybcio <[email protected]>
+
+description:
+  Part of the remote Resource Power Manager (RPM) core's RAM is exposed to
+  the main ARM cores as a MMIO-mapped device and referred to as the RPM
+  Message RAM. It contains per-RPM-master sleep statistics, an interrupt
+  controller (MPM) that's capable of replaying interrupts after a total power
+  collapse of a given master and some memory for mailbox-like functionality.
+  An RPM master is any remote core on the SoC, including APSS (the main ARM
+  clusters), ADSP etc., depending on the platform capabilities.
+
+properties:
+  compatible:
+    items:
+      - const: qcom,rpm-msg-ram
+      - const: simple-mfd
+
+  reg:
+    maxItems: 1
+
+  # The RPM message RAM should be <=0x7000-long so 1 cell is all it needs.
+  '#address-cells':
+    const: 1
+
+  '#size-cells':
+    const: 1
+
+  ranges: true
+
+required:
+  - compatible
+  - reg
+
+patternProperties:
+  # The MPM comes at fixed offsets: 0x1b8 on MSM8996 and later, 0x1d0 before it
+  "^interrupt-controller@(1d0|1b8)":
+    type: object
+    oneOf:
+      - $ref: /schemas/interrupt-controller/qcom,mpm.yaml#
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    #include <dt-bindings/mailbox/qcom-ipcc.h>
+
+    sram@45f0000 {
+        compatible = "qcom,rpm-msg-ram", "simple-mfd";
+        reg = <0x045f0000 0x7000>;
+        #address-cells = <1>;
+        #size-cells = <1>;
+        ranges = <0 0x045f0000 0x7000>;
+
+        wakegic: interrupt-controller@1b8 {
+            compatible = "qcom,mpm";
+            reg = <0x1b8 0x48>;
+            interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
+            mboxes = <&ipcc IPCC_CLIENT_AOP IPCC_MPROC_SIGNAL_SMP2P>;
+            interrupt-controller;
+            #interrupt-cells = <2>;
+            #power-domain-cells = <0>;
+            interrupt-parent = <&intc>;
+            qcom,mpm-pin-count = <96>;
+            qcom,mpm-pin-map = <5 296>,  /* Soundwire wake_irq */
+                               <12 422>, /* DWC3 ss_phy_irq */
+                               <86 183>, /* MPM wake, SPMI */
+                               <89 314>, /* TSENS0 0C */
+                               <90 315>, /* TSENS1 0C */
+                               <93 164>, /* DWC3 dm_hs_phy_irq */
+                               <94 165>; /* DWC3 dp_hs_phy_irq */
+        };
+    };
Documentation/devicetree/bindings/sram/sram.yaml +0 -2
index 993430be355b..2e9e57b2602f 100644
@@ -34,7 +34,6 @@ properties:
         - nvidia,tegra186-sysram
         - nvidia,tegra194-sysram
         - nvidia,tegra234-sysram
-        - qcom,rpm-msg-ram
         - rockchip,rk3288-pmu-sram
 
   reg:
@@ -141,7 +140,6 @@ if:
       compatible:
         contains:
           enum:
-            - qcom,rpm-msg-ram
             - rockchip,rk3288-pmu-sram
 then:
   required:
Signature · 1 line
2.39.2
maintainer
#2 lore raw

Re: [PATCH RFC 01/15] dt-bindings: mfd: Split out Qcom RPM MSG RAM

Quoted 20 lines · Konrad Dybcio

The RPM Message RAM is a part of the RPM low-power core's RAM that's a MMIO-mapped region from the main ARM CPUs' POV. It contains sleep stats divided per "RPM master" (ARM cluster, *DSP, ...), an interrupt controller (MPM) that's vital in the low-power mode entry/exit sequence, as it signals the readiness to enter sleep, replays the interrupts after a total power collapse recovery and is able to receive external interrupts from other IPs (like the PMIC, TSENS and USB) on the SoC to initiate a wakeup sequence.

On top of that, it contains some regions that are (ab)used by SMEM (by design!), but we're not completely sure what ranges are r/w to/from. This would probably need to be determined on a SoC-by-SoC - or even worse
- firmware-by-firmware basis, but since this region is quite "wild west" by design (it may be accessed and altered in one form or another by all of the subsystems at the same time) this shouldn't really worry us..

Split out the bindings and re-model it as a simple-mfd to allow for better representation of the partitions within and allow child devices (MPM, master sleep stats - coming soon).

Quoted 6 lines
---
 .../devicetree/bindings/mfd/qcom,rpm-msg-ram.yaml  | 82 ++++++++++++++++++++++
 Documentation/devicetree/bindings/sram/sram.yaml   |  2 -
 2 files changed, 82 insertions(+), 2 deletions(-)

My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):

yamllint warnings/errors:

dtschema/dtc warnings/errors:
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/soc/qcom/qcom,smem.example.dtb: sram@fc428000: compatible: ['qcom,rpm-msg-ram'] is too short
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/qcom,rpm-msg-ram.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/qcom,rpm-msg-ram.example.dtb: sram@45f0000: interrupt-controller@1b8: 'oneOf' conditional failed, one must be fixed:
'#power-domain-cells' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/qcom,rpm-msg-ram.yaml
/builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/mfd/qcom,rpm-msg-ram.example.dtb: interrupt-controller@1b8: '#power-domain-cells' does not match any of the regexes: 'pinctrl-[0-9]+'
From schema: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml

doc reference errors (make refcheckdocs):

See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.

#3 lore raw

RFC PATCH 2/15 arm64: dts: qcom: msm8916: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8916.dtsi +1 -1
index 0733c2f4f379..ce27709bd4a6 100644
@@ -510,7 +510,7 @@ tsens_mode: mode@ec {
 		};
 
 		rpm_msg_ram: sram@60000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x00060000 0x8000>;
 		};
 
Signature · 1 line
2.39.2
#4 lore raw

RFC PATCH 3/15 arm64: dts: qcom: msm8953: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/msm8953.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8953.dtsi +1 -1
index 610f3e3fc0c2..2a8201ab0c37 100644
@@ -351,7 +351,7 @@ soc: soc@0 {
 		compatible = "simple-bus";
 
 		rpm_msg_ram: sram@60000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x60000 0x8000>;
 		};
 
Signature · 1 line
2.39.2
#5 lore raw

RFC PATCH 4/15 arm64: dts: qcom: msm8976: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/msm8976.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8976.dtsi +1 -1
index 2d360d05aa5e..93871d975fb6 100644
@@ -457,7 +457,7 @@ rng@22000 {
 		};
 
 		rpm_msg_ram: sram@60000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x00060000 0x8000>;
 		};
 
Signature · 1 line
2.39.2
#6 lore raw

RFC PATCH 5/15 arm64: dts: qcom: msm8994: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/msm8994.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8994.dtsi +1 -1
index 9ff9d35496d2..37f7c0b2fbdc 100644
@@ -731,7 +731,7 @@ gcc: clock-controller@fc400000 {
 		};
 
 		rpm_msg_ram: sram@fc428000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0xfc428000 0x4000>;
 		};
 
Signature · 1 line
2.39.2
#7 lore raw

RFC PATCH 6/15 arm64: dts: qcom: msm8996: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -1
index 905678e7175d..9a0c1ebf1e52 100644
@@ -679,7 +679,7 @@ pciephy_2: phy@3000 {
 		};
 
 		rpm_msg_ram: sram@68000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x00068000 0x6000>;
 		};
 
Signature · 1 line
2.39.2
#8 lore raw

RFC PATCH 7/15 arm64: dts: qcom: msm8998: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/msm8998.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8998.dtsi +1 -1
index 8bc1c59127e5..6efa1bd138bc 100644
@@ -833,7 +833,7 @@ gcc: clock-controller@100000 {
 		};
 
 		rpm_msg_ram: sram@778000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x00778000 0x7000>;
 		};
 
Signature · 1 line
2.39.2
#9 lore raw

RFC PATCH 8/15 arm64: dts: qcom: qcs404: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/qcs404.dtsi +1 -1
index bc2ed73afb74..474a042f89f3 100644
@@ -317,7 +317,7 @@ turingcc: clock-controller@800000 {
 		};
 
 		rpm_msg_ram: sram@60000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x00060000 0x6000>;
 		};
 
Signature · 1 line
2.39.2
#10 lore raw

RFC PATCH 9/15 arm64: dts: qcom: sdm630: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/sdm630.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm630.dtsi +1 -1
index 5827cda270a0..e85ec7979d4e 100644
@@ -548,7 +548,7 @@ gcc: clock-controller@100000 {
 		};
 
 		rpm_msg_ram: sram@778000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x00778000 0x7000>;
 		};
 
Signature · 1 line
2.39.2
#11 lore raw

RFC PATCH 10/15 arm64: dts: qcom: sm6115: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm6115.dtsi +1 -1
index fbd67d2c8d78..985c9bd55f05 100644
@@ -705,7 +705,7 @@ tsens0: thermal-sensor@4410000 {
 		};
 
 		rpm_msg_ram: sram@45f0000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x0 0x045f0000 0x0 0x7000>;
 		};
 
Signature · 1 line
2.39.2
#12 lore raw

RFC PATCH 11/15 arm64: dts: qcom: sm6125: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/sm6125.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm6125.dtsi +1 -1
index 65033227718a..fb3cb9c39daf 100644
@@ -678,7 +678,7 @@ hsusb_phy1: phy@1613000 {
 		};
 
 		rpm_msg_ram: sram@45f0000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0x045f0000 0x7000>;
 		};
 
Signature · 1 line
2.39.2
#13 lore raw

RFC PATCH 12/15 arm64: dts: qcom: sm6375: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm64/boot/dts/qcom/sm6375.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm6375.dtsi +1 -1
index 068ee4f72485..7fb158cae948 100644
@@ -714,7 +714,7 @@ spmi_bus: spmi@1c40000 {
 		};
 
 		rpm_msg_ram: sram@45f0000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0 0x045f0000 0 0x7000>;
 		};
 
Signature · 1 line
2.39.2
#14 lore raw

RFC PATCH 13/15 ARM: dts: qcom-apq8084: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm/boot/dts/qcom-apq8084.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom-apq8084.dtsi +1 -1
index fabd7455eb8f..c6b33dce6fe8 100644
@@ -716,7 +716,7 @@ tcsr_mutex: hwlock@fd484000 {
 		};
 
 		rpm_msg_ram: sram@fc428000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0xfc428000 0x4000>;
 		};
 
Signature · 1 line
2.39.2
#15 lore raw

RFC PATCH 14/15 ARM: dts: qcom-msm8226: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm/boot/dts/qcom-msm8226.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom-msm8226.dtsi +1 -1
index c373081bc21b..b4fb6749fdf8 100644
@@ -587,7 +587,7 @@ frame@f9028000 {
 		};
 
 		rpm_msg_ram: sram@fc428000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0xfc428000 0x4000>;
 		};
 
Signature · 1 line
2.39.2
#16 lore raw

RFC PATCH 15/15 ARM: dts: qcom-msm8974: Add simple-mfd to rpm_msg_ram

In reply to Konrad Dybcio

Add the missing compatible to make the node compliant with the bindings.

---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom-msm8974.dtsi +1 -1
index 834ad95515b1..fdc0522fcc0f 100644
@@ -1064,7 +1064,7 @@ gcc: clock-controller@fc400000 {
 		};
 
 		rpm_msg_ram: sram@fc428000 {
-			compatible = "qcom,rpm-msg-ram";
+			compatible = "qcom,rpm-msg-ram", "simple-mfd";
 			reg = <0xfc428000 0x4000>;
 		};
 
Signature · 1 line
2.39.2
#17 lore raw
In reply to Konrad Dybcio
Quoted 26 lines · Konrad Dybcio

The Qualcomm RPM message RAM is a part of the RPM low-power processor's actual RAM that's exposed to the Application Processors as a MMIO-mapped region. It contains a couple of things, most notably the RPM master stats, detailing per-master (read: per-subsystem) sleep/wake statistics and an interrupt controller that's crucial to achieving full SoC clock and/or power collapse states (the MPM). This series tries to prepare the MSG RAM node to be a host for such devices.

Depends on https://lore.kernel.org/linux-arm-msm/[email protected]/

to solve a warning in the example.

The DTS commits don't add -cells or -ranges, as without children they're not of very much use. They'll be introduced along with subnodes.

---
Konrad Dybcio (15):
dt-bindings: mfd: Split out Qcom RPM MSG RAM
arm64: dts: qcom: msm8916: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8953: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8976: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8994: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8996: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8998: Add simple-mfd to rpm_msg_ram

Quoted 8 lines

arm64: dts: qcom: qcs404: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sdm630: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6115: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6125: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6375: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-apq8084: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-msm8226: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-msm8974: Add simple-mfd to rpm_msg_ram

These commits do not demonstrate the need for simple-mfd (other than qcom,mpm being mentioned in bindings). I'd suggest limiting the RFC to a single platform populated with rpm_msg_ram child devices. This way we can better understand the needs and the requirements for these patches.

Signature · 2 lines
With best wishes
Dmitry
#18 lore raw
Quoted 36 lines · Dmitry Baryshkov
Quoted 26 lines · Konrad Dybcio

The Qualcomm RPM message RAM is a part of the RPM low-power processor's actual RAM that's exposed to the Application Processors as a MMIO-mapped region. It contains a couple of things, most notably the RPM master stats, detailing per-master (read: per-subsystem) sleep/wake statistics and an interrupt controller that's crucial to achieving full SoC clock and/or power collapse states (the MPM). This series tries to prepare the MSG RAM node to be a host for such devices.

Depends on https://lore.kernel.org/linux-arm-msm/[email protected]/

to solve a warning in the example.

The DTS commits don't add -cells or -ranges, as without children they're not of very much use. They'll be introduced along with subnodes.

---
Konrad Dybcio (15):
dt-bindings: mfd: Split out Qcom RPM MSG RAM
arm64: dts: qcom: msm8916: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8953: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8976: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8994: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8996: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: msm8998: Add simple-mfd to rpm_msg_ram

Quoted 8 lines

arm64: dts: qcom: qcs404: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sdm630: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6115: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6125: Add simple-mfd to rpm_msg_ram
arm64: dts: qcom: sm6375: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-apq8084: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-msm8226: Add simple-mfd to rpm_msg_ram
ARM: dts: qcom-msm8974: Add simple-mfd to rpm_msg_ram

Quoted 5 lines

These commits do not demonstrate the need for simple-mfd (other than qcom,mpm being mentioned in bindings). I'd suggest limiting the RFC to a single platform populated with rpm_msg_ram child devices. This way we can better understand the needs and the requirements for these patches.

Right.. I was debating whether to just send the bindings as a RFC, but then I'd have to make simple-mfd optional just to retire it soon..

Konrad

Quoted 2 lines