Skip to content

Commit 20c1b69

Browse files
Anson-HuangpH5
authored andcommitted
dt-bindings: reset: Convert i.MX reset to json-schema
Convert the i.MX reset binding to DT schema format using json-schema. Signed-off-by: Anson Huang <[email protected]> Reviewed-by: Dong Aisheng <[email protected]> Signed-off-by: Philipp Zabel <[email protected]>
1 parent a970137 commit 20c1b69

File tree

2 files changed

+82
-49
lines changed

2 files changed

+82
-49
lines changed

Documentation/devicetree/bindings/reset/fsl,imx-src.txt

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/fsl,imx-src.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale i.MX System Reset Controller
8+
9+
maintainers:
10+
- Philipp Zabel <[email protected]>
11+
12+
description: |
13+
The system reset controller can be used to reset the GPU, VPU,
14+
IPU, and OpenVG IP modules on i.MX5 and i.MX6 ICs. Those device
15+
nodes should specify the reset line on the SRC in their resets
16+
property, containing a phandle to the SRC device node and a
17+
RESET_INDEX specifying which module to reset, as described in
18+
reset.txt
19+
20+
The following RESET_INDEX values are valid for i.MX5:
21+
GPU_RESET 0
22+
VPU_RESET 1
23+
IPU1_RESET 2
24+
OPEN_VG_RESET 3
25+
The following additional RESET_INDEX value is valid for i.MX6:
26+
IPU2_RESET 4
27+
28+
properties:
29+
compatible:
30+
oneOf:
31+
- const: "fsl,imx51-src"
32+
- items:
33+
- const: "fsl,imx50-src"
34+
- const: "fsl,imx51-src"
35+
- items:
36+
- const: "fsl,imx53-src"
37+
- const: "fsl,imx51-src"
38+
- items:
39+
- const: "fsl,imx6q-src"
40+
- const: "fsl,imx51-src"
41+
- items:
42+
- const: "fsl,imx6sx-src"
43+
- const: "fsl,imx51-src"
44+
- items:
45+
- const: "fsl,imx6sl-src"
46+
- const: "fsl,imx51-src"
47+
- items:
48+
- const: "fsl,imx6ul-src"
49+
- const: "fsl,imx51-src"
50+
- items:
51+
- const: "fsl,imx6sll-src"
52+
- const: "fsl,imx51-src"
53+
54+
reg:
55+
maxItems: 1
56+
57+
interrupts:
58+
items:
59+
- description: SRC interrupt
60+
- description: CPU WDOG interrupts out of SRC
61+
minItems: 1
62+
maxItems: 2
63+
64+
'#reset-cells':
65+
const: 1
66+
67+
required:
68+
- compatible
69+
- reg
70+
- interrupts
71+
- '#reset-cells'
72+
73+
additionalProperties: false
74+
75+
examples:
76+
- |
77+
reset-controller@73fd0000 {
78+
compatible = "fsl,imx51-src";
79+
reg = <0x73fd0000 0x4000>;
80+
interrupts = <75>;
81+
#reset-cells = <1>;
82+
};

0 commit comments

Comments
 (0)