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