xref: /linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,qe-muram.yaml (revision a3a02a52bcfcbcc4a637d4b68bf1bc391c9fad02)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe-muram.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Freescale QUICC Engine Multi-User RAM (MURAM)
8
9maintainers:
10  - Frank Li <Frank.Li@nxp.com>
11
12description: Multi-User RAM (MURAM)
13
14properties:
15  compatible:
16    items:
17      - const: fsl,qe-muram
18      - const: fsl,cpm-muram
19
20  ranges:
21    maxItems: 1
22
23  "#address-cells":
24    const: 1
25
26  "#size-cells":
27    const: 1
28
29  mode:
30    $ref: /schemas/types.yaml#/definitions/string
31    enum: [host, slave]
32
33
34patternProperties:
35  '^data\-only@[a-f0-9]+$':
36    type: object
37    properties:
38      compatible:
39        items:
40          - const: fsl,qe-muram-data
41          - const: fsl,cpm-muram-data
42
43      reg:
44        maxItems: 1
45
46    required:
47      - compatible
48      - reg
49
50    additionalProperties: false
51
52required:
53  - compatible
54  - ranges
55
56additionalProperties: false
57
58examples:
59  - |
60    muram@10000 {
61        compatible = "fsl,qe-muram", "fsl,cpm-muram";
62        ranges = <0 0x00010000 0x0000c000>;
63        #address-cells = <1>;
64        #size-cells = <1>;
65
66        data-only@0{
67            compatible = "fsl,qe-muram-data",
68                         "fsl,cpm-muram-data";
69            reg = <0 0xc000>;
70        };
71     };
72