.. | .. |
---|
75 | 75 | regulator-max-microvolt = <3300000>; |
---|
76 | 76 | vin-supply = <&vcc5v0_sys>; |
---|
77 | 77 | }; |
---|
78 | | -#if 0 |
---|
| 78 | + |
---|
79 | 79 | vcc_camera: vcc-camera-regulator { |
---|
80 | 80 | compatible = "regulator-fixed"; |
---|
81 | 81 | gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; |
---|
.. | .. |
---|
86 | 86 | regulator-always-on; |
---|
87 | 87 | regulator-boot-on; |
---|
88 | 88 | }; |
---|
89 | | -#endif |
---|
90 | | - |
---|
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 | | -}; |
---|
189 | 89 | }; |
---|
190 | 90 | |
---|
191 | 91 | &combphy0_us { |
---|
.. | .. |
---|
201 | 101 | }; |
---|
202 | 102 | |
---|
203 | 103 | &csi2_dphy_hw { |
---|
204 | | - status = "disabled"; |
---|
| 104 | + status = "okay"; |
---|
205 | 105 | }; |
---|
206 | 106 | |
---|
207 | 107 | &csi2_dphy0 { |
---|
208 | | - status = "disabled"; |
---|
| 108 | + status = "okay"; |
---|
209 | 109 | |
---|
210 | 110 | ports { |
---|
211 | 111 | #address-cells = <1>; |
---|
.. | .. |
---|
249 | 149 | * when dsi0 is enabled |
---|
250 | 150 | */ |
---|
251 | 151 | &dsi0 { |
---|
252 | | - status = "disabled"; |
---|
| 152 | + status = "okay"; |
---|
253 | 153 | }; |
---|
254 | 154 | |
---|
255 | 155 | &dsi0_in_vp0 { |
---|
.. | .. |
---|
257 | 157 | }; |
---|
258 | 158 | |
---|
259 | 159 | &dsi0_in_vp1 { |
---|
260 | | - status = "disabled"; |
---|
| 160 | + status = "okay"; |
---|
261 | 161 | }; |
---|
262 | 162 | |
---|
263 | 163 | &dsi0_panel { |
---|
.. | .. |
---|
325 | 225 | rx_delay = <0x2f>; |
---|
326 | 226 | |
---|
327 | 227 | phy-handle = <&rgmii_phy0>; |
---|
328 | | - status = "disabled"; |
---|
| 228 | + status = "okay"; |
---|
329 | 229 | }; |
---|
330 | 230 | |
---|
331 | 231 | &gmac1 { |
---|
332 | 232 | phy-mode = "rgmii"; |
---|
333 | 233 | clock_in_out = "output"; |
---|
334 | 234 | |
---|
335 | | - snps,reset-gpio = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>; |
---|
| 235 | + snps,reset-gpio = <&gpio2 RK_PD1 GPIO_ACTIVE_LOW>; |
---|
336 | 236 | snps,reset-active-low; |
---|
337 | 237 | /* Reset time is 20ms, 100ms for rtl8211f */ |
---|
338 | 238 | snps,reset-delays-us = <0 20000 100000>; |
---|
.. | .. |
---|
359 | 259 | * power-supply should switche to vcc3v3_lcd1_n |
---|
360 | 260 | * when mipi panel is connected to dsi1. |
---|
361 | 261 | */ |
---|
| 262 | +>1x { |
---|
| 263 | + power-supply = <&vcc3v3_lcd0_n>; |
---|
| 264 | +}; |
---|
362 | 265 | |
---|
363 | 266 | &i2c4 { |
---|
364 | | - status = "disabled"; |
---|
| 267 | + status = "okay"; |
---|
365 | 268 | gc8034: gc8034@37 { |
---|
366 | 269 | compatible = "galaxycore,gc8034"; |
---|
367 | 270 | status = "okay"; |
---|
.. | .. |
---|
370 | 273 | clock-names = "xvclk"; |
---|
371 | 274 | pinctrl-names = "default"; |
---|
372 | 275 | pinctrl-0 = <&cif_clk>; |
---|
| 276 | + power-domains = <&power RK3568_PD_VI>; |
---|
373 | 277 | reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>; |
---|
374 | 278 | pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>; |
---|
375 | 279 | rockchip,grf = <&grf>; |
---|
376 | | - power-domains = <&power RK3568_PD_VI>; |
---|
377 | 280 | rockchip,camera-module-index = <0>; |
---|
378 | 281 | rockchip,camera-module-facing = "back"; |
---|
379 | 282 | rockchip,camera-module-name = "RK-CMK-8M-2-v1"; |
---|
.. | .. |
---|
407 | 310 | }; |
---|
408 | 311 | }; |
---|
409 | 312 | ov5695: ov5695@36 { |
---|
410 | | - status = "disabled"; |
---|
| 313 | + status = "okay"; |
---|
411 | 314 | compatible = "ovti,ov5695"; |
---|
412 | 315 | reg = <0x36>; |
---|
413 | 316 | clocks = <&cru CLK_CIF_OUT>; |
---|
.. | .. |
---|
445 | 348 | }; |
---|
446 | 349 | |
---|
447 | 350 | &video_phy0 { |
---|
448 | | - status = "disabled"; |
---|
| 351 | + status = "okay"; |
---|
449 | 352 | }; |
---|
450 | 353 | |
---|
451 | 354 | &video_phy1 { |
---|
.. | .. |
---|
487 | 390 | rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
488 | 391 | }; |
---|
489 | 392 | }; |
---|
490 | | - |
---|
491 | | - nk_io_init{ |
---|
492 | | - nk_io_gpio: nk-io-gpio{ |
---|
493 | | - rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
494 | | - <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
495 | | - <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
496 | | - <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
497 | | - <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
498 | | - <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
499 | | - <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
500 | | - <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
501 | | - <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
502 | | - <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
503 | | - <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
504 | | - <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
505 | | - <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
506 | | - <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
507 | | - <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
508 | | - <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
509 | | - <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3 |
---|
510 | | - <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3 |
---|
511 | | - <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3 |
---|
512 | | - <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3 |
---|
513 | | - <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
514 | | - }; |
---|
515 | | - }; |
---|
516 | 393 | }; |
---|
517 | 394 | |
---|
518 | 395 | &rk809_sound { |
---|
.. | .. |
---|
520 | 397 | }; |
---|
521 | 398 | |
---|
522 | 399 | &rkisp { |
---|
523 | | - status = "disabled"; |
---|
| 400 | + status = "okay"; |
---|
524 | 401 | }; |
---|
525 | 402 | |
---|
526 | 403 | &rkisp_mmu { |
---|
527 | | - status = "disabled"; |
---|
| 404 | + status = "okay"; |
---|
528 | 405 | }; |
---|
529 | 406 | |
---|
530 | 407 | &rkisp_vir0 { |
---|
.. | .. |
---|
542 | 419 | }; |
---|
543 | 420 | |
---|
544 | 421 | &route_dsi0 { |
---|
545 | | - status = "disabled"; |
---|
| 422 | + status = "okay"; |
---|
546 | 423 | connect = <&vp1_out_dsi0>; |
---|
547 | 424 | }; |
---|
548 | 425 | |
---|
.. | .. |
---|
557 | 434 | |
---|
558 | 435 | &sdmmc2 { |
---|
559 | 436 | max-frequency = <150000000>; |
---|
560 | | - supports-sdio; |
---|
| 437 | + no-sd; |
---|
| 438 | + no-mmc; |
---|
561 | 439 | bus-width = <4>; |
---|
562 | 440 | disable-wp; |
---|
563 | 441 | cap-sd-highspeed; |
---|