Skip to content

Commit ca59629

Browse files
konradybcioKAGA-KOKO
authored andcommitted
dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle
Due to the wild nature of the Qualcomm RPM Message RAM, the kernel can't really use 'reg' to point to the MPM's slice of Message RAM without cutting into an already-defined RPM MSG RAM node used for GLINK and SMEM. Document passing the register space as a slice of SRAM through the qcom,rpm-msg-ram property. This also makes 'reg' deprecated. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v7-1-6ee2bfeaac2c@linaro.org
1 parent 1cf0697 commit ca59629

1 file changed

Lines changed: 35 additions & 17 deletions

File tree

  • Documentation/devicetree/bindings/interrupt-controller

Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ properties:
2929
maxItems: 1
3030
description:
3131
Specifies the base address and size of vMPM registers in RPM MSG RAM.
32+
deprecated: true
33+
34+
qcom,rpm-msg-ram:
35+
$ref: /schemas/types.yaml#/definitions/phandle
36+
description:
37+
Phandle to the APSS MPM slice of the RPM Message RAM
3238

3339
interrupts:
3440
maxItems: 1
@@ -64,33 +70,45 @@ properties:
6470

6571
required:
6672
- compatible
67-
- reg
6873
- interrupts
6974
- mboxes
7075
- interrupt-controller
7176
- '#interrupt-cells'
7277
- qcom,mpm-pin-count
7378
- qcom,mpm-pin-map
79+
- qcom,rpm-msg-ram
7480

7581
additionalProperties: false
7682

7783
examples:
7884
- |
7985
#include <dt-bindings/interrupt-controller/arm-gic.h>
80-
mpm: interrupt-controller@45f01b8 {
81-
compatible = "qcom,mpm";
82-
interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
83-
reg = <0x45f01b8 0x1000>;
84-
mboxes = <&apcs_glb 1>;
85-
interrupt-controller;
86-
#interrupt-cells = <2>;
87-
interrupt-parent = <&intc>;
88-
qcom,mpm-pin-count = <96>;
89-
qcom,mpm-pin-map = <2 275>,
90-
<5 296>,
91-
<12 422>,
92-
<24 79>,
93-
<86 183>,
94-
<90 260>,
95-
<91 260>;
86+
87+
remoteproc-rpm {
88+
compatible = "qcom,msm8998-rpm-proc", "qcom,rpm-proc";
89+
90+
glink-edge {
91+
compatible = "qcom,glink-rpm";
92+
93+
interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
94+
qcom,rpm-msg-ram = <&rpm_msg_ram>;
95+
mboxes = <&apcs_glb 0>;
96+
};
97+
98+
mpm: interrupt-controller {
99+
compatible = "qcom,mpm";
100+
qcom,rpm-msg-ram = <&apss_mpm>;
101+
interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
102+
mboxes = <&apcs_glb 1>;
103+
interrupt-controller;
104+
#interrupt-cells = <2>;
105+
interrupt-parent = <&intc>;
106+
qcom,mpm-pin-count = <96>;
107+
qcom,mpm-pin-map = <2 275>,
108+
<5 296>,
109+
<12 422>,
110+
<24 79>,
111+
<86 183>,
112+
<91 260>;
113+
};
96114
};

0 commit comments

Comments
 (0)