Skip to content

Commit 3b9164c

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

File tree

2 files changed

+58
-56
lines changed

2 files changed

+58
-56
lines changed

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

Lines changed: 0 additions & 56 deletions
This file was deleted.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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,imx7-src.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Freescale i.MX7 System Reset Controller
8+
9+
maintainers:
10+
- Andrey Smirnov <[email protected]>
11+
12+
description: |
13+
The system reset controller can be used to reset various set of
14+
peripherals. Device nodes that need access to reset lines should
15+
specify them as a reset phandle in their corresponding node as
16+
specified in reset.txt.
17+
18+
For list of all valid reset indices see
19+
<dt-bindings/reset/imx7-reset.h> for i.MX7,
20+
<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ, i.MX8MM and i.MX8MN,
21+
<dt-bindings/reset/imx8mp-reset.h> for i.MX8MP.
22+
23+
properties:
24+
compatible:
25+
items:
26+
- enum:
27+
- fsl,imx7d-src
28+
- fsl,imx8mq-src
29+
- fsl,imx8mp-src
30+
- const: syscon
31+
32+
reg:
33+
maxItems: 1
34+
35+
interrupts:
36+
maxItems: 1
37+
38+
'#reset-cells':
39+
const: 1
40+
41+
required:
42+
- compatible
43+
- reg
44+
- interrupts
45+
- '#reset-cells'
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/interrupt-controller/arm-gic.h>
52+
53+
reset-controller@30390000 {
54+
compatible = "fsl,imx7d-src", "syscon";
55+
reg = <0x30390000 0x2000>;
56+
interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
57+
#reset-cells = <1>;
58+
};

0 commit comments

Comments
 (0)