Skip to content

Commit f840df4

Browse files
masahir0yrobherring
authored andcommitted
dt-bindings: reset: Convert UniPhier reset to json-schema
Convert the UniPhier reset controller binding to DT schema format. I excluded the glue resets because their bindings are too different. Signed-off-by: Masahiro Yamada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent c46ed28 commit f840df4

File tree

2 files changed

+113
-120
lines changed

2 files changed

+113
-120
lines changed
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/reset/socionext,uniphier-reset.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: UniPhier reset controller
8+
9+
maintainers:
10+
- Masahiro Yamada <[email protected]>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- description: System reset
16+
enum:
17+
- socionext,uniphier-ld4-reset
18+
- socionext,uniphier-pro4-reset
19+
- socionext,uniphier-sld8-reset
20+
- socionext,uniphier-pro5-reset
21+
- socionext,uniphier-pxs2-reset
22+
- socionext,uniphier-ld6b-reset
23+
- socionext,uniphier-ld11-reset
24+
- socionext,uniphier-ld20-reset
25+
- socionext,uniphier-pxs3-reset
26+
- description: Media I/O (MIO) reset, SD reset
27+
enum:
28+
- socionext,uniphier-ld4-mio-reset
29+
- socionext,uniphier-pro4-mio-reset
30+
- socionext,uniphier-sld8-mio-reset
31+
- socionext,uniphier-pro5-sd-reset
32+
- socionext,uniphier-pxs2-sd-reset
33+
- socionext,uniphier-ld11-mio-reset
34+
- socionext,uniphier-ld11-sd-reset
35+
- socionext,uniphier-ld20-sd-reset
36+
- socionext,uniphier-pxs3-sd-reset
37+
- description: Peripheral reset
38+
enum:
39+
- socionext,uniphier-ld4-peri-reset
40+
- socionext,uniphier-pro4-peri-reset
41+
- socionext,uniphier-sld8-peri-reset
42+
- socionext,uniphier-pro5-peri-reset
43+
- socionext,uniphier-pxs2-peri-reset
44+
- socionext,uniphier-ld11-peri-reset
45+
- socionext,uniphier-ld20-peri-reset
46+
- socionext,uniphier-pxs3-peri-reset
47+
- description: Analog signal amplifier reset
48+
enum:
49+
- socionext,uniphier-ld11-adamv-reset
50+
- socionext,uniphier-ld20-adamv-reset
51+
52+
"#reset-cells":
53+
const: 1
54+
55+
additionalProperties: false
56+
57+
required:
58+
- compatible
59+
- "#reset-cells"
60+
61+
examples:
62+
- |
63+
sysctrl@61840000 {
64+
compatible = "socionext,uniphier-sysctrl", "simple-mfd", "syscon";
65+
reg = <0x61840000 0x4000>;
66+
67+
reset {
68+
compatible = "socionext,uniphier-ld11-reset";
69+
#reset-cells = <1>;
70+
};
71+
72+
// other nodes ...
73+
};
74+
75+
- |
76+
mioctrl@59810000 {
77+
compatible = "socionext,uniphier-mioctrl", "simple-mfd", "syscon";
78+
reg = <0x59810000 0x800>;
79+
80+
reset {
81+
compatible = "socionext,uniphier-ld11-mio-reset";
82+
#reset-cells = <1>;
83+
};
84+
85+
// other nodes ...
86+
};
87+
88+
- |
89+
perictrl@59820000 {
90+
compatible = "socionext,uniphier-perictrl", "simple-mfd", "syscon";
91+
reg = <0x59820000 0x200>;
92+
93+
reset {
94+
compatible = "socionext,uniphier-ld11-peri-reset";
95+
#reset-cells = <1>;
96+
};
97+
98+
// other nodes ...
99+
};
100+
101+
- |
102+
adamv@57920000 {
103+
compatible = "socionext,uniphier-ld11-adamv", "simple-mfd", "syscon";
104+
reg = <0x57920000 0x1000>;
105+
106+
reset {
107+
compatible = "socionext,uniphier-ld11-adamv-reset";
108+
#reset-cells = <1>;
109+
};
110+
111+
// other nodes ...
112+
};

Documentation/devicetree/bindings/reset/uniphier-reset.txt

