old mode 100755new mode 100644.. | .. |
---|
8 | 8 | |
---|
9 | 9 | #include <dt-bindings/gpio/gpio.h> |
---|
10 | 10 | #include <dt-bindings/pinctrl/rockchip.h> |
---|
11 | | -#include <dt-bindings/display/media-bus-format.h> |
---|
12 | 11 | #include "rk3568.dtsi" |
---|
13 | 12 | #include "rk3568-evb.dtsi" |
---|
14 | 13 | |
---|
15 | 14 | / { |
---|
16 | 15 | model = "Rockchip RK3568 EVB1 DDR4 V10 Board"; |
---|
17 | 16 | compatible = "rockchip,rk3568-evb1-ddr4-v10", "rockchip,rk3568"; |
---|
18 | | - |
---|
19 | | - rk_headset: rk-headset { |
---|
20 | | - compatible = "rockchip_headset"; |
---|
21 | | - headset_gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>; |
---|
22 | | - pinctrl-names = "default"; |
---|
23 | | - pinctrl-0 = <&hp_det>; |
---|
24 | | - }; |
---|
25 | 17 | |
---|
26 | 18 | vcc2v5_sys: vcc2v5-ddr { |
---|
27 | 19 | compatible = "regulator-fixed"; |
---|
.. | .. |
---|
33 | 25 | vin-supply = <&vcc3v3_sys>; |
---|
34 | 26 | }; |
---|
35 | 27 | |
---|
| 28 | + vcc3v3_vga: vcc3v3-vga { |
---|
| 29 | + compatible = "regulator-fixed"; |
---|
| 30 | + regulator-name = "vcc3v3_vga"; |
---|
| 31 | + regulator-always-on; |
---|
| 32 | + regulator-boot-on; |
---|
| 33 | + gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; |
---|
| 34 | + enable-active-high; |
---|
| 35 | + vin-supply = <&vcc3v3_sys>; |
---|
| 36 | + }; |
---|
36 | 37 | |
---|
37 | 38 | pcie30_avdd0v9: pcie30-avdd0v9 { |
---|
38 | 39 | compatible = "regulator-fixed"; |
---|
.. | .. |
---|
59 | 60 | regulator-name = "vcc3v3_pcie"; |
---|
60 | 61 | regulator-min-microvolt = <3300000>; |
---|
61 | 62 | regulator-max-microvolt = <3300000>; |
---|
62 | | - regulator-always-on; |
---|
63 | 63 | enable-active-high; |
---|
64 | | - regulator-boot-on; |
---|
65 | 64 | gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; |
---|
66 | 65 | startup-delay-us = <5000>; |
---|
67 | 66 | vin-supply = <&dc_12v>; |
---|
.. | .. |
---|
86 | 85 | enable-active-high; |
---|
87 | 86 | regulator-always-on; |
---|
88 | 87 | regulator-boot-on; |
---|
89 | | - }; |
---|
| 88 | + }; |
---|
90 | 89 | #endif |
---|
91 | 90 | |
---|
92 | | - nk_io_init { |
---|
93 | | - compatible = "nk_io_control"; |
---|
94 | | - vcc3_io_en_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 |
---|
95 | | - hub_host2_5V_rest_gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
---|
96 | | - hub_host3_5v_gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8 |
---|
97 | | - vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
---|
98 | | - vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3 |
---|
99 | | - en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6 |
---|
100 | | - reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3 |
---|
101 | | - air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3 |
---|
102 | | - wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3 |
---|
103 | | - hp_en_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
---|
104 | | - spk_out_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;//AMP_SD_GPIO4_C2_3V3 |
---|
105 | | - wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
---|
106 | | -// pcie_power_en_gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;//PCIE_PWREN_H_GPIO0_D4 |
---|
107 | | - pinctrl-names = "default"; |
---|
108 | | - pinctrl-0 = <&nk_io_gpio>; |
---|
109 | | - }; |
---|
110 | | - |
---|
111 | | - panel: panel { |
---|
112 | | - compatible = "simple-panel"; |
---|
113 | | - backlight = <&backlight>; |
---|
114 | | - power-supply = <&vcc3v3_lcd0_n>; |
---|
115 | | - enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4 |
---|
116 | | - reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1 |
---|
117 | | - edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
---|
118 | | - edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3 |
---|
119 | | - bus-format = <MEDIA_BUS_FMT_RGB888_1X24>; |
---|
120 | | - bpc = <8>; |
---|
121 | | - prepare-delay-ms = <200>; |
---|
122 | | - enable-delay-ms = <20>; |
---|
123 | | - lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2 |
---|
124 | | - lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3 |
---|
125 | | - lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4 |
---|
126 | | - lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5 |
---|
127 | | - nodka-lvds = <15>; |
---|
128 | | - |
---|
129 | | - display-timings { |
---|
130 | | - native-mode = <&timing0>; |
---|
131 | | - timing0: timing0 { |
---|
132 | | - clock-frequency = <72500000>; |
---|
133 | | - hactive = <1280>; |
---|
134 | | - vactive = <800>; |
---|
135 | | - hfront-porch = <70>; |
---|
136 | | - hsync-len = <2>; |
---|
137 | | - hback-porch = <88>; |
---|
138 | | - vfront-porch = <7>; |
---|
139 | | - vsync-len = <4>; |
---|
140 | | - vback-porch = <17>; |
---|
141 | | - hsync-active = <21>; |
---|
142 | | - vsync-active = <0>; |
---|
143 | | - de-active = <0>; |
---|
144 | | - pixelclk-active = <0>; |
---|
145 | | - }; |
---|
146 | | - }; |
---|
147 | | - ports { |
---|
148 | | - panel_in: endpoint { |
---|
149 | | - remote-endpoint = <&edp_out>; |
---|
150 | | - }; |
---|
151 | | - }; |
---|
152 | | - }; |
---|
| 91 | + ndj_io_init { |
---|
| 92 | + compatible = "nk_io_control"; |
---|
| 93 | + pinctrl-names = "default"; |
---|
| 94 | + pinctrl-0 = <&nk_io_gpio>; |
---|
| 95 | + |
---|
| 96 | + //gpio_op0 = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>; |
---|
| 97 | + |
---|
| 98 | + vcc_5v { |
---|
| 99 | + gpio_num = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3 |
---|
| 100 | + gpio_function = <0>; |
---|
| 101 | + }; |
---|
| 102 | + |
---|
| 103 | + vcc_12v { |
---|
| 104 | + gpio_num = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3 |
---|
| 105 | + gpio_function = <0>; |
---|
| 106 | + }; |
---|
| 107 | + |
---|
| 108 | + hub_host2_rst { |
---|
| 109 | + gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3 |
---|
| 110 | + gpio_function = <3>; |
---|
| 111 | + }; |
---|
| 112 | + |
---|
| 113 | + hub_host3 { |
---|
| 114 | + gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8 |
---|
| 115 | + gpio_function = <0>; |
---|
| 116 | + }; |
---|
| 117 | + |
---|
| 118 | + wake_4g { |
---|
| 119 | + gpio_num = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; //4G_WAKEUP_GPIO01_B1_3V3 |
---|
| 120 | + gpio_function = <0>; |
---|
| 121 | + }; |
---|
| 122 | + |
---|
| 123 | + air_mode_4g { |
---|
| 124 | + gpio_num = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; //4G_AIR_MODE_GPIO01_B0_3V3 |
---|
| 125 | + gpio_function = <0>; |
---|
| 126 | + }; |
---|
| 127 | + |
---|
| 128 | + reset_4g { |
---|
| 129 | + gpio_num = <&gpio1 RK_PB2 GPIO_ACTIVE_LOW>; //4G_RST_GPIO01_B2_3V3 |
---|
| 130 | + gpio_function = <3>; |
---|
| 131 | + }; |
---|
| 132 | + |
---|
| 133 | + en_4g { |
---|
| 134 | + gpio_num = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6 |
---|
| 135 | + gpio_function = <0>; |
---|
| 136 | + }; |
---|
| 137 | + |
---|
| 138 | + hp_en { |
---|
| 139 | + gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3 |
---|
| 140 | + gpio_function = <0>; |
---|
| 141 | + }; |
---|
| 142 | + |
---|
| 143 | + wifi_power_en { |
---|
| 144 | + gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8 |
---|
| 145 | + gpio_function = <0>; |
---|
| 146 | + }; |
---|
| 147 | + #if 0 |
---|
| 148 | + do1 { |
---|
| 149 | + gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>; |
---|
| 150 | + gpio_function = <0>; |
---|
| 151 | + }; |
---|
| 152 | + |
---|
| 153 | + do2 { |
---|
| 154 | + gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>; |
---|
| 155 | + gpio_function = <0>; |
---|
| 156 | + }; |
---|
| 157 | + |
---|
| 158 | + do3 { |
---|
| 159 | + gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>; |
---|
| 160 | + gpio_function = <0>; |
---|
| 161 | + }; |
---|
| 162 | + |
---|
| 163 | + do4 { |
---|
| 164 | + gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>; |
---|
| 165 | + gpio_function = <0>; |
---|
| 166 | + }; |
---|
| 167 | + |
---|
| 168 | + do5 { |
---|
| 169 | + gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>; |
---|
| 170 | + gpio_function = <0>; |
---|
| 171 | + }; |
---|
| 172 | + |
---|
| 173 | + do6 { |
---|
| 174 | + gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>; |
---|
| 175 | + gpio_function = <0>; |
---|
| 176 | + }; |
---|
| 177 | + |
---|
| 178 | + do7 { |
---|
| 179 | + gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>; |
---|
| 180 | + gpio_function = <0>; |
---|
| 181 | + }; |
---|
| 182 | + |
---|
| 183 | + di1 { |
---|
| 184 | + gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>; |
---|
| 185 | + gpio_function = <1>; |
---|
| 186 | + }; |
---|
| 187 | + #endif |
---|
| 188 | +}; |
---|
153 | 189 | }; |
---|
154 | 190 | |
---|
155 | 191 | &combphy0_us { |
---|
.. | .. |
---|
212 | 248 | * video_phy0 needs to be enabled |
---|
213 | 249 | * when dsi0 is enabled |
---|
214 | 250 | */ |
---|
215 | | -&video_phy0 { |
---|
216 | | - status = "disabled"; |
---|
217 | | -}; |
---|
218 | | - |
---|
219 | 251 | &dsi0 { |
---|
220 | 252 | status = "disabled"; |
---|
221 | 253 | }; |
---|
.. | .. |
---|
236 | 268 | * video_phy1 needs to be enabled |
---|
237 | 269 | * when dsi1 is enabled |
---|
238 | 270 | */ |
---|
239 | | - |
---|
240 | | -&video_phy1 { |
---|
241 | | - status = "disabled"; |
---|
242 | | -}; |
---|
243 | 271 | &dsi1 { |
---|
244 | 272 | status = "disabled"; |
---|
245 | 273 | }; |
---|
.. | .. |
---|
256 | 284 | power-supply = <&vcc3v3_lcd1_n>; |
---|
257 | 285 | }; |
---|
258 | 286 | |
---|
259 | | -/* |
---|
260 | | -* edp_start |
---|
261 | | -*/ |
---|
262 | | - |
---|
263 | 287 | &edp { |
---|
264 | | - force-hpd; |
---|
265 | | - status = "okay"; |
---|
266 | | - ports { |
---|
267 | | - port@1 { |
---|
268 | | - reg = <1>; |
---|
269 | | - edp_out: endpoint { |
---|
270 | | - remote-endpoint = <&panel_in>; |
---|
271 | | - }; |
---|
272 | | - }; |
---|
273 | | - }; |
---|
| 288 | + hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; |
---|
| 289 | + status = "okay"; |
---|
274 | 290 | }; |
---|
275 | 291 | |
---|
276 | 292 | &edp_phy { |
---|
277 | | - status = "okay"; |
---|
| 293 | + status = "okay"; |
---|
278 | 294 | }; |
---|
279 | 295 | |
---|
280 | 296 | &edp_in_vp0 { |
---|
281 | | - status = "disabled"; |
---|
| 297 | + status = "okay"; |
---|
282 | 298 | }; |
---|
283 | 299 | |
---|
284 | 300 | &edp_in_vp1 { |
---|
285 | | - status = "okay"; |
---|
286 | | -}; |
---|
287 | | - |
---|
288 | | -&route_edp { |
---|
289 | | - status = "okay"; |
---|
290 | | - connect = <&vp1_out_edp>; |
---|
291 | | -}; |
---|
292 | | - |
---|
293 | | -&route_edp { |
---|
294 | | - status = "okay"; |
---|
295 | | -}; |
---|
296 | | -/* |
---|
297 | | -* edp_end |
---|
298 | | -*/ |
---|
299 | | - |
---|
300 | | -/* |
---|
301 | | -* Hdmi_start |
---|
302 | | -*/ |
---|
303 | | - |
---|
304 | | -&hdmi { |
---|
305 | | - status = "okay"; |
---|
306 | | - rockchip,phy-table = |
---|
307 | | - <92812500 0x8009 0x0000 0x0270>, |
---|
308 | | - <165000000 0x800b 0x0000 0x026d>, |
---|
309 | | - <185625000 0x800b 0x0000 0x01ed>, |
---|
310 | | - <297000000 0x800b 0x0000 0x01ad>, |
---|
311 | | - <594000000 0x8029 0x0000 0x0088>, |
---|
312 | | - <000000000 0x0000 0x0000 0x0000>; |
---|
313 | | -}; |
---|
314 | | - |
---|
315 | | -&route_hdmi { |
---|
316 | | - status = "okay"; |
---|
317 | | - connect = <&vp0_out_hdmi>; |
---|
318 | | -}; |
---|
319 | | - |
---|
320 | | -&hdmi_in_vp0 { |
---|
321 | | - status = "okay"; |
---|
322 | | -}; |
---|
323 | | - |
---|
324 | | -&hdmi_in_vp1 { |
---|
325 | 301 | status = "disabled"; |
---|
326 | 302 | }; |
---|
327 | | - |
---|
328 | | -&hdmi_sound { |
---|
329 | | - status = "okay"; |
---|
330 | | -}; |
---|
331 | | - |
---|
332 | | -/* |
---|
333 | | - * Hdmi_END |
---|
334 | | -*/ |
---|
335 | 303 | |
---|
336 | 304 | &gmac0 { |
---|
337 | 305 | phy-mode = "rgmii"; |
---|
.. | .. |
---|
395 | 363 | power-supply = <&vcc3v3_lcd0_n>; |
---|
396 | 364 | }; |
---|
397 | 365 | |
---|
398 | | -&i2c3 { |
---|
399 | | - status = "okay"; |
---|
400 | | - //mac eeprom |
---|
401 | | - eeprom@51 { |
---|
402 | | - //compatible = "atmel,24c02"; |
---|
403 | | - compatible = "atmel,24c256"; |
---|
404 | | - reg = <0x51>; |
---|
405 | | - }; |
---|
406 | | - |
---|
407 | | - //nk-mcu |
---|
408 | | - nkmcu@15 { |
---|
409 | | - compatible = "nk_mcu"; |
---|
410 | | - reg = <0x15>; |
---|
411 | | - }; |
---|
412 | | -}; |
---|
413 | | - |
---|
414 | 366 | &i2c4 { |
---|
415 | | - status = "okay"; |
---|
| 367 | + status = "disabled"; |
---|
416 | 368 | gc8034: gc8034@37 { |
---|
417 | 369 | compatible = "galaxycore,gc8034"; |
---|
418 | 370 | status = "okay"; |
---|
.. | .. |
---|
458 | 410 | }; |
---|
459 | 411 | }; |
---|
460 | 412 | ov5695: ov5695@36 { |
---|
461 | | - status = "okay"; |
---|
| 413 | + status = "disabled"; |
---|
462 | 414 | compatible = "ovti,ov5695"; |
---|
463 | 415 | reg = <0x36>; |
---|
464 | 416 | clocks = <&cru CLK_CIF_OUT>; |
---|
.. | .. |
---|
481 | 433 | }; |
---|
482 | 434 | }; |
---|
483 | 435 | |
---|
484 | | -&i2c5 { |
---|
485 | | - status = "okay"; |
---|
486 | | - |
---|
487 | | - hym8563: hym8563@51 { |
---|
488 | | - compatible = "haoyu,hym8563"; |
---|
489 | | - reg = <0x51>; |
---|
490 | | - #clock-cells = <0>; |
---|
491 | | - clock-frequency = <32768>; |
---|
492 | | - clock-output-names = "xin32k"; |
---|
493 | | - /* rtc_int is not connected */ |
---|
494 | | - }; |
---|
495 | | -}; |
---|
496 | | - |
---|
497 | 436 | &mdio0 { |
---|
498 | 437 | rgmii_phy0: phy@0 { |
---|
499 | 438 | compatible = "ethernet-phy-ieee802.3-c22"; |
---|
.. | .. |
---|
508 | 447 | }; |
---|
509 | 448 | }; |
---|
510 | 449 | |
---|
| 450 | +&video_phy0 { |
---|
| 451 | + status = "disabled"; |
---|
| 452 | +}; |
---|
511 | 453 | |
---|
| 454 | +&video_phy1 { |
---|
| 455 | + status = "disabled"; |
---|
| 456 | +}; |
---|
512 | 457 | |
---|
513 | 458 | &pcie30phy { |
---|
514 | 459 | status = "okay"; |
---|
515 | 460 | }; |
---|
516 | 461 | |
---|
517 | | -&pcie2x1 { |
---|
518 | | - reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; |
---|
| 462 | +&pcie3x2 { |
---|
| 463 | + reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>; |
---|
519 | 464 | vpcie3v3-supply = <&vcc3v3_pcie>; |
---|
520 | 465 | status = "okay"; |
---|
521 | 466 | }; |
---|
522 | 467 | |
---|
523 | 468 | &pinctrl { |
---|
524 | | -// cam { |
---|
525 | | -// camera_pwr: camera-pwr { |
---|
526 | | -// rockchip,pins = |
---|
527 | | -// /* camera power en */ |
---|
528 | | -// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
529 | | -// }; |
---|
530 | | -// }; |
---|
| 469 | + cam { |
---|
| 470 | + camera_pwr: camera-pwr { |
---|
| 471 | + rockchip,pins = |
---|
| 472 | + /* camera power en */ |
---|
| 473 | + <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
| 474 | + }; |
---|
| 475 | + }; |
---|
531 | 476 | headphone { |
---|
532 | 477 | hp_det: hp-det { |
---|
533 | | - rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>; |
---|
| 478 | + rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>; |
---|
534 | 479 | }; |
---|
535 | 480 | }; |
---|
536 | 481 | |
---|
537 | 482 | wireless-wlan { |
---|
538 | 483 | wifi_host_wake_irq: wifi-host-wake-irq { |
---|
539 | | - rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>; |
---|
| 484 | + rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>; |
---|
540 | 485 | }; |
---|
541 | 486 | }; |
---|
542 | 487 | |
---|
543 | 488 | wireless-bluetooth { |
---|
544 | | - uart1_gpios: uart1-gpios { |
---|
545 | | - rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
| 489 | + uart8_gpios: uart8-gpios { |
---|
| 490 | + rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
546 | 491 | }; |
---|
547 | 492 | }; |
---|
| 493 | + |
---|
548 | 494 | nk_io_init{ |
---|
549 | 495 | nk_io_gpio: nk-io-gpio{ |
---|
550 | 496 | rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
.. | .. |
---|
554 | 500 | <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
555 | 501 | <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
556 | 502 | <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
557 | | - <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 503 | + <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
558 | 504 | <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
559 | 505 | <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
560 | 506 | <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
561 | | - <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
562 | 507 | <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
563 | 508 | <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
564 | 509 | <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
565 | 510 | <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
566 | 511 | <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 512 | + <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3 |
---|
| 513 | + <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3 |
---|
| 514 | + <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3 |
---|
| 515 | + <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3 |
---|
567 | 516 | <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
568 | 517 | }; |
---|
569 | 518 | }; |
---|
| 519 | +}; |
---|
| 520 | + |
---|
| 521 | +&rk809_sound { |
---|
| 522 | + hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>; |
---|
570 | 523 | }; |
---|
571 | 524 | |
---|
572 | 525 | &rkisp { |
---|
.. | .. |
---|
578 | 531 | }; |
---|
579 | 532 | |
---|
580 | 533 | &rkisp_vir0 { |
---|
581 | | - status = "disabled"; |
---|
| 534 | + status = "okay"; |
---|
582 | 535 | |
---|
583 | 536 | port { |
---|
584 | 537 | #address-cells = <1>; |
---|
.. | .. |
---|
596 | 549 | connect = <&vp1_out_dsi0>; |
---|
597 | 550 | }; |
---|
598 | 551 | |
---|
599 | | - |
---|
| 552 | +&route_edp { |
---|
| 553 | + status = "okay"; |
---|
| 554 | + connect = <&vp0_out_edp>; |
---|
| 555 | +}; |
---|
600 | 556 | |
---|
601 | 557 | &sata2 { |
---|
602 | 558 | status = "okay"; |
---|
603 | 559 | }; |
---|
604 | 560 | |
---|
605 | 561 | &sdmmc2 { |
---|
606 | | - status = "disabled"; |
---|
607 | | -}; |
---|
608 | | - |
---|
609 | | -&sdmmc1 { |
---|
610 | | - max-frequency = <150000000>; |
---|
611 | | - supports-sdio; |
---|
612 | | - bus-width = <4>; |
---|
613 | | - disable-wp; |
---|
614 | | - cap-sd-highspeed; |
---|
615 | | - cap-sdio-irq; |
---|
616 | | - keep-power-in-suspend; |
---|
617 | | - mmc-pwrseq = <&sdio_pwrseq>; |
---|
618 | | - non-removable; |
---|
619 | | - pinctrl-names = "default"; |
---|
620 | | - pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; |
---|
621 | | - sd-uhs-sdr104; |
---|
622 | | - status = "okay"; |
---|
| 562 | + max-frequency = <150000000>; |
---|
| 563 | + supports-sdio; |
---|
| 564 | + bus-width = <4>; |
---|
| 565 | + disable-wp; |
---|
| 566 | + cap-sd-highspeed; |
---|
| 567 | + cap-sdio-irq; |
---|
| 568 | + keep-power-in-suspend; |
---|
| 569 | + mmc-pwrseq = <&sdio_pwrseq>; |
---|
| 570 | + non-removable; |
---|
| 571 | + pinctrl-names = "default"; |
---|
| 572 | + pinctrl-0 = <&sdmmc2m0_bus4 &sdmmc2m0_cmd &sdmmc2m0_clk>; |
---|
| 573 | + sd-uhs-sdr104; |
---|
| 574 | + status = "okay"; |
---|
623 | 575 | }; |
---|
624 | 576 | |
---|
625 | 577 | &spdif_8ch { |
---|
.. | .. |
---|
629 | 581 | }; |
---|
630 | 582 | |
---|
631 | 583 | &uart8 { |
---|
632 | | - status = "disabled"; |
---|
| 584 | + status = "okay"; |
---|
633 | 585 | pinctrl-names = "default"; |
---|
634 | 586 | pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>; |
---|
635 | 587 | }; |
---|
636 | 588 | |
---|
637 | 589 | &vcc3v3_lcd0_n { |
---|
638 | | - gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; |
---|
| 590 | + gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; |
---|
639 | 591 | enable-active-high; |
---|
640 | 592 | }; |
---|
641 | 593 | |
---|
.. | .. |
---|
647 | 599 | &wireless_wlan { |
---|
648 | 600 | pinctrl-names = "default"; |
---|
649 | 601 | pinctrl-0 = <&wifi_host_wake_irq>; |
---|
650 | | - WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>; |
---|
| 602 | + WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; |
---|
651 | 603 | }; |
---|
652 | 604 | |
---|
653 | 605 | &wireless_bluetooth { |
---|
.. | .. |
---|
655 | 607 | clocks = <&rk809 1>; |
---|
656 | 608 | clock-names = "ext_clock"; |
---|
657 | 609 | //wifi-bt-power-toggle; |
---|
658 | | - uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>; |
---|
659 | | - BT,power_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; |
---|
| 610 | + uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; |
---|
660 | 611 | pinctrl-names = "default", "rts_gpio"; |
---|
661 | | - pinctrl-0 = <&uart1m0_rtsn>; |
---|
662 | | - pinctrl-1 = <&uart1_gpios>; |
---|
| 612 | + pinctrl-0 = <&uart8m0_rtsn>; |
---|
| 613 | + pinctrl-1 = <&uart8_gpios>; |
---|
663 | 614 | BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>; |
---|
664 | 615 | BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>; |
---|
665 | 616 | BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>; |
---|
666 | | - status = "disabled"; |
---|
667 | | -}; |
---|
668 | | - |
---|
669 | | -&uart0 { |
---|
670 | 617 | status = "okay"; |
---|
671 | | -}; |
---|
672 | | - |
---|
673 | | -&uart3 { |
---|
674 | | - status = "okay"; |
---|
675 | | - pinctrl-0 = <&uart3m1_xfer>; |
---|
676 | | -}; |
---|
677 | | - |
---|
678 | | -&uart4 { |
---|
679 | | - status = "okay"; |
---|
680 | | - pinctrl-0 = <&uart4m1_xfer>; |
---|
681 | | -}; |
---|
682 | | - |
---|
683 | | -&uart5 { |
---|
684 | | - status = "okay"; |
---|
685 | | - pinctrl-0 = <&uart5m1_xfer>; |
---|
686 | | -}; |
---|
687 | | - |
---|
688 | | -&uart7 { |
---|
689 | | - status = "okay"; |
---|
690 | | - pinctrl-0 = <&uart7m1_xfer>; |
---|
691 | | -}; |
---|
692 | | - |
---|
693 | | -&uart9 { |
---|
694 | | - status = "okay"; |
---|
695 | | - pinctrl-0 = <&uart9m1_xfer>; |
---|
696 | 618 | }; |
---|