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 <[email protected]>
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,msm8226-imem
22          - qcom,msm8974-imem
23          - qcom,msm8976-imem
24          - qcom,qcs404-imem
25          - qcom,qcs8300-imem
26          - qcom,qdu1000-imem
27          - qcom,sa8775p-imem
28          - qcom,sc7180-imem
29          - qcom,sc7280-imem
30          - qcom,sdm630-imem
31          - qcom,sdm845-imem
32          - qcom,sdx55-imem
33          - qcom,sdx65-imem
34          - qcom,sm6375-imem
35          - qcom,sm8450-imem
36      - const: syscon
37      - const: simple-mfd
38
39  reg:
40    maxItems: 1
41
42  ranges: true
43
44  '#address-cells':
45    const: 1
46
47  '#size-cells':
48    const: 1
49
50  reboot-mode:
51    $ref: /schemas/power/reset/syscon-reboot-mode.yaml#
52
53patternProperties:
54  "^pil-reloc@[0-9a-f]+$":
55    $ref: /schemas/remoteproc/qcom,pil-info.yaml#
56    description: Peripheral image loader relocation region
57
58required:
59  - compatible
60  - reg
61
62additionalProperties: false
63
64examples:
65  - |
66    soc {
67        #address-cells = <2>;
68        #size-cells = <2>;
69
70        sram@146bf000 {
71            compatible = "qcom,sdm845-imem", "syscon", "simple-mfd";
72            reg = <0 0x146bf000 0 0x1000>;
73            ranges = <0 0 0x146bf000 0x1000>;
74
75            #address-cells = <1>;
76            #size-cells = <1>;
77
78            pil-reloc@94c {
79                compatible = "qcom,pil-reloc-info";
80                reg = <0x94c 0xc8>;
81            };
82        };
83    };
84