Lines changed: 1 addition & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,4 @@
1-
UniPhier reset controller
2-
3-
4-
System reset
5-
------------
6-
7-
Required properties:
8-
- compatible: should be one of the following:
9-
"socionext,uniphier-ld4-reset" - for LD4 SoC
10-
"socionext,uniphier-pro4-reset" - for Pro4 SoC
11-
"socionext,uniphier-sld8-reset" - for sLD8 SoC
12-
"socionext,uniphier-pro5-reset" - for Pro5 SoC
13-
"socionext,uniphier-pxs2-reset" - for PXs2/LD6b SoC
14-
"socionext,uniphier-ld11-reset" - for LD11 SoC
15-
"socionext,uniphier-ld20-reset" - for LD20 SoC
16-
"socionext,uniphier-pxs3-reset" - for PXs3 SoC
17-
- #reset-cells: should be 1.
18-
19-
Example:
20-
21-
sysctrl@61840000 {
22-
compatible = "socionext,uniphier-ld11-sysctrl",
23-
"simple-mfd", "syscon";
24-
reg = <0x61840000 0x4000>;
25-
26-
reset {
27-
compatible = "socionext,uniphier-ld11-reset";
28-
#reset-cells = <1>;
29-
};
30-
31-
other nodes ...
32-
};
33-
34-
35-
Media I/O (MIO) reset, SD reset
36-
-------------------------------
37-
38-
Required properties:
39-
- compatible: should be one of the following:
40-
"socionext,uniphier-ld4-mio-reset" - for LD4 SoC
41-
"socionext,uniphier-pro4-mio-reset" - for Pro4 SoC
42-
"socionext,uniphier-sld8-mio-reset" - for sLD8 SoC
43-
"socionext,uniphier-pro5-sd-reset" - for Pro5 SoC
44-
"socionext,uniphier-pxs2-sd-reset" - for PXs2/LD6b SoC
45-
"socionext,uniphier-ld11-mio-reset" - for LD11 SoC (MIO)
46-
"socionext,uniphier-ld11-sd-reset" - for LD11 SoC (SD)
47-
"socionext,uniphier-ld20-sd-reset" - for LD20 SoC
48-
"socionext,uniphier-pxs3-sd-reset" - for PXs3 SoC
49-
- #reset-cells: should be 1.
50-
51-
Example:
52-
53-
mioctrl@59810000 {
54-
compatible = "socionext,uniphier-ld11-mioctrl",
55-
"simple-mfd", "syscon";
56-
reg = <0x59810000 0x800>;
57-
58-
reset {
59-
compatible = "socionext,uniphier-ld11-mio-reset";
60-
#reset-cells = <1>;
61-
};
62-
63-
other nodes ...
64-
};
65-
66-
67-
Peripheral reset
68-
----------------
69-
70-
Required properties:
71-
- compatible: should be one of the following:
72-
"socionext,uniphier-ld4-peri-reset" - for LD4 SoC
73-
"socionext,uniphier-pro4-peri-reset" - for Pro4 SoC
74-
"socionext,uniphier-sld8-peri-reset" - for sLD8 SoC
75-
"socionext,uniphier-pro5-peri-reset" - for Pro5 SoC
76-
"socionext,uniphier-pxs2-peri-reset" - for PXs2/LD6b SoC
77-
"socionext,uniphier-ld11-peri-reset" - for LD11 SoC
78-
"socionext,uniphier-ld20-peri-reset" - for LD20 SoC
79-
"socionext,uniphier-pxs3-peri-reset" - for PXs3 SoC
80-
- #reset-cells: should be 1.
81-
82-
Example:
83-
84-
perictrl@59820000 {
85-
compatible = "socionext,uniphier-ld11-perictrl",
86-
"simple-mfd", "syscon";
87-
reg = <0x59820000 0x200>;
88-
89-
reset {
90-
compatible = "socionext,uniphier-ld11-peri-reset";
91-
#reset-cells = <1>;
92-
};
93-
94-
other nodes ...
95-
};
96-
97-
98-
Analog signal amplifier reset
99-
-----------------------------
100-
101-
Required properties:
102-
- compatible: should be one of the following:
103-
"socionext,uniphier-ld11-adamv-reset" - for LD11 SoC
104-
"socionext,uniphier-ld20-adamv-reset" - for LD20 SoC
105-
- #reset-cells: should be 1.
106-
107-
Example:
108-
109-
adamv@57920000 {
110-
compatible = "socionext,uniphier-ld11-adamv",
111-
"simple-mfd", "syscon";
112-
reg = <0x57920000 0x1000>;
113-
114-
adamv_rst: reset {
115-
compatible = "socionext,uniphier-ld11-adamv-reset";
116-
#reset-cells = <1>;
117-
};
118-
119-
other nodes ...
120-
};
1+
UniPhier glue reset controller
1212

1223

1234
Peripheral core reset in glue layer

0 commit comments

Comments
 (0)