901e6757aeaaf552c6a35c5dcb0801e7be17052d
[openwrt/staging/lynxis.git] / target / linux / mediatek / patches-4.14 / 0144-dt-bindings-ARM-Mediatek-Document-bindings-for-MT271.patch
1 From 815d90faddd22e05f05623086a9c42187fbfb1d8 Mon Sep 17 00:00:00 2001
2 From: "weiyi.lu@mediatek.com" <weiyi.lu@mediatek.com>
3 Date: Mon, 23 Oct 2017 12:10:32 +0800
4 Subject: [PATCH 144/224] dt-bindings: ARM: Mediatek: Document bindings for
5 MT2712
6
7 This patch adds the binding documentation for apmixedsys, bdpsys,
8 imgsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, pericfg, topckgen,
9 vdecsys and vencsys for Mediatek MT2712.
10
11 Acked-by: Rob Herring <robh@kernel.org>
12 Signed-off-by: Weiyi Lu <weiyi.lu@mediatek.com>
13 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
14 ---
15 .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +
16 .../bindings/arm/mediatek/mediatek,bdpsys.txt | 1 +
17 .../bindings/arm/mediatek/mediatek,imgsys.txt | 1 +
18 .../bindings/arm/mediatek/mediatek,infracfg.txt | 1 +
19 .../bindings/arm/mediatek/mediatek,jpgdecsys.txt | 22 ++++++++++++++++++++++
20 .../bindings/arm/mediatek/mediatek,mcucfg.txt | 22 ++++++++++++++++++++++
21 .../bindings/arm/mediatek/mediatek,mfgcfg.txt | 22 ++++++++++++++++++++++
22 .../bindings/arm/mediatek/mediatek,mmsys.txt | 1 +
23 .../bindings/arm/mediatek/mediatek,pericfg.txt | 1 +
24 .../bindings/arm/mediatek/mediatek,topckgen.txt | 1 +
25 .../bindings/arm/mediatek/mediatek,vdecsys.txt | 1 +
26 .../bindings/arm/mediatek/mediatek,vencsys.txt | 1 +
27 12 files changed, 75 insertions(+)
28 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,jpgdecsys.txt
29 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mcucfg.txt
30 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mfgcfg.txt
31
32 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
33 index cd977db7630c..19fc116346d6 100644
34 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
35 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,apmixedsys.txt
36 @@ -7,6 +7,7 @@ Required Properties:
37
38 - compatible: Should be one of:
39 - "mediatek,mt2701-apmixedsys"
40 + - "mediatek,mt2712-apmixedsys", "syscon"
41 - "mediatek,mt6797-apmixedsys"
42 - "mediatek,mt8135-apmixedsys"
43 - "mediatek,mt8173-apmixedsys"
44 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt
45 index 4137196dd686..4010e37c53a0 100644
46 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt
47 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,bdpsys.txt
48 @@ -7,6 +7,7 @@ Required Properties:
49
50 - compatible: Should be:
51 - "mediatek,mt2701-bdpsys", "syscon"
52 + - "mediatek,mt2712-bdpsys", "syscon"
53 - #clock-cells: Must be 1
54
55 The bdpsys controller uses the common clk binding from
56 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt
57 index 047b11ae5f45..868bd51a98be 100644
58 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt
59 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,imgsys.txt
60 @@ -7,6 +7,7 @@ Required Properties:
61
62 - compatible: Should be one of:
63 - "mediatek,mt2701-imgsys", "syscon"
64 + - "mediatek,mt2712-imgsys", "syscon"
65 - "mediatek,mt6797-imgsys", "syscon"
66 - "mediatek,mt8173-imgsys", "syscon"
67 - #clock-cells: Must be 1
68 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
69 index 58d58e2006b8..a3430cd96d0f 100644
70 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
71 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt
72 @@ -8,6 +8,7 @@ Required Properties:
73
74 - compatible: Should be one of:
75 - "mediatek,mt2701-infracfg", "syscon"
76 + - "mediatek,mt2712-infracfg", "syscon"
77 - "mediatek,mt6797-infracfg", "syscon"
78 - "mediatek,mt8135-infracfg", "syscon"
79 - "mediatek,mt8173-infracfg", "syscon"
80 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,jpgdecsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,jpgdecsys.txt
81 new file mode 100644
82 index 000000000000..2df799cd06a7
83 --- /dev/null
84 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,jpgdecsys.txt
85 @@ -0,0 +1,22 @@
86 +Mediatek jpgdecsys controller
87 +============================
88 +
89 +The Mediatek jpgdecsys controller provides various clocks to the system.
90 +
91 +Required Properties:
92 +
93 +- compatible: Should be:
94 + - "mediatek,mt2712-jpgdecsys", "syscon"
95 +- #clock-cells: Must be 1
96 +
97 +The jpgdecsys controller uses the common clk binding from
98 +Documentation/devicetree/bindings/clock/clock-bindings.txt
99 +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
100 +
101 +Example:
102 +
103 +jpgdecsys: syscon@19000000 {
104 + compatible = "mediatek,mt2712-jpgdecsys", "syscon";
105 + reg = <0 0x19000000 0 0x1000>;
106 + #clock-cells = <1>;
107 +};
108 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mcucfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mcucfg.txt
109 new file mode 100644
110 index 000000000000..b8fb03f3613e
111 --- /dev/null
112 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mcucfg.txt
113 @@ -0,0 +1,22 @@
114 +Mediatek mcucfg controller
115 +============================
116 +
117 +The Mediatek mcucfg controller provides various clocks to the system.
118 +
119 +Required Properties:
120 +
121 +- compatible: Should be one of:
122 + - "mediatek,mt2712-mcucfg", "syscon"
123 +- #clock-cells: Must be 1
124 +
125 +The mcucfg controller uses the common clk binding from
126 +Documentation/devicetree/bindings/clock/clock-bindings.txt
127 +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
128 +
129 +Example:
130 +
131 +mcucfg: syscon@10220000 {
132 + compatible = "mediatek,mt2712-mcucfg", "syscon";
133 + reg = <0 0x10220000 0 0x1000>;
134 + #clock-cells = <1>;
135 +};
136 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mfgcfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mfgcfg.txt
137 new file mode 100644
138 index 000000000000..859e67b416d5
139 --- /dev/null
140 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mfgcfg.txt
141 @@ -0,0 +1,22 @@
142 +Mediatek mfgcfg controller
143 +============================
144 +
145 +The Mediatek mfgcfg controller provides various clocks to the system.
146 +
147 +Required Properties:
148 +
149 +- compatible: Should be one of:
150 + - "mediatek,mt2712-mfgcfg", "syscon"
151 +- #clock-cells: Must be 1
152 +
153 +The mfgcfg controller uses the common clk binding from
154 +Documentation/devicetree/bindings/clock/clock-bindings.txt
155 +The available clocks are defined in dt-bindings/clock/mt*-clk.h.
156 +
157 +Example:
158 +
159 +mfgcfg: syscon@13000000 {
160 + compatible = "mediatek,mt2712-mfgcfg", "syscon";
161 + reg = <0 0x13000000 0 0x1000>;
162 + #clock-cells = <1>;
163 +};
164 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt
165 index 70529e0b58e9..4eb8bbe15c01 100644
166 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt
167 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt
168 @@ -7,6 +7,7 @@ Required Properties:
169
170 - compatible: Should be one of:
171 - "mediatek,mt2701-mmsys", "syscon"
172 + - "mediatek,mt2712-mmsys", "syscon"
173 - "mediatek,mt6797-mmsys", "syscon"
174 - "mediatek,mt8173-mmsys", "syscon"
175 - #clock-cells: Must be 1
176 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt
177 index e494366782aa..d9f092eb3550 100644
178 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt
179 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pericfg.txt
180 @@ -8,6 +8,7 @@ Required Properties:
181
182 - compatible: Should be one of:
183 - "mediatek,mt2701-pericfg", "syscon"
184 + - "mediatek,mt2712-pericfg", "syscon"
185 - "mediatek,mt8135-pericfg", "syscon"
186 - "mediatek,mt8173-pericfg", "syscon"
187 - #clock-cells: Must be 1
188 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
189 index ec93ecbb9f3c..2024fc909d69 100644
190 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
191 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,topckgen.txt
192 @@ -7,6 +7,7 @@ Required Properties:
193
194 - compatible: Should be one of:
195 - "mediatek,mt2701-topckgen"
196 + - "mediatek,mt2712-topckgen", "syscon"
197 - "mediatek,mt6797-topckgen"
198 - "mediatek,mt8135-topckgen"
199 - "mediatek,mt8173-topckgen"
200 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt
201 index d150104f928a..ea40d05089f8 100644
202 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt
203 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,vdecsys.txt
204 @@ -7,6 +7,7 @@ Required Properties:
205
206 - compatible: Should be one of:
207 - "mediatek,mt2701-vdecsys", "syscon"
208 + - "mediatek,mt2712-vdecsys", "syscon"
209 - "mediatek,mt6797-vdecsys", "syscon"
210 - "mediatek,mt8173-vdecsys", "syscon"
211 - #clock-cells: Must be 1
212 diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,vencsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,vencsys.txt
213 index 8a93be643647..851545357e94 100644
214 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,vencsys.txt
215 +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,vencsys.txt
216 @@ -6,6 +6,7 @@ The Mediatek vencsys controller provides various clocks to the system.
217 Required Properties:
218
219 - compatible: Should be one of:
220 + - "mediatek,mt2712-vencsys", "syscon"
221 - "mediatek,mt6797-vencsys", "syscon"
222 - "mediatek,mt8173-vencsys", "syscon"
223 - #clock-cells: Must be 1
224 --
225 2.11.0
226