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