1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sram/qcom,imem.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm IMEM memory region
8
9maintainers:
10  - Bjorn Andersson <bjorn.andersson@linaro.org>
11
12description:
13  Qualcomm IMEM is dedicated memory region for various debug features and DMA
14  transactions.
15
16properties:
17  compatible:
18    items:
19      - enum:
20          - qcom,apq8064-imem
21          - qcom,msm8974-imem
22          - qcom,qcs404-imem
23          - qcom,sc7180-imem
24          - qcom,sc7280-imem
25          - qcom,sdm630-imem
26          - qcom,sdm845-imem
27          - qcom,sdx55-imem
28          - qcom,sdx65-imem
29          - qcom,sm8450-imem
30      - const: syscon
31      - const: simple-mfd
32
33  reg:
34    maxItems: 1
35
36  ranges: true
37
38  '#address-cells':
39    const: 1
40
41  '#size-cells':
42    const: 1
43
44  reboot-mode:
45    $ref: /schemas/power/reset/syscon-reboot-mode.yaml#
46
47patternProperties:
48  "^pil-reloc@[0-9a-f]+$":
49    $ref: /schemas/remoteproc/qcom,pil-info.yaml#
50    description: Peripheral image loader relocation region
51
52required:
53  - compatible
54  - reg
55
56additionalProperties: false
57
58examples:
59  - |
60    soc {
61        #address-cells = <2>;
62        #size-cells = <2>;
63
64        sram@146bf000 {
65            compatible = "qcom,sdm845-imem", "syscon", "simple-mfd";
66            reg = <0 0x146bf000 0 0x1000>;
67            ranges = <0 0 0x146bf000 0x1000>;
68
69            #address-cells = <1>;
70            #size-cells = <1>;
71
72            pil-reloc@94c {
73                compatible = "qcom,pil-reloc-info";
74                reg = <0x94c 0xc8>;
75            };
76        };
77    };
78