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