diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-05-10 10:15:20 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-05-10 10:15:20 -0400 |
commit | 28f3136910b9733b9647e84430096f613dcec9e9 (patch) | |
tree | c301970dd0f48c6f5b0cca4ee51bf0b26f984054 | |
parent | 0683e598a1341029141b7dbb9d1bd362612ffaae (diff) | |
parent | 77f0862d0d6874a73f83032b7ffd6d204fc8646c (diff) |
Merge tag 'imx-dt-clkdep-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into next/late
Merge "The i.MX device tree updates with new clocks for 4.7" from Shawn Guo:
- Add LCDIF and FlexCAN device support for i.MX7D
- New support i.MX7D based Nitrogen7 board from Boundary Devices
- Add display support for vf610-colibri board
* tag 'imx-dt-clkdep-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
ARM: dts: vf610-colibri: enable display controller
ARM: dts: vf610: add display nodes
ARM: dts: imx: add Boundary Devices Nitrogen7 board
ARM: dts: imx7d: add flexcan support
ARM: dts: imx7d: add lcdif support
clk: imx: vf610: fix whitespace in vf610-clock.h
clk: imx: vf610: add TCON ipg clock
clk: imx: vf610: fix DCU clock tree
clk: imx: add ckil clock for i.MX7
clk: imx: vf610: add suspend/resume support
clk: imx: vf610: add WKPU unit
clk: imx: vf610: leave DDR clock on
clk: imx: clk-gate2: allow custom gate configuration
clk: imx6sx: Register SAI clocks as shared clocks
-rw-r--r-- | arch/arm/boot/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx7d-nitrogen7.dts | 745 | ||||
-rw-r--r-- | arch/arm/boot/dts/imx7d.dtsi | 31 | ||||
-rw-r--r-- | arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | 16 | ||||
-rw-r--r-- | arch/arm/boot/dts/vf-colibri.dtsi | 33 | ||||
-rw-r--r-- | arch/arm/boot/dts/vfxxx.dtsi | 19 | ||||
-rw-r--r-- | drivers/clk/imx/clk-gate2.c | 7 | ||||
-rw-r--r-- | drivers/clk/imx/clk-imx6sx.c | 10 | ||||
-rw-r--r-- | drivers/clk/imx/clk-imx7d.c | 3 | ||||
-rw-r--r-- | drivers/clk/imx/clk-vf610.c | 60 | ||||
-rw-r--r-- | drivers/clk/imx/clk.h | 13 | ||||
-rw-r--r-- | include/dt-bindings/clock/imx7d-clock.h | 3 | ||||
-rw-r--r-- | include/dt-bindings/clock/vf610-clock.h | 8 |
13 files changed, 934 insertions, 15 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 95c1923ce6fa..65e99f80e77c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile | |||
@@ -377,6 +377,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ | |||
377 | imx6ul-14x14-evk.dtb | 377 | imx6ul-14x14-evk.dtb |
378 | dtb-$(CONFIG_SOC_IMX7D) += \ | 378 | dtb-$(CONFIG_SOC_IMX7D) += \ |
379 | imx7d-cl-som-imx7.dtb \ | 379 | imx7d-cl-som-imx7.dtb \ |
380 | imx7d-nitrogen7.dtb \ | ||
380 | imx7d-sbc-imx7.dtb \ | 381 | imx7d-sbc-imx7.dtb \ |
381 | imx7d-sdb.dtb | 382 | imx7d-sdb.dtb |
382 | dtb-$(CONFIG_SOC_LS1021A) += \ | 383 | dtb-$(CONFIG_SOC_LS1021A) += \ |
diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts b/arch/arm/boot/dts/imx7d-nitrogen7.dts new file mode 100644 index 000000000000..1ce97800f0c5 --- /dev/null +++ b/arch/arm/boot/dts/imx7d-nitrogen7.dts | |||
@@ -0,0 +1,745 @@ | |||
1 | /* | ||
2 | * Copyright 2016 Boundary Devices, Inc. | ||
3 | * | ||
4 | * This file is dual-licensed: you can use it either under the terms | ||
5 | * of the GPL or the X11 license, at your option. Note that this dual | ||
6 | * licensing only applies to this file, and not this project as a | ||
7 | * whole. | ||
8 | * | ||
9 | * a) This file is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public License as | ||
11 | * published by the Free Software Foundation; either version 2 of the | ||
12 | * License, or (at your option) any later version. | ||
13 | * | ||
14 | * This file is distributed in the hope that it will be useful, | ||
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
17 | * GNU General Public License for more details. | ||
18 | * | ||
19 | * Or, alternatively, | ||
20 | * | ||
21 | * b) Permission is hereby granted, free of charge, to any person | ||
22 | * obtaining a copy of this software and associated documentation | ||
23 | * files (the "Software"), to deal in the Software without | ||
24 | * restriction, including without limitation the rights to use, | ||
25 | * copy, modify, merge, publish, distribute, sublicense, and/or | ||
26 | * sell copies of the Software, and to permit persons to whom the | ||
27 | * Software is furnished to do so, subject to the following | ||
28 | * conditions: | ||
29 | * | ||
30 | * The above copyright notice and this permission notice shall be | ||
31 | * included in all copies or substantial portions of the Software. | ||
32 | * | ||
33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
40 | * OTHER DEALINGS IN THE SOFTWARE. | ||
41 | */ | ||
42 | |||
43 | /dts-v1/; | ||
44 | |||
45 | #include <dt-bindings/input/input.h> | ||
46 | #include "imx7d.dtsi" | ||
47 | |||
48 | / { | ||
49 | model = "Boundary Devices i.MX7 Nitrogen7 Board"; | ||
50 | compatible = "boundary,imx7d-nitrogen7", "fsl,imx7d"; | ||
51 | |||
52 | aliases { | ||
53 | fb_lcd = &lcdif; | ||
54 | t_lcd = &t_lcd; | ||
55 | }; | ||
56 | |||
57 | memory { | ||
58 | reg = <0x80000000 0x40000000>; | ||
59 | }; | ||
60 | |||
61 | backlight-j9 { | ||
62 | compatible = "gpio-backlight"; | ||
63 | pinctrl-names = "default"; | ||
64 | pinctrl-0 = <&pinctrl_backlight_j9>; | ||
65 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; | ||
66 | default-on; | ||
67 | }; | ||
68 | |||
69 | backlight-j20 { | ||
70 | compatible = "pwm-backlight"; | ||
71 | pwms = <&pwm1 0 5000000>; | ||
72 | brightness-levels = <0 4 8 16 32 64 128 255>; | ||
73 | default-brightness-level = <6>; | ||
74 | status = "okay"; | ||
75 | }; | ||
76 | |||
77 | reg_usb_otg1_vbus: regulator-usb-otg1-vbus { | ||
78 | compatible = "regulator-fixed"; | ||
79 | regulator-name = "usb_otg1_vbus"; | ||
80 | regulator-min-microvolt = <5000000>; | ||
81 | regulator-max-microvolt = <5000000>; | ||
82 | gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; | ||
83 | enable-active-high; | ||
84 | }; | ||
85 | |||
86 | reg_usb_otg2_vbus: regulator-usb-otg2-vbus { | ||
87 | compatible = "regulator-fixed"; | ||
88 | regulator-name = "usb_otg2_vbus"; | ||
89 | regulator-min-microvolt = <5000000>; | ||
90 | regulator-max-microvolt = <5000000>; | ||
91 | gpio = <&gpio4 7 GPIO_ACTIVE_HIGH>; | ||
92 | enable-active-high; | ||
93 | }; | ||
94 | |||
95 | reg_can2_3v3: regulator-can2-3v3 { | ||
96 | compatible = "regulator-fixed"; | ||
97 | regulator-name = "can2-3v3"; | ||
98 | regulator-min-microvolt = <3300000>; | ||
99 | regulator-max-microvolt = <3300000>; | ||
100 | gpio = <&gpio2 14 GPIO_ACTIVE_LOW>; | ||
101 | }; | ||
102 | |||
103 | reg_vref_1v8: regulator-vref-1v8 { | ||
104 | compatible = "regulator-fixed"; | ||
105 | regulator-name = "vref-1v8"; | ||
106 | regulator-min-microvolt = <1800000>; | ||
107 | regulator-max-microvolt = <1800000>; | ||
108 | }; | ||
109 | |||
110 | reg_vref_3v3: regulator-vref-3v3 { | ||
111 | compatible = "regulator-fixed"; | ||
112 | regulator-name = "vref-3v3"; | ||
113 | regulator-min-microvolt = <3300000>; | ||
114 | regulator-max-microvolt = <3300000>; | ||
115 | }; | ||
116 | |||
117 | reg_wlan: regulator-wlan { | ||
118 | compatible = "regulator-fixed"; | ||
119 | regulator-min-microvolt = <3300000>; | ||
120 | regulator-max-microvolt = <3300000>; | ||
121 | clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; | ||
122 | clock-names = "slow"; | ||
123 | regulator-name = "reg_wlan"; | ||
124 | startup-delay-us = <70000>; | ||
125 | gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>; | ||
126 | enable-active-high; | ||
127 | }; | ||
128 | }; | ||
129 | |||
130 | &adc1 { | ||
131 | vref-supply = <®_vref_1v8>; | ||
132 | status = "okay"; | ||
133 | }; | ||
134 | |||
135 | &adc2 { | ||
136 | vref-supply = <®_vref_1v8>; | ||
137 | status = "okay"; | ||
138 | }; | ||
139 | |||
140 | &clks { | ||
141 | assigned-clocks = <&clks IMX7D_CLKO2_ROOT_SRC>, | ||
142 | <&clks IMX7D_CLKO2_ROOT_DIV>; | ||
143 | assigned-clock-parents = <&clks IMX7D_CKIL>; | ||
144 | assigned-clock-rates = <0>, <32768>; | ||
145 | }; | ||
146 | |||
147 | &cpu0 { | ||
148 | arm-supply = <&sw1a_reg>; | ||
149 | }; | ||
150 | |||
151 | &fec1 { | ||
152 | pinctrl-names = "default"; | ||
153 | pinctrl-0 = <&pinctrl_enet1>; | ||
154 | assigned-clocks = <&clks IMX7D_ENET1_TIME_ROOT_SRC>, | ||
155 | <&clks IMX7D_ENET1_TIME_ROOT_CLK>; | ||
156 | assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; | ||
157 | assigned-clock-rates = <0>, <100000000>; | ||
158 | phy-mode = "rgmii"; | ||
159 | phy-handle = <ðphy0>; | ||
160 | fsl,magic-packet; | ||
161 | status = "okay"; | ||
162 | |||
163 | mdio { | ||
164 | #address-cells = <1>; | ||
165 | #size-cells = <0>; | ||
166 | |||
167 | ethphy0: ethernet-phy@4 { | ||
168 | reg = <4>; | ||
169 | }; | ||
170 | }; | ||
171 | }; | ||
172 | |||
173 | &flexcan2 { | ||
174 | pinctrl-names = "default"; | ||
175 | pinctrl-0 = <&pinctrl_flexcan2>; | ||
176 | xceiver-supply = <®_can2_3v3>; | ||
177 | status = "okay"; | ||
178 | }; | ||
179 | |||
180 | &i2c1 { | ||
181 | pinctrl-names = "default"; | ||
182 | pinctrl-0 = <&pinctrl_i2c1>; | ||
183 | status = "okay"; | ||
184 | |||
185 | pmic: pfuze3000@08 { | ||
186 | compatible = "fsl,pfuze3000"; | ||
187 | reg = <0x08>; | ||
188 | |||
189 | regulators { | ||
190 | sw1a_reg: sw1a { | ||
191 | regulator-min-microvolt = <700000>; | ||
192 | regulator-max-microvolt = <1475000>; | ||
193 | regulator-boot-on; | ||
194 | regulator-always-on; | ||
195 | regulator-ramp-delay = <6250>; | ||
196 | }; | ||
197 | |||
198 | /* use sw1c_reg to align with pfuze100/pfuze200 */ | ||
199 | sw1c_reg: sw1b { | ||
200 | regulator-min-microvolt = <700000>; | ||
201 | regulator-max-microvolt = <1475000>; | ||
202 | regulator-boot-on; | ||
203 | regulator-always-on; | ||
204 | regulator-ramp-delay = <6250>; | ||
205 | }; | ||
206 | |||
207 | sw2_reg: sw2 { | ||
208 | regulator-min-microvolt = <1500000>; | ||
209 | regulator-max-microvolt = <1850000>; | ||
210 | regulator-boot-on; | ||
211 | regulator-always-on; | ||
212 | }; | ||
213 | |||
214 | sw3a_reg: sw3 { | ||
215 | regulator-min-microvolt = <900000>; | ||
216 | regulator-max-microvolt = <1650000>; | ||
217 | regulator-boot-on; | ||
218 | regulator-always-on; | ||
219 | }; | ||
220 | |||
221 | swbst_reg: swbst { | ||
222 | regulator-min-microvolt = <5000000>; | ||
223 | regulator-max-microvolt = <5150000>; | ||
224 | }; | ||
225 | |||
226 | snvs_reg: vsnvs { | ||
227 | regulator-min-microvolt = <1000000>; | ||
228 | regulator-max-microvolt = <3000000>; | ||
229 | regulator-boot-on; | ||
230 | regulator-always-on; | ||
231 | }; | ||
232 | |||
233 | vref_reg: vrefddr { | ||
234 | regulator-boot-on; | ||
235 | regulator-always-on; | ||
236 | }; | ||
237 | |||
238 | vgen1_reg: vldo1 { | ||
239 | regulator-min-microvolt = <1800000>; | ||
240 | regulator-max-microvolt = <3300000>; | ||
241 | regulator-always-on; | ||
242 | }; | ||
243 | |||
244 | vgen2_reg: vldo2 { | ||
245 | regulator-min-microvolt = <800000>; | ||
246 | regulator-max-microvolt = <1550000>; | ||
247 | regulator-always-on; | ||
248 | }; | ||
249 | |||
250 | vgen3_reg: vccsd { | ||
251 | regulator-min-microvolt = <2850000>; | ||
252 | regulator-max-microvolt = <3300000>; | ||
253 | regulator-always-on; | ||
254 | }; | ||
255 | |||
256 | vgen4_reg: v33 { | ||
257 | regulator-min-microvolt = <2850000>; | ||
258 | regulator-max-microvolt = <3300000>; | ||
259 | regulator-always-on; | ||
260 | }; | ||
261 | |||
262 | vgen5_reg: vldo3 { | ||
263 | regulator-min-microvolt = <1800000>; | ||
264 | regulator-max-microvolt = <3300000>; | ||
265 | regulator-always-on; | ||
266 | }; | ||
267 | |||
268 | vgen6_reg: vldo4 { | ||
269 | regulator-min-microvolt = <1800000>; | ||
270 | regulator-max-microvolt = <3300000>; | ||
271 | regulator-always-on; | ||
272 | }; | ||
273 | }; | ||
274 | }; | ||
275 | }; | ||
276 | |||
277 | &i2c2 { | ||
278 | pinctrl-names = "default"; | ||
279 | pinctrl-0 = <&pinctrl_i2c2>; | ||
280 | status = "okay"; | ||
281 | |||
282 | rtc@68 { | ||
283 | compatible = "rv4162"; | ||
284 | pinctrl-names = "default"; | ||
285 | pinctrl-0 = <&pinctrl_i2c2_rv4162>; | ||
286 | reg = <0x68>; | ||
287 | interrupts-extended = <&gpio2 15 IRQ_TYPE_LEVEL_LOW>; | ||
288 | }; | ||
289 | }; | ||
290 | |||
291 | &i2c3 { | ||
292 | pinctrl-names = "default"; | ||
293 | pinctrl-0 = <&pinctrl_i2c3>; | ||
294 | status = "okay"; | ||
295 | |||
296 | touch@48 { | ||
297 | compatible = "ti,tsc2004"; | ||
298 | reg = <0x48>; | ||
299 | pinctrl-names = "default"; | ||
300 | pinctrl-0 = <&pinctrl_i2c3_tsc2004>; | ||
301 | interrupts-extended = <&gpio3 4 IRQ_TYPE_EDGE_FALLING>; | ||
302 | wakeup-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; | ||
303 | }; | ||
304 | }; | ||
305 | |||
306 | &i2c4 { | ||
307 | pinctrl-names = "default"; | ||
308 | pinctrl-0 = <&pinctrl_i2c4>; | ||
309 | status = "okay"; | ||
310 | |||
311 | codec: wm8960@1a { | ||
312 | compatible = "wlf,wm8960"; | ||
313 | reg = <0x1a>; | ||
314 | clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; | ||
315 | clock-names = "mclk"; | ||
316 | wlf,shared-lrclk; | ||
317 | }; | ||
318 | }; | ||
319 | |||
320 | &lcdif { | ||
321 | pinctrl-names = "default"; | ||
322 | pinctrl-0 = <&pinctrl_lcdif_dat | ||
323 | &pinctrl_lcdif_ctrl>; | ||
324 | lcd-supply = <®_vref_3v3>; | ||
325 | display = <&display0>; | ||
326 | status = "okay"; | ||
327 | |||
328 | display0: lcd-display { | ||
329 | bits-per-pixel = <16>; | ||
330 | bus-width = <18>; | ||
331 | |||
332 | display-timings { | ||
333 | native-mode = <&t_lcd>; | ||
334 | t_lcd: t_lcd_default { | ||
335 | /* default to Okaya display */ | ||
336 | clock-frequency = <30000000>; | ||
337 | hactive = <800>; | ||
338 | vactive = <480>; | ||
339 | hfront-porch = <40>; | ||
340 | hback-porch = <40>; | ||
341 | hsync-len = <48>; | ||
342 | vback-porch = <29>; | ||
343 | vfront-porch = <13>; | ||
344 | vsync-len = <3>; | ||
345 | hsync-active = <0>; | ||
346 | vsync-active = <0>; | ||
347 | de-active = <1>; | ||
348 | pixelclk-active = <0>; | ||
349 | }; | ||
350 | }; | ||
351 | }; | ||
352 | }; | ||
353 | |||
354 | &pwm1 { | ||
355 | pinctrl-names = "default"; | ||
356 | pinctrl-0 = <&pinctrl_pwm1>; | ||
357 | status = "okay"; | ||
358 | }; | ||
359 | |||
360 | &pwm2 { | ||
361 | pinctrl-names = "default"; | ||
362 | pinctrl-0 = <&pinctrl_pwm2>; | ||
363 | status = "okay"; | ||
364 | }; | ||
365 | |||
366 | &uart1 { | ||
367 | pinctrl-names = "default"; | ||
368 | pinctrl-0 = <&pinctrl_uart1>; | ||
369 | assigned-clocks = <&clks IMX7D_UART1_ROOT_SRC>; | ||
370 | assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; | ||
371 | status = "okay"; | ||
372 | }; | ||
373 | |||
374 | &uart2 { | ||
375 | pinctrl-names = "default"; | ||
376 | pinctrl-0 = <&pinctrl_uart2>; | ||
377 | assigned-clocks = <&clks IMX7D_UART2_ROOT_SRC>; | ||
378 | assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; | ||
379 | status = "okay"; | ||
380 | }; | ||
381 | |||
382 | &uart3 { | ||
383 | pinctrl-names = "default"; | ||
384 | pinctrl-0 = <&pinctrl_uart3>; | ||
385 | assigned-clocks = <&clks IMX7D_UART3_ROOT_SRC>; | ||
386 | assigned-clock-parents = <&clks IMX7D_OSC_24M_CLK>; | ||
387 | status = "okay"; | ||
388 | }; | ||
389 | |||
390 | &uart6 { | ||
391 | pinctrl-names = "default"; | ||
392 | pinctrl-0 = <&pinctrl_uart6>; | ||
393 | assigned-clocks = <&clks IMX7D_UART6_ROOT_SRC>; | ||
394 | assigned-clock-parents = <&clks IMX7D_PLL_SYS_MAIN_240M_CLK>; | ||
395 | fsl,uart-has-rtscts; | ||
396 | status = "okay"; | ||
397 | }; | ||
398 | |||
399 | &usbotg1 { | ||
400 | vbus-supply = <®_usb_otg1_vbus>; | ||
401 | pinctrl-names = "default"; | ||
402 | pinctrl-0 = <&pinctrl_usbotg1>; | ||
403 | status = "okay"; | ||
404 | }; | ||
405 | |||
406 | &usbotg2 { | ||
407 | vbus-supply = <®_usb_otg2_vbus>; | ||
408 | pinctrl-names = "default"; | ||
409 | pinctrl-0 = <&pinctrl_usbotg2>; | ||
410 | dr_mode = "host"; | ||
411 | status = "okay"; | ||
412 | }; | ||
413 | |||
414 | &usdhc1 { | ||
415 | pinctrl-names = "default"; | ||
416 | pinctrl-0 = <&pinctrl_usdhc1>; | ||
417 | cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; | ||
418 | vmmc-supply = <&vgen3_reg>; | ||
419 | bus-width = <4>; | ||
420 | fsl,tuning-step = <2>; | ||
421 | wakeup-source; | ||
422 | keep-power-in-suspend; | ||
423 | status = "okay"; | ||
424 | }; | ||
425 | |||
426 | &usdhc2 { | ||
427 | #address-cells = <1>; | ||
428 | #size-cells = <0>; | ||
429 | pinctrl-names = "default"; | ||
430 | pinctrl-0 = <&pinctrl_usdhc2>; | ||
431 | bus-width = <4>; | ||
432 | non-removable; | ||
433 | vmmc-supply = <®_wlan>; | ||
434 | cap-power-off-card; | ||
435 | keep-power-in-suspend; | ||
436 | status = "okay"; | ||
437 | |||
438 | wlcore: wlcore@2 { | ||
439 | compatible = "ti,wl1271"; | ||
440 | reg = <2>; | ||
441 | interrupt-parent = <&gpio4>; | ||
442 | interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; | ||
443 | ref-clock-frequency = <38400000>; | ||
444 | }; | ||
445 | }; | ||
446 | |||
447 | &usdhc3 { | ||
448 | pinctrl-names = "default"; | ||
449 | pinctrl-0 = <&pinctrl_usdhc3>; | ||
450 | assigned-clocks = <&clks IMX7D_USDHC3_ROOT_CLK>; | ||
451 | assigned-clock-rates = <400000000>; | ||
452 | bus-width = <8>; | ||
453 | fsl,tuning-step = <2>; | ||
454 | non-removable; | ||
455 | status = "okay"; | ||
456 | }; | ||
457 | |||
458 | &wdog1 { | ||
459 | pinctrl-names = "default"; | ||
460 | pinctrl-0 = <&pinctrl_wdog1>; | ||
461 | status = "okay"; | ||
462 | }; | ||
463 | |||
464 | &iomuxc { | ||
465 | pinctrl-names = "default"; | ||
466 | pinctrl-0 = <&pinctrl_hog_1 &pinctrl_j2>; | ||
467 | |||
468 | pinctrl_hog_1: hoggrp-1 { | ||
469 | fsl,pins = < | ||
470 | MX7D_PAD_SD3_RESET_B__GPIO6_IO11 0x5d | ||
471 | MX7D_PAD_GPIO1_IO13__GPIO1_IO13 0x7d | ||
472 | MX7D_PAD_ECSPI2_MISO__GPIO4_IO22 0x7d | ||
473 | >; | ||
474 | }; | ||
475 | |||
476 | pinctrl_enet1: enet1grp { | ||
477 | fsl,pins = < | ||
478 | MX7D_PAD_GPIO1_IO10__ENET1_MDIO 0x3 | ||
479 | MX7D_PAD_GPIO1_IO11__ENET1_MDC 0x3 | ||
480 | MX7D_PAD_GPIO1_IO12__CCM_ENET_REF_CLK1 0x3 | ||
481 | MX7D_PAD_ENET1_RGMII_TXC__ENET1_RGMII_TXC 0x71 | ||
482 | MX7D_PAD_ENET1_RGMII_TD0__ENET1_RGMII_TD0 0x71 | ||
483 | MX7D_PAD_ENET1_RGMII_TD1__ENET1_RGMII_TD1 0x71 | ||
484 | MX7D_PAD_ENET1_RGMII_TD2__ENET1_RGMII_TD2 0x71 | ||
485 | MX7D_PAD_ENET1_RGMII_TD3__ENET1_RGMII_TD3 0x71 | ||
486 | MX7D_PAD_ENET1_RGMII_TX_CTL__ENET1_RGMII_TX_CTL 0x71 | ||
487 | MX7D_PAD_ENET1_RGMII_RXC__ENET1_RGMII_RXC 0x71 | ||
488 | MX7D_PAD_ENET1_RGMII_RD0__ENET1_RGMII_RD0 0x11 | ||
489 | MX7D_PAD_ENET1_RGMII_RD1__ENET1_RGMII_RD1 0x11 | ||
490 | MX7D_PAD_ENET1_RGMII_RD2__ENET1_RGMII_RD2 0x11 | ||
491 | MX7D_PAD_ENET1_RGMII_RD3__ENET1_RGMII_RD3 0x71 | ||
492 | MX7D_PAD_ENET1_RGMII_RX_CTL__ENET1_RGMII_RX_CTL 0x11 | ||
493 | MX7D_PAD_SD3_STROBE__GPIO6_IO10 0x75 | ||
494 | >; | ||
495 | }; | ||
496 | |||
497 | pinctrl_flexcan2: flexcan2grp { | ||
498 | fsl,pins = < | ||
499 | MX7D_PAD_GPIO1_IO14__FLEXCAN2_RX 0x7d | ||
500 | MX7D_PAD_GPIO1_IO15__FLEXCAN2_TX 0x7d | ||
501 | MX7D_PAD_EPDC_DATA14__GPIO2_IO14 0x7d | ||
502 | >; | ||
503 | }; | ||
504 | |||
505 | pinctrl_i2c1: i2c1grp { | ||
506 | fsl,pins = < | ||
507 | MX7D_PAD_I2C1_SDA__I2C1_SDA 0x4000007f | ||
508 | MX7D_PAD_I2C1_SCL__I2C1_SCL 0x4000007f | ||
509 | >; | ||
510 | }; | ||
511 | |||
512 | pinctrl_i2c2: i2c2grp { | ||
513 | fsl,pins = < | ||
514 | MX7D_PAD_I2C2_SDA__I2C2_SDA 0x4000007f | ||
515 | MX7D_PAD_I2C2_SCL__I2C2_SCL 0x4000007f | ||
516 | >; | ||
517 | }; | ||
518 | |||
519 | pinctrl_i2c2_rv4162: i2c2-rv4162grp { | ||
520 | fsl,pins = < | ||
521 | MX7D_PAD_EPDC_DATA15__GPIO2_IO15 0x7d | ||
522 | >; | ||
523 | }; | ||
524 | |||
525 | pinctrl_i2c3: i2c3grp { | ||
526 | fsl,pins = < | ||
527 | MX7D_PAD_I2C3_SDA__I2C3_SDA 0x4000007f | ||
528 | MX7D_PAD_I2C3_SCL__I2C3_SCL 0x4000007f | ||
529 | >; | ||
530 | }; | ||
531 | |||
532 | pinctrl_i2c3_tsc2004: i2c3tsc2004grp { | ||
533 | fsl,pins = < | ||
534 | MX7D_PAD_LCD_RESET__GPIO3_IO4 0x79 | ||
535 | MX7D_PAD_SD2_WP__GPIO5_IO10 0x7d | ||
536 | >; | ||
537 | }; | ||
538 | |||
539 | pinctrl_i2c4: i2c4grp { | ||
540 | fsl,pins = < | ||
541 | MX7D_PAD_I2C4_SDA__I2C4_SDA 0x4000007f | ||
542 | MX7D_PAD_I2C4_SCL__I2C4_SCL 0x4000007f | ||
543 | >; | ||
544 | }; | ||
545 | |||
546 | pinctrl_j2: j2grp { | ||
547 | fsl,pins = < | ||
548 | MX7D_PAD_SAI1_TX_DATA__GPIO6_IO15 0x7d | ||
549 | MX7D_PAD_EPDC_BDR0__GPIO2_IO28 0x7d | ||
550 | MX7D_PAD_SAI1_RX_DATA__GPIO6_IO12 0x7d | ||
551 | MX7D_PAD_EPDC_BDR1__GPIO2_IO29 0x7d | ||
552 | MX7D_PAD_SD1_WP__GPIO5_IO1 0x7d | ||
553 | MX7D_PAD_EPDC_SDSHR__GPIO2_IO19 0x7d | ||
554 | MX7D_PAD_SD1_RESET_B__GPIO5_IO2 0x7d | ||
555 | MX7D_PAD_SD2_RESET_B__GPIO5_IO11 0x7d | ||
556 | MX7D_PAD_EPDC_DATA07__GPIO2_IO7 0x7d | ||
557 | MX7D_PAD_EPDC_DATA08__GPIO2_IO8 0x7d | ||
558 | MX7D_PAD_EPDC_DATA09__GPIO2_IO9 0x7d | ||
559 | MX7D_PAD_EPDC_DATA10__GPIO2_IO10 0x7d | ||
560 | MX7D_PAD_EPDC_DATA11__GPIO2_IO11 0x7d | ||
561 | MX7D_PAD_EPDC_DATA12__GPIO2_IO12 0x7d | ||
562 | MX7D_PAD_SAI1_TX_SYNC__GPIO6_IO14 0x7d | ||
563 | MX7D_PAD_EPDC_DATA13__GPIO2_IO13 0x7d | ||
564 | MX7D_PAD_SAI1_TX_BCLK__GPIO6_IO13 0x7d | ||
565 | MX7D_PAD_SD2_CD_B__GPIO5_IO9 0x7d | ||
566 | MX7D_PAD_EPDC_GDCLK__GPIO2_IO24 0x7d | ||
567 | MX7D_PAD_SAI2_RX_DATA__GPIO6_IO21 0x7d | ||
568 | MX7D_PAD_EPDC_GDOE__GPIO2_IO25 0x7d | ||
569 | MX7D_PAD_EPDC_GDRL__GPIO2_IO26 0x7d | ||
570 | MX7D_PAD_SAI2_TX_DATA__GPIO6_IO22 0x7d | ||
571 | MX7D_PAD_EPDC_SDCE0__GPIO2_IO20 0x7d | ||
572 | MX7D_PAD_SAI2_TX_BCLK__GPIO6_IO20 0x7d | ||
573 | MX7D_PAD_EPDC_SDCE1__GPIO2_IO21 0x7d | ||
574 | MX7D_PAD_SAI2_TX_SYNC__GPIO6_IO19 0x7d | ||
575 | MX7D_PAD_EPDC_SDCE2__GPIO2_IO22 0x7d | ||
576 | MX7D_PAD_EPDC_SDCE3__GPIO2_IO23 0x7d | ||
577 | MX7D_PAD_EPDC_GDSP__GPIO2_IO27 0x7d | ||
578 | MX7D_PAD_EPDC_SDCLK__GPIO2_IO16 0x7d | ||
579 | MX7D_PAD_EPDC_SDLE__GPIO2_IO17 0x7d | ||
580 | MX7D_PAD_EPDC_SDOE__GPIO2_IO18 0x7d | ||
581 | MX7D_PAD_EPDC_PWR_COM__GPIO2_IO30 0x7d | ||
582 | MX7D_PAD_EPDC_PWR_STAT__GPIO2_IO31 0x7d | ||
583 | >; | ||
584 | }; | ||
585 | |||
586 | pinctrl_lcdif_dat: lcdifdatgrp { | ||
587 | fsl,pins = < | ||
588 | MX7D_PAD_LCD_DATA00__LCD_DATA0 0x79 | ||
589 | MX7D_PAD_LCD_DATA01__LCD_DATA1 0x79 | ||
590 | MX7D_PAD_LCD_DATA02__LCD_DATA2 0x79 | ||
591 | MX7D_PAD_LCD_DATA03__LCD_DATA3 0x79 | ||
592 | MX7D_PAD_LCD_DATA04__LCD_DATA4 0x79 | ||
593 | MX7D_PAD_LCD_DATA05__LCD_DATA5 0x79 | ||
594 | MX7D_PAD_LCD_DATA06__LCD_DATA6 0x79 | ||
595 | MX7D_PAD_LCD_DATA07__LCD_DATA7 0x79 | ||
596 | MX7D_PAD_LCD_DATA08__LCD_DATA8 0x79 | ||
597 | MX7D_PAD_LCD_DATA09__LCD_DATA9 0x79 | ||
598 | MX7D_PAD_LCD_DATA10__LCD_DATA10 0x79 | ||
599 | MX7D_PAD_LCD_DATA11__LCD_DATA11 0x79 | ||
600 | MX7D_PAD_LCD_DATA12__LCD_DATA12 0x79 | ||
601 | MX7D_PAD_LCD_DATA13__LCD_DATA13 0x79 | ||
602 | MX7D_PAD_LCD_DATA14__LCD_DATA14 0x79 | ||
603 | MX7D_PAD_LCD_DATA15__LCD_DATA15 0x79 | ||
604 | MX7D_PAD_LCD_DATA16__LCD_DATA16 0x79 | ||
605 | MX7D_PAD_LCD_DATA17__LCD_DATA17 0x79 | ||
606 | MX7D_PAD_LCD_DATA18__LCD_DATA18 0x79 | ||
607 | MX7D_PAD_LCD_DATA19__LCD_DATA19 0x79 | ||
608 | MX7D_PAD_LCD_DATA20__LCD_DATA20 0x79 | ||
609 | MX7D_PAD_LCD_DATA21__LCD_DATA21 0x79 | ||
610 | MX7D_PAD_LCD_DATA22__LCD_DATA22 0x79 | ||
611 | MX7D_PAD_LCD_DATA23__LCD_DATA23 0x79 | ||
612 | >; | ||
613 | }; | ||
614 | |||
615 | pinctrl_lcdif_ctrl: lcdifctrlgrp { | ||
616 | fsl,pins = < | ||
617 | MX7D_PAD_LCD_CLK__LCD_CLK 0x79 | ||
618 | MX7D_PAD_LCD_ENABLE__LCD_ENABLE 0x79 | ||
619 | MX7D_PAD_LCD_VSYNC__LCD_VSYNC 0x79 | ||
620 | MX7D_PAD_LCD_HSYNC__LCD_HSYNC 0x79 | ||
621 | >; | ||
622 | }; | ||
623 | |||
624 | pinctrl_pwm2: pwm2grp { | ||
625 | fsl,pins = < | ||
626 | MX7D_PAD_GPIO1_IO09__PWM2_OUT 0x7d | ||
627 | >; | ||
628 | }; | ||
629 | |||
630 | pinctrl_uart1: uart1grp { | ||
631 | fsl,pins = < | ||
632 | MX7D_PAD_UART1_TX_DATA__UART1_DCE_TX 0x79 | ||
633 | MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX 0x79 | ||
634 | >; | ||
635 | }; | ||
636 | |||
637 | pinctrl_uart2: uart2grp { | ||
638 | fsl,pins = < | ||
639 | MX7D_PAD_UART2_TX_DATA__UART2_DCE_TX 0x79 | ||
640 | MX7D_PAD_UART2_RX_DATA__UART2_DCE_RX 0x79 | ||
641 | >; | ||
642 | }; | ||
643 | |||
644 | pinctrl_uart3: uart3grp { | ||
645 | fsl,pins = < | ||
646 | MX7D_PAD_UART3_TX_DATA__UART3_DCE_TX 0x79 | ||
647 | MX7D_PAD_UART3_RX_DATA__UART3_DCE_RX 0x79 | ||
648 | MX7D_PAD_EPDC_DATA04__GPIO2_IO4 0x7d | ||
649 | >; | ||
650 | }; | ||
651 | |||
652 | pinctrl_uart6: uart6grp { | ||
653 | fsl,pins = < | ||
654 | MX7D_PAD_ECSPI1_MOSI__UART6_DCE_TX 0x79 | ||
655 | MX7D_PAD_ECSPI1_SCLK__UART6_DCE_RX 0x79 | ||
656 | MX7D_PAD_ECSPI1_SS0__UART6_DCE_CTS 0x79 | ||
657 | MX7D_PAD_ECSPI1_MISO__UART6_DCE_RTS 0x79 | ||
658 | >; | ||
659 | }; | ||
660 | |||
661 | pinctrl_usbotg2: usbotg2grp { | ||
662 | fsl,pins = < | ||
663 | MX7D_PAD_UART3_RTS_B__USB_OTG2_OC 0x7d | ||
664 | MX7D_PAD_UART3_CTS_B__GPIO4_IO7 0x14 | ||
665 | >; | ||
666 | }; | ||
667 | |||
668 | pinctrl_usdhc1: usdhc1grp { | ||
669 | fsl,pins = < | ||
670 | MX7D_PAD_SD1_CMD__SD1_CMD 0x59 | ||
671 | MX7D_PAD_SD1_CLK__SD1_CLK 0x19 | ||
672 | MX7D_PAD_SD1_DATA0__SD1_DATA0 0x59 | ||
673 | MX7D_PAD_SD1_DATA1__SD1_DATA1 0x59 | ||
674 | MX7D_PAD_SD1_DATA2__SD1_DATA2 0x59 | ||
675 | MX7D_PAD_SD1_DATA3__SD1_DATA3 0x59 | ||
676 | MX7D_PAD_GPIO1_IO08__SD1_VSELECT 0x75 | ||
677 | MX7D_PAD_SD1_CD_B__GPIO5_IO0 0x75 | ||
678 | >; | ||
679 | }; | ||
680 | |||
681 | pinctrl_usdhc2: usdhc2grp { | ||
682 | fsl,pins = < | ||
683 | MX7D_PAD_SD2_CMD__SD2_CMD 0x59 | ||
684 | MX7D_PAD_SD2_CLK__SD2_CLK 0x19 | ||
685 | MX7D_PAD_SD2_DATA0__SD2_DATA0 0x59 | ||
686 | MX7D_PAD_SD2_DATA1__SD2_DATA1 0x59 | ||
687 | MX7D_PAD_SD2_DATA2__SD2_DATA2 0x59 | ||
688 | MX7D_PAD_SD2_DATA3__SD2_DATA3 0x59 | ||
689 | MX7D_PAD_ECSPI2_SCLK__GPIO4_IO20 0x59 | ||
690 | MX7D_PAD_ECSPI2_MOSI__GPIO4_IO21 0x59 | ||
691 | >; | ||
692 | }; | ||
693 | |||
694 | pinctrl_usdhc3: usdhc3grp { | ||
695 | fsl,pins = < | ||
696 | MX7D_PAD_SD3_CMD__SD3_CMD 0x59 | ||
697 | MX7D_PAD_SD3_CLK__SD3_CLK 0x19 | ||
698 | MX7D_PAD_SD3_DATA0__SD3_DATA0 0x59 | ||
699 | MX7D_PAD_SD3_DATA1__SD3_DATA1 0x59 | ||
700 | MX7D_PAD_SD3_DATA2__SD3_DATA2 0x59 | ||
701 | MX7D_PAD_SD3_DATA3__SD3_DATA3 0x59 | ||
702 | MX7D_PAD_SD3_DATA4__SD3_DATA4 0x59 | ||
703 | MX7D_PAD_SD3_DATA5__SD3_DATA5 0x59 | ||
704 | MX7D_PAD_SD3_DATA6__SD3_DATA6 0x59 | ||
705 | MX7D_PAD_SD3_DATA7__SD3_DATA7 0x59 | ||
706 | >; | ||
707 | }; | ||
708 | }; | ||
709 | |||
710 | &iomuxc_lpsr { | ||
711 | pinctrl-names = "default"; | ||
712 | pinctrl-0 = <&pinctrl_hog_2>; | ||
713 | |||
714 | pinctrl_hog_2: hoggrp-2 { | ||
715 | fsl,pins = < | ||
716 | MX7D_PAD_GPIO1_IO02__GPIO1_IO2 0x7d | ||
717 | MX7D_PAD_GPIO1_IO03__CCM_CLKO2 0x7d | ||
718 | >; | ||
719 | }; | ||
720 | |||
721 | pinctrl_backlight_j9: backlightj9grp { | ||
722 | fsl,pins = < | ||
723 | MX7D_PAD_GPIO1_IO07__GPIO1_IO7 0x7d | ||
724 | >; | ||
725 | }; | ||
726 | |||
727 | pinctrl_pwm1: pwm1grp { | ||
728 | fsl,pins = < | ||
729 | MX7D_PAD_GPIO1_IO01__PWM1_OUT 0x7d | ||
730 | >; | ||
731 | }; | ||
732 | |||
733 | pinctrl_usbotg1: usbotg1grp { | ||
734 | fsl,pins = < | ||
735 | MX7D_PAD_GPIO1_IO04__USB_OTG1_OC 0x7d | ||
736 | MX7D_PAD_GPIO1_IO05__GPIO1_IO5 0x14 | ||
737 | >; | ||
738 | }; | ||
739 | |||
740 | pinctrl_wdog1: wdog1grp { | ||
741 | fsl,pins = < | ||
742 | MX7D_PAD_GPIO1_IO00__WDOD1_WDOG_B 0x75 | ||
743 | >; | ||
744 | }; | ||
745 | }; | ||
diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index b5a50e0e7ff1..6b3faa298417 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi | |||
@@ -651,6 +651,17 @@ | |||
651 | #pwm-cells = <2>; | 651 | #pwm-cells = <2>; |
652 | status = "disabled"; | 652 | status = "disabled"; |
653 | }; | 653 | }; |
654 | |||
655 | lcdif: lcdif@30730000 { | ||
656 | compatible = "fsl,imx7d-lcdif", "fsl,imx28-lcdif"; | ||
657 | reg = <0x30730000 0x10000>; | ||
658 | interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>; | ||
659 | clocks = <&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>, | ||
660 | <&clks IMX7D_CLK_DUMMY>, | ||
661 | <&clks IMX7D_CLK_DUMMY>; | ||
662 | clock-names = "pix", "axi", "disp_axi"; | ||
663 | status = "disabled"; | ||
664 | }; | ||
654 | }; | 665 | }; |
655 | 666 | ||
656 | aips3: aips-bus@30800000 { | 667 | aips3: aips-bus@30800000 { |
@@ -693,6 +704,26 @@ | |||
693 | status = "disabled"; | 704 | status = "disabled"; |
694 | }; | 705 | }; |
695 | 706 | ||
707 | flexcan1: can@30a00000 { | ||
708 | compatible = "fsl,imx7d-flexcan", "fsl,imx6q-flexcan"; | ||
709 | reg = <0x30a00000 0x10000>; | ||
710 | interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>; | ||
711 | clocks = <&clks IMX7D_CLK_DUMMY>, | ||
712 | <&clks IMX7D_CAN1_ROOT_CLK>; | ||
713 | clock-names = "ipg", "per"; | ||
714 | status = "disabled"; | ||
715 | }; | ||
716 | |||
717 | flexcan2: can@30a10000 { | ||
718 | compatible = "fsl,imx7d-flexcan", "fsl,imx6q-flexcan"; | ||
719 | reg = <0x30a10000 0x10000>; | ||
720 | interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>; | ||
721 | clocks = <&clks IMX7D_CLK_DUMMY>, | ||
722 | <&clks IMX7D_CAN2_ROOT_CLK>; | ||
723 | clock-names = "ipg", "per"; | ||
724 | status = "disabled"; | ||
725 | }; | ||
726 | |||
696 | i2c1: i2c@30a20000 { | 727 | i2c1: i2c@30a20000 { |
697 | #address-cells = <1>; | 728 | #address-cells = <1>; |
698 | #size-cells = <0>; | 729 | #size-cells = <0>; |
diff --git a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi index 4d8b7f693535..a8a8e434fb27 100644 --- a/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/vf-colibri-eval-v3.dtsi | |||
@@ -50,6 +50,11 @@ | |||
50 | clock-frequency = <16000000>; | 50 | clock-frequency = <16000000>; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | panel: panel { | ||
54 | compatible = "edt,et057090dhu"; | ||
55 | backlight = <&bl>; | ||
56 | }; | ||
57 | |||
53 | reg_3v3: regulator-3v3 { | 58 | reg_3v3: regulator-3v3 { |
54 | compatible = "regulator-fixed"; | 59 | compatible = "regulator-fixed"; |
55 | regulator-name = "3.3V"; | 60 | regulator-name = "3.3V"; |
@@ -83,6 +88,13 @@ | |||
83 | status = "okay"; | 88 | status = "okay"; |
84 | }; | 89 | }; |
85 | 90 | ||
91 | &dcu0 { | ||
92 | pinctrl-names = "default"; | ||
93 | pinctrl-0 = <&pinctrl_dcu0_1>; | ||
94 | fsl,panel = <&panel>; | ||
95 | status = "okay"; | ||
96 | }; | ||
97 | |||
86 | &dspi1 { | 98 | &dspi1 { |
87 | status = "okay"; | 99 | status = "okay"; |
88 | 100 | ||
@@ -134,6 +146,10 @@ | |||
134 | vin-supply = <®_3v3>; | 146 | vin-supply = <®_3v3>; |
135 | }; | 147 | }; |
136 | 148 | ||
149 | &tcon0 { | ||
150 | status = "okay"; | ||
151 | }; | ||
152 | |||
137 | &uart0 { | 153 | &uart0 { |
138 | status = "okay"; | 154 | status = "okay"; |
139 | }; | 155 | }; |
diff --git a/arch/arm/boot/dts/vf-colibri.dtsi b/arch/arm/boot/dts/vf-colibri.dtsi index fda7f28101e1..afcc43d2fa5c 100644 --- a/arch/arm/boot/dts/vf-colibri.dtsi +++ b/arch/arm/boot/dts/vf-colibri.dtsi | |||
@@ -219,6 +219,39 @@ | |||
219 | >; | 219 | >; |
220 | }; | 220 | }; |
221 | 221 | ||
222 | pinctrl_dcu0_1: dcu0grp_1 { | ||
223 | fsl,pins = < | ||
224 | VF610_PAD_PTE0__DCU0_HSYNC 0x1902 | ||
225 | VF610_PAD_PTE1__DCU0_VSYNC 0x1902 | ||
226 | VF610_PAD_PTE2__DCU0_PCLK 0x1902 | ||
227 | VF610_PAD_PTE4__DCU0_DE 0x1902 | ||
228 | VF610_PAD_PTE5__DCU0_R0 0x1902 | ||
229 | VF610_PAD_PTE6__DCU0_R1 0x1902 | ||
230 | VF610_PAD_PTE7__DCU0_R2 0x1902 | ||
231 | VF610_PAD_PTE8__DCU0_R3 0x1902 | ||
232 | VF610_PAD_PTE9__DCU0_R4 0x1902 | ||
233 | VF610_PAD_PTE10__DCU0_R5 0x1902 | ||
234 | VF610_PAD_PTE11__DCU0_R6 0x1902 | ||
235 | VF610_PAD_PTE12__DCU0_R7 0x1902 | ||
236 | VF610_PAD_PTE13__DCU0_G0 0x1902 | ||
237 | VF610_PAD_PTE14__DCU0_G1 0x1902 | ||
238 | VF610_PAD_PTE15__DCU0_G2 0x1902 | ||
239 | VF610_PAD_PTE16__DCU0_G3 0x1902 | ||
240 | VF610_PAD_PTE17__DCU0_G4 0x1902 | ||
241 | VF610_PAD_PTE18__DCU0_G5 0x1902 | ||
242 | VF610_PAD_PTE19__DCU0_G6 0x1902 | ||
243 | VF610_PAD_PTE20__DCU0_G7 0x1902 | ||
244 | VF610_PAD_PTE21__DCU0_B0 0x1902 | ||
245 | VF610_PAD_PTE22__DCU0_B1 0x1902 | ||
246 | VF610_PAD_PTE23__DCU0_B2 0x1902 | ||
247 | VF610_PAD_PTE24__DCU0_B3 0x1902 | ||
248 | VF610_PAD_PTE25__DCU0_B4 0x1902 | ||
249 | VF610_PAD_PTE26__DCU0_B5 0x1902 | ||
250 | VF610_PAD_PTE27__DCU0_B6 0x1902 | ||
251 | VF610_PAD_PTE28__DCU0_B7 0x1902 | ||
252 | >; | ||
253 | }; | ||
254 | |||
222 | pinctrl_dspi1: dspi1grp { | 255 | pinctrl_dspi1: dspi1grp { |
223 | fsl,pins = < | 256 | fsl,pins = < |
224 | VF610_PAD_PTD5__DSPI1_CS0 0x33e2 | 257 | VF610_PAD_PTD5__DSPI1_CS0 0x33e2 |
diff --git a/arch/arm/boot/dts/vfxxx.dtsi b/arch/arm/boot/dts/vfxxx.dtsi index 5c0975451d4e..d7d002d0cc5f 100644 --- a/arch/arm/boot/dts/vfxxx.dtsi +++ b/arch/arm/boot/dts/vfxxx.dtsi | |||
@@ -310,6 +310,14 @@ | |||
310 | <20000000>; | 310 | <20000000>; |
311 | }; | 311 | }; |
312 | 312 | ||
313 | tcon0: timing-controller@4003d000 { | ||
314 | compatible = "fsl,vf610-tcon"; | ||
315 | reg = <0x4003d000 0x1000>; | ||
316 | clocks = <&clks VF610_CLK_TCON0>; | ||
317 | clock-names = "ipg"; | ||
318 | status = "disabled"; | ||
319 | }; | ||
320 | |||
313 | wdoga5: wdog@4003e000 { | 321 | wdoga5: wdog@4003e000 { |
314 | compatible = "fsl,vf610-wdt", "fsl,imx21-wdt"; | 322 | compatible = "fsl,vf610-wdt", "fsl,imx21-wdt"; |
315 | reg = <0x4003e000 0x1000>; | 323 | reg = <0x4003e000 0x1000>; |
@@ -415,6 +423,17 @@ | |||
415 | status = "disabled"; | 423 | status = "disabled"; |
416 | }; | 424 | }; |
417 | 425 | ||
426 | dcu0: dcu@40058000 { | ||
427 | compatible = "fsl,vf610-dcu"; | ||
428 | reg = <0x40058000 0x1200>; | ||
429 | interrupts = <30 IRQ_TYPE_LEVEL_HIGH>; | ||
430 | clocks = <&clks VF610_CLK_DCU0>, | ||
431 | <&clks VF610_CLK_DCU0_DIV>; | ||
432 | clock-names = "dcu", "pix"; | ||
433 | fsl,tcon = <&tcon0>; | ||
434 | status = "disabled"; | ||
435 | }; | ||
436 | |||
418 | i2c0: i2c@40066000 { | 437 | i2c0: i2c@40066000 { |
419 | #address-cells = <1>; | 438 | #address-cells = <1>; |
420 | #size-cells = <0>; | 439 | #size-cells = <0>; |
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 8935bff99fe7..db44a198a0d9 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c | |||
@@ -31,6 +31,7 @@ struct clk_gate2 { | |||
31 | struct clk_hw hw; | 31 | struct clk_hw hw; |
32 | void __iomem *reg; | 32 | void __iomem *reg; |
33 | u8 bit_idx; | 33 | u8 bit_idx; |
34 | u8 cgr_val; | ||
34 | u8 flags; | 35 | u8 flags; |
35 | spinlock_t *lock; | 36 | spinlock_t *lock; |
36 | unsigned int *share_count; | 37 | unsigned int *share_count; |
@@ -50,7 +51,8 @@ static int clk_gate2_enable(struct clk_hw *hw) | |||
50 | goto out; | 51 | goto out; |
51 | 52 | ||
52 | reg = readl(gate->reg); | 53 | reg = readl(gate->reg); |
53 | reg |= 3 << gate->bit_idx; | 54 | reg &= ~(3 << gate->bit_idx); |
55 | reg |= gate->cgr_val << gate->bit_idx; | ||
54 | writel(reg, gate->reg); | 56 | writel(reg, gate->reg); |
55 | 57 | ||
56 | out: | 58 | out: |
@@ -125,7 +127,7 @@ static struct clk_ops clk_gate2_ops = { | |||
125 | 127 | ||
126 | struct clk *clk_register_gate2(struct device *dev, const char *name, | 128 | struct clk *clk_register_gate2(struct device *dev, const char *name, |
127 | const char *parent_name, unsigned long flags, | 129 | const char *parent_name, unsigned long flags, |
128 | void __iomem *reg, u8 bit_idx, | 130 | void __iomem *reg, u8 bit_idx, u8 cgr_val, |
129 | u8 clk_gate2_flags, spinlock_t *lock, | 131 | u8 clk_gate2_flags, spinlock_t *lock, |
130 | unsigned int *share_count) | 132 | unsigned int *share_count) |
131 | { | 133 | { |
@@ -140,6 +142,7 @@ struct clk *clk_register_gate2(struct device *dev, const char *name, | |||
140 | /* struct clk_gate2 assignments */ | 142 | /* struct clk_gate2 assignments */ |
141 | gate->reg = reg; | 143 | gate->reg = reg; |
142 | gate->bit_idx = bit_idx; | 144 | gate->bit_idx = bit_idx; |
145 | gate->cgr_val = cgr_val; | ||
143 | gate->flags = clk_gate2_flags; | 146 | gate->flags = clk_gate2_flags; |
144 | gate->lock = lock; | 147 | gate->lock = lock; |
145 | gate->share_count = share_count; | 148 | gate->share_count = share_count; |
diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index fea125eb4330..97e742a8be17 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c | |||
@@ -134,6 +134,8 @@ static u32 share_count_esai; | |||
134 | static u32 share_count_ssi1; | 134 | static u32 share_count_ssi1; |
135 | static u32 share_count_ssi2; | 135 | static u32 share_count_ssi2; |
136 | static u32 share_count_ssi3; | 136 | static u32 share_count_ssi3; |
137 | static u32 share_count_sai1; | ||
138 | static u32 share_count_sai2; | ||
137 | 139 | ||
138 | static struct clk ** const uart_clks[] __initconst = { | 140 | static struct clk ** const uart_clks[] __initconst = { |
139 | &clks[IMX6SX_CLK_UART_IPG], | 141 | &clks[IMX6SX_CLK_UART_IPG], |
@@ -469,10 +471,10 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) | |||
469 | clks[IMX6SX_CLK_SSI3] = imx_clk_gate2_shared("ssi3", "ssi3_podf", base + 0x7c, 22, &share_count_ssi3); | 471 | clks[IMX6SX_CLK_SSI3] = imx_clk_gate2_shared("ssi3", "ssi3_podf", base + 0x7c, 22, &share_count_ssi3); |
470 | clks[IMX6SX_CLK_UART_IPG] = imx_clk_gate2("uart_ipg", "ipg", base + 0x7c, 24); | 472 | clks[IMX6SX_CLK_UART_IPG] = imx_clk_gate2("uart_ipg", "ipg", base + 0x7c, 24); |
471 | clks[IMX6SX_CLK_UART_SERIAL] = imx_clk_gate2("uart_serial", "uart_podf", base + 0x7c, 26); | 473 | clks[IMX6SX_CLK_UART_SERIAL] = imx_clk_gate2("uart_serial", "uart_podf", base + 0x7c, 26); |
472 | clks[IMX6SX_CLK_SAI1_IPG] = imx_clk_gate2("sai1_ipg", "ipg", base + 0x7c, 28); | 474 | clks[IMX6SX_CLK_SAI1_IPG] = imx_clk_gate2_shared("sai1_ipg", "ipg", base + 0x7c, 28, &share_count_sai1); |
473 | clks[IMX6SX_CLK_SAI2_IPG] = imx_clk_gate2("sai2_ipg", "ipg", base + 0x7c, 30); | 475 | clks[IMX6SX_CLK_SAI2_IPG] = imx_clk_gate2_shared("sai2_ipg", "ipg", base + 0x7c, 30, &share_count_sai2); |
474 | clks[IMX6SX_CLK_SAI1] = imx_clk_gate2("sai1", "ssi1_podf", base + 0x7c, 28); | 476 | clks[IMX6SX_CLK_SAI1] = imx_clk_gate2_shared("sai1", "ssi1_podf", base + 0x7c, 28, &share_count_sai1); |
475 | clks[IMX6SX_CLK_SAI2] = imx_clk_gate2("sai2", "ssi2_podf", base + 0x7c, 30); | 477 | clks[IMX6SX_CLK_SAI2] = imx_clk_gate2_shared("sai2", "ssi2_podf", base + 0x7c, 30, &share_count_sai2); |
476 | 478 | ||
477 | /* CCGR6 */ | 479 | /* CCGR6 */ |
478 | clks[IMX6SX_CLK_USBOH3] = imx_clk_gate2("usboh3", "ipg", base + 0x80, 0); | 480 | clks[IMX6SX_CLK_USBOH3] = imx_clk_gate2("usboh3", "ipg", base + 0x80, 0); |
diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index fbb6a8c8653d..7912be83c4af 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c | |||
@@ -342,7 +342,7 @@ static const char *clko1_sel[] = { "osc", "pll_sys_main_clk", | |||
342 | 342 | ||
343 | static const char *clko2_sel[] = { "osc", "pll_sys_main_240m_clk", | 343 | static const char *clko2_sel[] = { "osc", "pll_sys_main_240m_clk", |
344 | "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_166m_clk", "pll_sys_pfd4_clk", | 344 | "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_166m_clk", "pll_sys_pfd4_clk", |
345 | "pll_audio_main_clk", "pll_video_main_clk", "osc_32k_clk", }; | 345 | "pll_audio_main_clk", "pll_video_main_clk", "ckil", }; |
346 | 346 | ||
347 | static const char *lvds1_sel[] = { "pll_arm_main_clk", | 347 | static const char *lvds1_sel[] = { "pll_arm_main_clk", |
348 | "pll_sys_main_clk", "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_332m_clk", | 348 | "pll_sys_main_clk", "pll_sys_pfd0_392m_clk", "pll_sys_pfd1_332m_clk", |
@@ -382,6 +382,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) | |||
382 | 382 | ||
383 | clks[IMX7D_CLK_DUMMY] = imx_clk_fixed("dummy", 0); | 383 | clks[IMX7D_CLK_DUMMY] = imx_clk_fixed("dummy", 0); |
384 | clks[IMX7D_OSC_24M_CLK] = of_clk_get_by_name(ccm_node, "osc"); | 384 | clks[IMX7D_OSC_24M_CLK] = of_clk_get_by_name(ccm_node, "osc"); |
385 | clks[IMX7D_CKIL] = of_clk_get_by_name(ccm_node, "ckil"); | ||
385 | 386 | ||
386 | np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop"); | 387 | np = of_find_compatible_node(NULL, NULL, "fsl,imx7d-anatop"); |
387 | base = of_iomap(np, 0); | 388 | base = of_iomap(np, 0); |
diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c index 0a94d9661d91..3a1f24475ee4 100644 --- a/drivers/clk/imx/clk-vf610.c +++ b/drivers/clk/imx/clk-vf610.c | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include <linux/of_address.h> | 11 | #include <linux/of_address.h> |
12 | #include <linux/clk.h> | 12 | #include <linux/clk.h> |
13 | #include <linux/syscore_ops.h> | ||
13 | #include <dt-bindings/clock/vf610-clock.h> | 14 | #include <dt-bindings/clock/vf610-clock.h> |
14 | 15 | ||
15 | #include "clk.h" | 16 | #include "clk.h" |
@@ -40,6 +41,7 @@ | |||
40 | #define CCM_CCGR9 (ccm_base + 0x64) | 41 | #define CCM_CCGR9 (ccm_base + 0x64) |
41 | #define CCM_CCGR10 (ccm_base + 0x68) | 42 | #define CCM_CCGR10 (ccm_base + 0x68) |
42 | #define CCM_CCGR11 (ccm_base + 0x6c) | 43 | #define CCM_CCGR11 (ccm_base + 0x6c) |
44 | #define CCM_CCGRx(x) (CCM_CCGR0 + (x) * 4) | ||
43 | #define CCM_CMEOR0 (ccm_base + 0x70) | 45 | #define CCM_CMEOR0 (ccm_base + 0x70) |
44 | #define CCM_CMEOR1 (ccm_base + 0x74) | 46 | #define CCM_CMEOR1 (ccm_base + 0x74) |
45 | #define CCM_CMEOR2 (ccm_base + 0x78) | 47 | #define CCM_CMEOR2 (ccm_base + 0x78) |
@@ -115,10 +117,19 @@ static struct clk_div_table pll4_audio_div_table[] = { | |||
115 | static struct clk *clk[VF610_CLK_END]; | 117 | static struct clk *clk[VF610_CLK_END]; |
116 | static struct clk_onecell_data clk_data; | 118 | static struct clk_onecell_data clk_data; |
117 | 119 | ||
120 | static u32 cscmr1; | ||
121 | static u32 cscmr2; | ||
122 | static u32 cscdr1; | ||
123 | static u32 cscdr2; | ||
124 | static u32 cscdr3; | ||
125 | static u32 ccgr[12]; | ||
126 | |||
118 | static unsigned int const clks_init_on[] __initconst = { | 127 | static unsigned int const clks_init_on[] __initconst = { |
119 | VF610_CLK_SYS_BUS, | 128 | VF610_CLK_SYS_BUS, |
120 | VF610_CLK_DDR_SEL, | 129 | VF610_CLK_DDR_SEL, |
121 | VF610_CLK_DAP, | 130 | VF610_CLK_DAP, |
131 | VF610_CLK_DDRMC, | ||
132 | VF610_CLK_WKPU, | ||
122 | }; | 133 | }; |
123 | 134 | ||
124 | static struct clk * __init vf610_get_fixed_clock( | 135 | static struct clk * __init vf610_get_fixed_clock( |
@@ -132,6 +143,43 @@ static struct clk * __init vf610_get_fixed_clock( | |||
132 | return clk; | 143 | return clk; |
133 | }; | 144 | }; |
134 | 145 | ||
146 | static int vf610_clk_suspend(void) | ||
147 | { | ||
148 | int i; | ||
149 | |||
150 | cscmr1 = readl_relaxed(CCM_CSCMR1); | ||
151 | cscmr2 = readl_relaxed(CCM_CSCMR2); | ||
152 | |||
153 | cscdr1 = readl_relaxed(CCM_CSCDR1); | ||
154 | cscdr2 = readl_relaxed(CCM_CSCDR2); | ||
155 | cscdr3 = readl_relaxed(CCM_CSCDR3); | ||
156 | |||
157 | for (i = 0; i < 12; i++) | ||
158 | ccgr[i] = readl_relaxed(CCM_CCGRx(i)); | ||
159 | |||
160 | return 0; | ||
161 | } | ||
162 | |||
163 | static void vf610_clk_resume(void) | ||
164 | { | ||
165 | int i; | ||
166 | |||
167 | writel_relaxed(cscmr1, CCM_CSCMR1); | ||
168 | writel_relaxed(cscmr2, CCM_CSCMR2); | ||
169 | |||
170 | writel_relaxed(cscdr1, CCM_CSCDR1); | ||
171 | writel_relaxed(cscdr2, CCM_CSCDR2); | ||
172 | writel_relaxed(cscdr3, CCM_CSCDR3); | ||
173 | |||
174 | for (i = 0; i < 12; i++) | ||
175 | writel_relaxed(ccgr[i], CCM_CCGRx(i)); | ||
176 | } | ||
177 | |||
178 | static struct syscore_ops vf610_clk_syscore_ops = { | ||
179 | .suspend = vf610_clk_suspend, | ||
180 | .resume = vf610_clk_resume, | ||
181 | }; | ||
182 | |||
135 | static void __init vf610_clocks_init(struct device_node *ccm_node) | 183 | static void __init vf610_clocks_init(struct device_node *ccm_node) |
136 | { | 184 | { |
137 | struct device_node *np; | 185 | struct device_node *np; |
@@ -233,6 +281,9 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) | |||
233 | clk[VF610_CLK_PLL4_MAIN_DIV] = clk_register_divider_table(NULL, "pll4_audio_div", "pll4_audio", 0, CCM_CACRR, 6, 3, 0, pll4_audio_div_table, &imx_ccm_lock); | 281 | clk[VF610_CLK_PLL4_MAIN_DIV] = clk_register_divider_table(NULL, "pll4_audio_div", "pll4_audio", 0, CCM_CACRR, 6, 3, 0, pll4_audio_div_table, &imx_ccm_lock); |
234 | clk[VF610_CLK_PLL6_MAIN_DIV] = imx_clk_divider("pll6_video_div", "pll6_video", CCM_CACRR, 21, 1); | 282 | clk[VF610_CLK_PLL6_MAIN_DIV] = imx_clk_divider("pll6_video_div", "pll6_video", CCM_CACRR, 21, 1); |
235 | 283 | ||
284 | clk[VF610_CLK_DDRMC] = imx_clk_gate2_cgr("ddrmc", "ddr_sel", CCM_CCGR6, CCM_CCGRx_CGn(14), 0x2); | ||
285 | clk[VF610_CLK_WKPU] = imx_clk_gate2_cgr("wkpu", "ipg_bus", CCM_CCGR4, CCM_CCGRx_CGn(10), 0x2); | ||
286 | |||
236 | clk[VF610_CLK_USBPHY0] = imx_clk_gate("usbphy0", "pll3_usb_otg", PLL3_CTRL, 6); | 287 | clk[VF610_CLK_USBPHY0] = imx_clk_gate("usbphy0", "pll3_usb_otg", PLL3_CTRL, 6); |
237 | clk[VF610_CLK_USBPHY1] = imx_clk_gate("usbphy1", "pll7_usb_host", PLL7_CTRL, 6); | 288 | clk[VF610_CLK_USBPHY1] = imx_clk_gate("usbphy1", "pll7_usb_host", PLL7_CTRL, 6); |
238 | 289 | ||
@@ -321,11 +372,14 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) | |||
321 | clk[VF610_CLK_DCU0_SEL] = imx_clk_mux("dcu0_sel", CCM_CSCMR1, 28, 1, dcu_sels, 2); | 372 | clk[VF610_CLK_DCU0_SEL] = imx_clk_mux("dcu0_sel", CCM_CSCMR1, 28, 1, dcu_sels, 2); |
322 | clk[VF610_CLK_DCU0_EN] = imx_clk_gate("dcu0_en", "dcu0_sel", CCM_CSCDR3, 19); | 373 | clk[VF610_CLK_DCU0_EN] = imx_clk_gate("dcu0_en", "dcu0_sel", CCM_CSCDR3, 19); |
323 | clk[VF610_CLK_DCU0_DIV] = imx_clk_divider("dcu0_div", "dcu0_en", CCM_CSCDR3, 16, 3); | 374 | clk[VF610_CLK_DCU0_DIV] = imx_clk_divider("dcu0_div", "dcu0_en", CCM_CSCDR3, 16, 3); |
324 | clk[VF610_CLK_DCU0] = imx_clk_gate2("dcu0", "dcu0_div", CCM_CCGR3, CCM_CCGRx_CGn(8)); | 375 | clk[VF610_CLK_DCU0] = imx_clk_gate2("dcu0", "ipg_bus", CCM_CCGR3, CCM_CCGRx_CGn(8)); |
325 | clk[VF610_CLK_DCU1_SEL] = imx_clk_mux("dcu1_sel", CCM_CSCMR1, 29, 1, dcu_sels, 2); | 376 | clk[VF610_CLK_DCU1_SEL] = imx_clk_mux("dcu1_sel", CCM_CSCMR1, 29, 1, dcu_sels, 2); |
326 | clk[VF610_CLK_DCU1_EN] = imx_clk_gate("dcu1_en", "dcu1_sel", CCM_CSCDR3, 23); | 377 | clk[VF610_CLK_DCU1_EN] = imx_clk_gate("dcu1_en", "dcu1_sel", CCM_CSCDR3, 23); |
327 | clk[VF610_CLK_DCU1_DIV] = imx_clk_divider("dcu1_div", "dcu1_en", CCM_CSCDR3, 20, 3); | 378 | clk[VF610_CLK_DCU1_DIV] = imx_clk_divider("dcu1_div", "dcu1_en", CCM_CSCDR3, 20, 3); |
328 | clk[VF610_CLK_DCU1] = imx_clk_gate2("dcu1", "dcu1_div", CCM_CCGR9, CCM_CCGRx_CGn(8)); | 379 | clk[VF610_CLK_DCU1] = imx_clk_gate2("dcu1", "ipg_bus", CCM_CCGR9, CCM_CCGRx_CGn(8)); |
380 | |||
381 | clk[VF610_CLK_TCON0] = imx_clk_gate2("tcon0", "platform_bus", CCM_CCGR1, CCM_CCGRx_CGn(13)); | ||
382 | clk[VF610_CLK_TCON1] = imx_clk_gate2("tcon1", "platform_bus", CCM_CCGR7, CCM_CCGRx_CGn(13)); | ||
329 | 383 | ||
330 | clk[VF610_CLK_ESAI_SEL] = imx_clk_mux("esai_sel", CCM_CSCMR1, 20, 2, esai_sels, 4); | 384 | clk[VF610_CLK_ESAI_SEL] = imx_clk_mux("esai_sel", CCM_CSCMR1, 20, 2, esai_sels, 4); |
331 | clk[VF610_CLK_ESAI_EN] = imx_clk_gate("esai_en", "esai_sel", CCM_CSCDR2, 30); | 385 | clk[VF610_CLK_ESAI_EN] = imx_clk_gate("esai_en", "esai_sel", CCM_CSCDR2, 30); |
@@ -409,6 +463,8 @@ static void __init vf610_clocks_init(struct device_node *ccm_node) | |||
409 | for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) | 463 | for (i = 0; i < ARRAY_SIZE(clks_init_on); i++) |
410 | clk_prepare_enable(clk[clks_init_on[i]]); | 464 | clk_prepare_enable(clk[clks_init_on[i]]); |
411 | 465 | ||
466 | register_syscore_ops(&vf610_clk_syscore_ops); | ||
467 | |||
412 | /* Add the clocks to provider list */ | 468 | /* Add the clocks to provider list */ |
413 | clk_data.clks = clk; | 469 | clk_data.clks = clk; |
414 | clk_data.clk_num = ARRAY_SIZE(clk); | 470 | clk_data.clk_num = ARRAY_SIZE(clk); |
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index d942f5748d08..508d0fad84cf 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h | |||
@@ -41,7 +41,7 @@ struct clk *imx_clk_pllv3(enum imx_pllv3_type type, const char *name, | |||
41 | 41 | ||
42 | struct clk *clk_register_gate2(struct device *dev, const char *name, | 42 | struct clk *clk_register_gate2(struct device *dev, const char *name, |
43 | const char *parent_name, unsigned long flags, | 43 | const char *parent_name, unsigned long flags, |
44 | void __iomem *reg, u8 bit_idx, | 44 | void __iomem *reg, u8 bit_idx, u8 cgr_val, |
45 | u8 clk_gate_flags, spinlock_t *lock, | 45 | u8 clk_gate_flags, spinlock_t *lock, |
46 | unsigned int *share_count); | 46 | unsigned int *share_count); |
47 | 47 | ||
@@ -55,7 +55,7 @@ static inline struct clk *imx_clk_gate2(const char *name, const char *parent, | |||
55 | void __iomem *reg, u8 shift) | 55 | void __iomem *reg, u8 shift) |
56 | { | 56 | { |
57 | return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, | 57 | return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, |
58 | shift, 0, &imx_ccm_lock, NULL); | 58 | shift, 0x3, 0, &imx_ccm_lock, NULL); |
59 | } | 59 | } |
60 | 60 | ||
61 | static inline struct clk *imx_clk_gate2_shared(const char *name, | 61 | static inline struct clk *imx_clk_gate2_shared(const char *name, |
@@ -63,7 +63,14 @@ static inline struct clk *imx_clk_gate2_shared(const char *name, | |||
63 | unsigned int *share_count) | 63 | unsigned int *share_count) |
64 | { | 64 | { |
65 | return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, | 65 | return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, |
66 | shift, 0, &imx_ccm_lock, share_count); | 66 | shift, 0x3, 0, &imx_ccm_lock, share_count); |
67 | } | ||
68 | |||
69 | static inline struct clk *imx_clk_gate2_cgr(const char *name, const char *parent, | ||
70 | void __iomem *reg, u8 shift, u8 cgr_val) | ||
71 | { | ||
72 | return clk_register_gate2(NULL, name, parent, CLK_SET_RATE_PARENT, reg, | ||
73 | shift, cgr_val, 0, &imx_ccm_lock, NULL); | ||
67 | } | 74 | } |
68 | 75 | ||
69 | struct clk *imx_clk_pfd(const char *name, const char *parent_name, | 76 | struct clk *imx_clk_pfd(const char *name, const char *parent_name, |
diff --git a/include/dt-bindings/clock/imx7d-clock.h b/include/dt-bindings/clock/imx7d-clock.h index edca8985c50e..1183347c383f 100644 --- a/include/dt-bindings/clock/imx7d-clock.h +++ b/include/dt-bindings/clock/imx7d-clock.h | |||
@@ -448,5 +448,6 @@ | |||
448 | #define IMX7D_PLL_DRAM_TEST_DIV 435 | 448 | #define IMX7D_PLL_DRAM_TEST_DIV 435 |
449 | #define IMX7D_ADC_ROOT_CLK 436 | 449 | #define IMX7D_ADC_ROOT_CLK 436 |
450 | #define IMX7D_CLK_ARM 437 | 450 | #define IMX7D_CLK_ARM 437 |
451 | #define IMX7D_CLK_END 438 | 451 | #define IMX7D_CKIL 438 |
452 | #define IMX7D_CLK_END 439 | ||
452 | #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */ | 453 | #endif /* __DT_BINDINGS_CLOCK_IMX7D_H */ |
diff --git a/include/dt-bindings/clock/vf610-clock.h b/include/dt-bindings/clock/vf610-clock.h index 56c16aaea112..45997750c8a0 100644 --- a/include/dt-bindings/clock/vf610-clock.h +++ b/include/dt-bindings/clock/vf610-clock.h | |||
@@ -194,7 +194,11 @@ | |||
194 | #define VF610_PLL7_BYPASS 181 | 194 | #define VF610_PLL7_BYPASS 181 |
195 | #define VF610_CLK_SNVS 182 | 195 | #define VF610_CLK_SNVS 182 |
196 | #define VF610_CLK_DAP 183 | 196 | #define VF610_CLK_DAP 183 |
197 | #define VF610_CLK_OCOTP 184 | 197 | #define VF610_CLK_OCOTP 184 |
198 | #define VF610_CLK_END 185 | 198 | #define VF610_CLK_DDRMC 185 |
199 | #define VF610_CLK_WKPU 186 | ||
200 | #define VF610_CLK_TCON0 187 | ||
201 | #define VF610_CLK_TCON1 188 | ||
202 | #define VF610_CLK_END 189 | ||
199 | 203 | ||
200 | #endif /* __DT_BINDINGS_CLOCK_VF610_H */ | 204 | #endif /* __DT_BINDINGS_CLOCK_VF610_H */ |