.. | .. |
---|
5 | 5 | |
---|
6 | 6 | /dts-v1/; |
---|
7 | 7 | #include "rk3328.dtsi" |
---|
8 | | -#include <dt-bindings/input/input.h> |
---|
9 | 8 | |
---|
10 | 9 | / { |
---|
11 | 10 | model = "Rockchip RK3328 EVB"; |
---|
.. | .. |
---|
15 | 14 | stdout-path = "serial2:1500000n8"; |
---|
16 | 15 | }; |
---|
17 | 16 | |
---|
18 | | - adc-keys { |
---|
19 | | - compatible = "adc-keys"; |
---|
20 | | - io-channels = <&saradc 0>; |
---|
21 | | - io-channel-names = "buttons"; |
---|
22 | | - poll-interval = <100>; |
---|
23 | | - keyup-threshold-microvolt = <1800000>; |
---|
24 | | - |
---|
25 | | - vol-up-key { |
---|
26 | | - linux,code = <KEY_VOLUMEUP>; |
---|
27 | | - label = "volume up"; |
---|
28 | | - press-threshold-microvolt = <18000>; |
---|
29 | | - }; |
---|
30 | | - }; |
---|
31 | | - |
---|
32 | 17 | dc_12v: dc-12v { |
---|
33 | 18 | compatible = "regulator-fixed"; |
---|
34 | 19 | regulator-name = "dc_12v"; |
---|
.. | .. |
---|
36 | 21 | regulator-boot-on; |
---|
37 | 22 | regulator-min-microvolt = <12000000>; |
---|
38 | 23 | regulator-max-microvolt = <12000000>; |
---|
39 | | - }; |
---|
40 | | - |
---|
41 | | - reserved-memory { |
---|
42 | | - #address-cells = <2>; |
---|
43 | | - #size-cells = <2>; |
---|
44 | | - ranges; |
---|
45 | | - |
---|
46 | | - drm_logo: drm-logo@00000000 { |
---|
47 | | - compatible = "rockchip,drm-logo"; |
---|
48 | | - reg = <0x0 0x0 0x0 0x0>; |
---|
49 | | - }; |
---|
50 | 24 | }; |
---|
51 | 25 | |
---|
52 | 26 | sdio_pwrseq: sdio-pwrseq { |
---|
.. | .. |
---|
79 | 53 | compatible = "regulator-fixed"; |
---|
80 | 54 | gpio = <&gpio0 30 GPIO_ACTIVE_LOW>; |
---|
81 | 55 | pinctrl-names = "default"; |
---|
82 | | - pinctrl-0 = <&sdmmc0m1_gpio>; |
---|
| 56 | + pinctrl-0 = <&sdmmc0m1_pin>; |
---|
83 | 57 | regulator-name = "vcc_sd"; |
---|
84 | 58 | regulator-min-microvolt = <3300000>; |
---|
85 | 59 | regulator-max-microvolt = <3300000>; |
---|
.. | .. |
---|
96 | 70 | vin-supply = <&dc_12v>; |
---|
97 | 71 | }; |
---|
98 | 72 | |
---|
99 | | - gmac_clkin: external-gmac-clock { |
---|
100 | | - compatible = "fixed-clock"; |
---|
101 | | - clock-frequency = <125000000>; |
---|
102 | | - clock-output-names = "gmac_clkin"; |
---|
103 | | - #clock-cells = <0>; |
---|
104 | | - }; |
---|
105 | | - |
---|
106 | 73 | vcc_phy: vcc-phy-regulator { |
---|
107 | 74 | compatible = "regulator-fixed"; |
---|
108 | 75 | regulator-name = "vcc_phy"; |
---|
109 | 76 | regulator-always-on; |
---|
110 | 77 | regulator-boot-on; |
---|
111 | | - }; |
---|
112 | | - |
---|
113 | | - sound { |
---|
114 | | - compatible = "simple-audio-card"; |
---|
115 | | - simple-audio-card,format = "i2s"; |
---|
116 | | - simple-audio-card,mclk-fs = <256>; |
---|
117 | | - simple-audio-card,name = "rockchip,rk3328"; |
---|
118 | | - simple-audio-card,cpu { |
---|
119 | | - sound-dai = <&i2s1>; |
---|
120 | | - }; |
---|
121 | | - simple-audio-card,codec { |
---|
122 | | - sound-dai = <&codec>; |
---|
123 | | - }; |
---|
124 | | - }; |
---|
125 | | - |
---|
126 | | - hdmi-sound { |
---|
127 | | - compatible = "simple-audio-card"; |
---|
128 | | - simple-audio-card,format = "i2s"; |
---|
129 | | - simple-audio-card,mclk-fs = <128>; |
---|
130 | | - simple-audio-card,name = "rockchip,hdmi"; |
---|
131 | | - simple-audio-card,cpu { |
---|
132 | | - sound-dai = <&i2s0>; |
---|
133 | | - }; |
---|
134 | | - simple-audio-card,codec { |
---|
135 | | - sound-dai = <&hdmi>; |
---|
136 | | - }; |
---|
137 | | - }; |
---|
138 | | - |
---|
139 | | - spdif-sound { |
---|
140 | | - compatible = "simple-audio-card"; |
---|
141 | | - simple-audio-card,name = "rockchip,spdif"; |
---|
142 | | - simple-audio-card,cpu { |
---|
143 | | - sound-dai = <&spdif>; |
---|
144 | | - }; |
---|
145 | | - simple-audio-card,codec { |
---|
146 | | - sound-dai = <&spdif_out>; |
---|
147 | | - }; |
---|
148 | | - }; |
---|
149 | | - |
---|
150 | | - spdif_out: spdif-out { |
---|
151 | | - compatible = "linux,spdif-dit"; |
---|
152 | | - #sound-dai-cells = <0>; |
---|
153 | 78 | }; |
---|
154 | 79 | |
---|
155 | 80 | xin32k: xin32k { |
---|
.. | .. |
---|
159 | 84 | #clock-cells = <0>; |
---|
160 | 85 | }; |
---|
161 | 86 | |
---|
162 | | - wireless-wlan { |
---|
163 | | - compatible = "wlan-platdata"; |
---|
164 | | - rockchip,grf = <&grf>; |
---|
165 | | - wifi_chip_type = "ap6354"; |
---|
166 | | - sdio_vref = <1800>; |
---|
167 | | - WIFI,host_wake_irq = <&gpio1 19 GPIO_ACTIVE_HIGH>; |
---|
168 | | - status = "okay"; |
---|
169 | | - }; |
---|
170 | | -}; |
---|
171 | | - |
---|
172 | | -&avsd { |
---|
173 | | - status = "okay"; |
---|
174 | | -}; |
---|
175 | | - |
---|
176 | | -&i2s0 { |
---|
177 | | - #sound-dai-cells = <0>; |
---|
178 | | - rockchip,bclk-fs = <128>; |
---|
179 | | - status = "okay"; |
---|
180 | | -}; |
---|
181 | | - |
---|
182 | | -&i2s1 { |
---|
183 | | - #sound-dai-cells = <0>; |
---|
184 | | - status = "okay"; |
---|
185 | | -}; |
---|
186 | | - |
---|
187 | | -&codec { |
---|
188 | | - #sound-dai-cells = <0>; |
---|
189 | | - status = "okay"; |
---|
190 | | -}; |
---|
191 | | - |
---|
192 | | -&spdif { |
---|
193 | | - #sound-dai-cells = <0>; |
---|
194 | | - status = "okay"; |
---|
195 | 87 | }; |
---|
196 | 88 | |
---|
197 | 89 | &cpu0 { |
---|
198 | 90 | cpu-supply = <&vdd_arm>; |
---|
199 | 91 | }; |
---|
200 | 92 | |
---|
201 | | -&dmc { |
---|
202 | | - center-supply = <&vdd_logic>; |
---|
203 | | - status = "okay"; |
---|
| 93 | +&cpu1 { |
---|
| 94 | + cpu-supply = <&vdd_arm>; |
---|
204 | 95 | }; |
---|
205 | 96 | |
---|
206 | | -&display_subsystem { |
---|
207 | | - logo-memory-region = <&drm_logo>; |
---|
208 | | - status = "okay"; |
---|
| 97 | +&cpu2 { |
---|
| 98 | + cpu-supply = <&vdd_arm>; |
---|
| 99 | +}; |
---|
209 | 100 | |
---|
210 | | - route { |
---|
211 | | - route_hdmi: route-hdmi { |
---|
212 | | - status = "okay"; |
---|
213 | | - logo,uboot = "logo.bmp"; |
---|
214 | | - logo,kernel = "logo_kernel.bmp"; |
---|
215 | | - logo,mode = "fullscreen"; |
---|
216 | | - charge_logo,mode = "fullscreen"; |
---|
217 | | - connect = <&vop_out_hdmi>; |
---|
218 | | - }; |
---|
219 | | - }; |
---|
| 101 | +&cpu3 { |
---|
| 102 | + cpu-supply = <&vdd_arm>; |
---|
220 | 103 | }; |
---|
221 | 104 | |
---|
222 | 105 | &emmc { |
---|
223 | 106 | bus-width = <8>; |
---|
224 | 107 | cap-mmc-highspeed; |
---|
225 | | - mmc-hs200-1_8v; |
---|
226 | 108 | non-removable; |
---|
227 | 109 | pinctrl-names = "default"; |
---|
228 | 110 | pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; |
---|
.. | .. |
---|
232 | 114 | &gmac2phy { |
---|
233 | 115 | phy-supply = <&vcc_phy>; |
---|
234 | 116 | clock_in_out = "output"; |
---|
235 | | - assigned-clocks = <&cru SCLK_MAC2PHY_SRC>; |
---|
236 | 117 | assigned-clock-rate = <50000000>; |
---|
237 | 118 | assigned-clocks = <&cru SCLK_MAC2PHY>; |
---|
238 | 119 | assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>; |
---|
239 | | - status = "okay"; |
---|
240 | | -}; |
---|
241 | | - |
---|
242 | | -&gmac2io { |
---|
243 | | - phy-supply = <&vcc_phy>; |
---|
244 | | - phy-mode = "rgmii"; |
---|
245 | | - clock_in_out = "input"; |
---|
246 | | - snps,reset-gpio = <&gpio1 18 GPIO_ACTIVE_LOW>; |
---|
247 | | - snps,reset-active-low; |
---|
248 | | - snps,reset-delays-us = <0 10000 50000>; |
---|
249 | | - assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>; |
---|
250 | | - assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>; |
---|
251 | | - pinctrl-names = "default"; |
---|
252 | | - pinctrl-0 = <&rgmiim1_pins>; |
---|
253 | | - tx_delay = <0x26>; |
---|
254 | | - rx_delay = <0x11>; |
---|
255 | | - status = "disabled"; |
---|
256 | | -}; |
---|
257 | | - |
---|
258 | | -&gpu { |
---|
259 | | - status = "okay"; |
---|
260 | | - mali-supply = <&vdd_logic>; |
---|
261 | | -}; |
---|
262 | | - |
---|
263 | | -&io_domains { |
---|
264 | | - status = "okay"; |
---|
265 | | - |
---|
266 | | - vccio1-supply = <&vcc_io>; |
---|
267 | | - vccio2-supply = <&vcc18_emmc>; |
---|
268 | | - vccio3-supply = <&vcc_io>; |
---|
269 | | - vccio4-supply = <&vcc_18>; |
---|
270 | | - vccio5-supply = <&vcc_io>; |
---|
271 | | - vccio6-supply = <&vcc_io>; |
---|
272 | | - pmuio-supply = <&vcc_io>; |
---|
273 | | -}; |
---|
274 | | - |
---|
275 | | -&u3phy { |
---|
276 | | - vbus-drv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; |
---|
277 | | - status = "okay"; |
---|
278 | | -}; |
---|
279 | | - |
---|
280 | | -&u3phy_utmi { |
---|
281 | | - status = "okay"; |
---|
282 | | -}; |
---|
283 | | - |
---|
284 | | -&u3phy_pipe { |
---|
285 | | - status = "okay"; |
---|
286 | | -}; |
---|
287 | | - |
---|
288 | | -&hdmi { |
---|
289 | | - #sound-dai-cells = <0>; |
---|
290 | | - ddc-i2c-scl-high-time-ns = <9625>; |
---|
291 | | - ddc-i2c-scl-low-time-ns = <10000>; |
---|
292 | | - status = "okay"; |
---|
293 | | -}; |
---|
294 | | - |
---|
295 | | -&hdmiphy { |
---|
296 | | - status = "okay"; |
---|
297 | | -}; |
---|
298 | | - |
---|
299 | | -&usbdrd3 { |
---|
300 | | - status = "okay"; |
---|
301 | | -}; |
---|
302 | | - |
---|
303 | | -&usbdrd_dwc3 { |
---|
304 | 120 | status = "okay"; |
---|
305 | 121 | }; |
---|
306 | 122 | |
---|
.. | .. |
---|
398 | 214 | }; |
---|
399 | 215 | }; |
---|
400 | 216 | |
---|
401 | | - vdd_11: LDO_REG3 { |
---|
402 | | - regulator-name = "vdd_11"; |
---|
403 | | - regulator-min-microvolt = <1100000>; |
---|
404 | | - regulator-max-microvolt = <1100000>; |
---|
| 217 | + vdd_10: LDO_REG3 { |
---|
| 218 | + regulator-name = "vdd_10"; |
---|
| 219 | + regulator-min-microvolt = <1000000>; |
---|
| 220 | + regulator-max-microvolt = <1000000>; |
---|
405 | 221 | regulator-always-on; |
---|
406 | 222 | regulator-boot-on; |
---|
407 | 223 | regulator-state-mem { |
---|
408 | 224 | regulator-on-in-suspend; |
---|
409 | | - regulator-suspend-microvolt = <1100000>; |
---|
| 225 | + regulator-suspend-microvolt = <1000000>; |
---|
410 | 226 | }; |
---|
411 | 227 | }; |
---|
412 | 228 | }; |
---|
413 | 229 | }; |
---|
414 | | -}; |
---|
415 | | - |
---|
416 | | -&mpp_srv { |
---|
417 | | - status = "okay"; |
---|
418 | 230 | }; |
---|
419 | 231 | |
---|
420 | 232 | &pinctrl { |
---|
.. | .. |
---|
430 | 242 | <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
431 | 243 | }; |
---|
432 | 244 | }; |
---|
433 | | -}; |
---|
434 | | - |
---|
435 | | -&pwm3 { |
---|
436 | | - status = "okay"; |
---|
437 | | - compatible = "rockchip,remotectl-pwm"; |
---|
438 | | - pinctrl-names = "default"; |
---|
439 | | - pinctrl-0 = <&pwmir_pin>; |
---|
440 | | - remote_pwm_id = <3>; |
---|
441 | | - handle_cpu_id = <1>; |
---|
442 | | - remote_support_psci = <1>; |
---|
443 | | - |
---|
444 | | - ir_key1 { |
---|
445 | | - rockchip,usercode = <0x4040>; |
---|
446 | | - rockchip,key_table = |
---|
447 | | - <0xf2 KEY_REPLY>, |
---|
448 | | - <0xba KEY_BACK>, |
---|
449 | | - <0xf4 KEY_UP>, |
---|
450 | | - <0xf1 KEY_DOWN>, |
---|
451 | | - <0xef KEY_LEFT>, |
---|
452 | | - <0xee KEY_RIGHT>, |
---|
453 | | - <0xbd KEY_HOME>, |
---|
454 | | - <0xea KEY_VOLUMEUP>, |
---|
455 | | - <0xe3 KEY_VOLUMEDOWN>, |
---|
456 | | - <0xe2 KEY_SEARCH>, |
---|
457 | | - <0xb2 KEY_POWER>, |
---|
458 | | - <0xbc KEY_MUTE>, |
---|
459 | | - <0xec KEY_MENU>, |
---|
460 | | - <0xbf 0x190>, |
---|
461 | | - <0xe0 0x191>, |
---|
462 | | - <0xe1 0x192>, |
---|
463 | | - <0xe9 183>, |
---|
464 | | - <0xe6 248>, |
---|
465 | | - <0xe8 185>, |
---|
466 | | - <0xe7 186>, |
---|
467 | | - <0xf0 388>, |
---|
468 | | - <0xbe 0x175>; |
---|
469 | | - }; |
---|
470 | | - |
---|
471 | | - ir_key2 { |
---|
472 | | - rockchip,usercode = <0xff00>; |
---|
473 | | - rockchip,key_table = |
---|
474 | | - <0x39 KEY_POWER>, |
---|
475 | | - <0x73 KEY_MUTE>, |
---|
476 | | - <0xa4 KEY_PLAYPAUSE>, |
---|
477 | | - <0x75 KEY_VOLUMEDOWN>, |
---|
478 | | - <0x77 KEY_VOLUMEUP>, |
---|
479 | | - <0x7d KEY_MENU>, |
---|
480 | | - <0xf9 KEY_HOME>, |
---|
481 | | - <0x5f KEY_BACK>, |
---|
482 | | - <0xb9 KEY_UP>, |
---|
483 | | - <0xe9 KEY_DOWN>, |
---|
484 | | - <0xb8 KEY_LEFT>, |
---|
485 | | - <0xea KEY_RIGHT>, |
---|
486 | | - <0xaa KEY_REPLY>, |
---|
487 | | - <0x55 KEY_1>, |
---|
488 | | - <0x5b KEY_2>, |
---|
489 | | - <0xf8 KEY_3>, |
---|
490 | | - <0x57 KEY_4>, |
---|
491 | | - <0xed KEY_5>, |
---|
492 | | - <0xee KEY_6>, |
---|
493 | | - <0x59 KEY_7>, |
---|
494 | | - <0xf1 KEY_8>, |
---|
495 | | - <0xf2 KEY_9>, |
---|
496 | | - <0xe0 KEY_BACKSPACE>, |
---|
497 | | - <0x79 KEY_0>, |
---|
498 | | - <0xa4 KEY_SETUP>; |
---|
499 | | - }; |
---|
500 | | - |
---|
501 | | - ir_key3 { |
---|
502 | | - rockchip,usercode = <0x1dcc>; |
---|
503 | | - rockchip,key_table = |
---|
504 | | - <0xee KEY_REPLY>, |
---|
505 | | - <0xf0 KEY_BACK>, |
---|
506 | | - <0xf8 KEY_UP>, |
---|
507 | | - <0xbb KEY_DOWN>, |
---|
508 | | - <0xef KEY_LEFT>, |
---|
509 | | - <0xed KEY_RIGHT>, |
---|
510 | | - <0xfc KEY_HOME>, |
---|
511 | | - <0xf1 KEY_VOLUMEUP>, |
---|
512 | | - <0xfd KEY_VOLUMEDOWN>, |
---|
513 | | - <0xb7 KEY_SEARCH>, |
---|
514 | | - <0xff KEY_POWER>, |
---|
515 | | - <0xf3 KEY_MUTE>, |
---|
516 | | - <0xbf KEY_MENU>, |
---|
517 | | - <0xf9 0x191>, |
---|
518 | | - <0xf5 0x192>, |
---|
519 | | - <0xb3 388>, |
---|
520 | | - <0xbe KEY_1>, |
---|
521 | | - <0xba KEY_2>, |
---|
522 | | - <0xb2 KEY_3>, |
---|
523 | | - <0xbd KEY_4>, |
---|
524 | | - <0xf9 KEY_5>, |
---|
525 | | - <0xb1 KEY_6>, |
---|
526 | | - <0xfc KEY_7>, |
---|
527 | | - <0xf8 KEY_8>, |
---|
528 | | - <0xb0 KEY_9>, |
---|
529 | | - <0xb6 KEY_0>, |
---|
530 | | - <0xb5 KEY_BACKSPACE>; |
---|
531 | | - }; |
---|
532 | | -}; |
---|
533 | | - |
---|
534 | | -&rga { |
---|
535 | | - status = "okay"; |
---|
536 | | -}; |
---|
537 | | - |
---|
538 | | -&rkvdec { |
---|
539 | | - vcodec-supply = <&vdd_logic>; |
---|
540 | | - status = "okay"; |
---|
541 | | -}; |
---|
542 | | - |
---|
543 | | -&rkvdec_mmu { |
---|
544 | | - status = "okay"; |
---|
545 | | -}; |
---|
546 | | - |
---|
547 | | -&rockchip_suspend { |
---|
548 | | - status = "okay"; |
---|
549 | | - rockchip,virtual-poweroff = <1>; |
---|
550 | | -}; |
---|
551 | | - |
---|
552 | | -&saradc { |
---|
553 | | - status = "okay"; |
---|
554 | | - vref-supply = <&vcc_18>; |
---|
555 | 245 | }; |
---|
556 | 246 | |
---|
557 | 247 | &sdio { |
---|
.. | .. |
---|
583 | 273 | status = "okay"; |
---|
584 | 274 | }; |
---|
585 | 275 | |
---|
| 276 | +&uart2 { |
---|
| 277 | + status = "okay"; |
---|
| 278 | +}; |
---|
| 279 | + |
---|
586 | 280 | &u2phy { |
---|
587 | 281 | status = "okay"; |
---|
588 | 282 | }; |
---|
.. | .. |
---|
604 | 298 | }; |
---|
605 | 299 | |
---|
606 | 300 | &usb_host0_ohci { |
---|
607 | | - status = "okay"; |
---|
608 | | -}; |
---|
609 | | - |
---|
610 | | -&vdpu { |
---|
611 | | - status = "okay"; |
---|
612 | | -}; |
---|
613 | | - |
---|
614 | | -&vpu_mmu { |
---|
615 | | - status = "okay"; |
---|
616 | | -}; |
---|
617 | | - |
---|
618 | | -&vepu { |
---|
619 | | - status = "okay"; |
---|
620 | | -}; |
---|
621 | | - |
---|
622 | | -&vepu_mmu { |
---|
623 | | - status = "okay"; |
---|
624 | | -}; |
---|
625 | | - |
---|
626 | | -&vepu22 { |
---|
627 | | - status = "okay"; |
---|
628 | | -}; |
---|
629 | | - |
---|
630 | | -&vepu22_mmu { |
---|
631 | | - status = "okay"; |
---|
632 | | -}; |
---|
633 | | - |
---|
634 | | -&vop { |
---|
635 | | - status = "okay"; |
---|
636 | | -}; |
---|
637 | | - |
---|
638 | | -&vop_mmu { |
---|
639 | 301 | status = "okay"; |
---|
640 | 302 | }; |
---|