Skip to content

Commit 7cc3d50

Browse files
Anson-Huangrobherring
authored andcommitted
dt-bindings: memory-controllers: Convert mmdc to json-schema
Convert the MMDC memory controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent f69f15a commit 7cc3d50

File tree

2 files changed

+49
-35
lines changed

2 files changed

+49
-35
lines changed

Documentation/devicetree/bindings/memory-controllers/fsl/mmdc.txt

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/memory-controllers/fsl/mmdc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale Multi Mode DDR controller (MMDC)
8+
9+
maintainers:
10+
- Anson Huang <[email protected]>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- const: fsl,imx6q-mmdc
16+
- items:
17+
- enum:
18+
- fsl,imx6qp-mmdc
19+
- fsl,imx6sl-mmdc
20+
- fsl,imx6sll-mmdc
21+
- fsl,imx6sx-mmdc
22+
- fsl,imx6ul-mmdc
23+
- fsl,imx7ulp-mmdc
24+
- const: fsl,imx6q-mmdc
25+
26+
reg:
27+
maxItems: 1
28+
29+
clocks:
30+
maxItems: 1
31+
32+
required:
33+
- compatible
34+
- reg
35+
36+
examples:
37+
- |
38+
#include <dt-bindings/clock/imx6qdl-clock.h>
39+
40+
memory-controller@21b0000 {
41+
compatible = "fsl,imx6q-mmdc";
42+
reg = <0x021b0000 0x4000>;
43+
clocks = <&clks IMX6QDL_CLK_MMDC_P0_IPG>;
44+
};
45+
46+
memory-controller@21b4000 {
47+
compatible = "fsl,imx6q-mmdc";
48+
reg = <0x021b4000 0x4000>;
49+
};

0 commit comments

Comments
 (0)