hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
old mode 100755new mode 100644
....@@ -8,21 +8,12 @@
88
99 #include <dt-bindings/gpio/gpio.h>
1010 #include <dt-bindings/pinctrl/rockchip.h>
11
-#include <dt-bindings/display/media-bus-format.h>
1211 #include "rk3568.dtsi"
1312 #include "rk3568-evb.dtsi"
1413
1514 / {
1615 model = "Rockchip RK3568 EVB1 DDR4 V10 Board";
1716 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
- spk_ctl_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;//AMP_SD_GPIO4_C2_3V3
23
- pinctrl-names = "default";
24
- pinctrl-0 = <&hp_det>;
25
- };
2617
2718 vcc2v5_sys: vcc2v5-ddr {
2819 compatible = "regulator-fixed";
....@@ -34,6 +25,15 @@
3425 vin-supply = <&vcc3v3_sys>;
3526 };
3627
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
+ };
3737
3838 pcie30_avdd0v9: pcie30-avdd0v9 {
3939 compatible = "regulator-fixed";
....@@ -60,9 +60,7 @@
6060 regulator-name = "vcc3v3_pcie";
6161 regulator-min-microvolt = <3300000>;
6262 regulator-max-microvolt = <3300000>;
63
- regulator-always-on;
6463 enable-active-high;
65
- regulator-boot-on;
6664 gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
6765 startup-delay-us = <5000>;
6866 vin-supply = <&dc_12v>;
....@@ -87,8 +85,9 @@
8785 enable-active-high;
8886 regulator-always-on;
8987 regulator-boot-on;
90
- };
88
+ };
9189 #endif
90
+
9291 ndj_io_init {
9392 compatible = "nk_io_control";
9493 pinctrl-names = "default";
....@@ -186,69 +185,7 @@
186185 gpio_function = <1>;
187186 };
188187 #endif
189
- };
190
-#if 0
191
- nk_io_init {
192
- compatible = "nk_io_control";
193
-// vcc3_io_en_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
194
- hub_host2_5V_rest_gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3
195
- hub_host3_5v_gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8
196
- vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
197
- vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3
198
- en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6
199
- reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3
200
- air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3
201
- wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3
202
- hp_en_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
203
-// spk_out_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;//AMP_SD_GPIO4_C2_3V3
204
- wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
205
-// pcie_power_en_gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;//PCIE_PWREN_H_GPIO0_D4
206
- pinctrl-names = "default";
207
- pinctrl-0 = <&nk_io_gpio>;
208
- };
209
-#endif
210
- panel: panel {
211
- compatible = "simple-panel";
212
- backlight = <&backlight>;
213
- power-supply = <&vcc3v3_lcd0_n>;
214
- enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
215
- reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
216
- edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
217
- edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
218
- bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
219
- bpc = <8>;
220
- prepare-delay-ms = <200>;
221
- enable-delay-ms = <20>;
222
- lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2
223
- lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3
224
- lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4
225
- lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5
226
- nodka-lvds = <15>;
227
-
228
- display-timings {
229
- native-mode = <&timing0>;
230
- timing0: timing0 {
231
- clock-frequency = <72500000>;
232
- hactive = <1280>;
233
- vactive = <800>;
234
- hfront-porch = <70>;
235
- hsync-len = <2>;
236
- hback-porch = <88>;
237
- vfront-porch = <7>;
238
- vsync-len = <4>;
239
- vback-porch = <17>;
240
- hsync-active = <21>;
241
- vsync-active = <0>;
242
- de-active = <0>;
243
- pixelclk-active = <0>;
244
- };
245
- };
246
- ports {
247
- panel_in: endpoint {
248
- remote-endpoint = <&edp_out>;
249
- };
250
- };
251
- };
188
+};
252189 };
253190
254191 &combphy0_us {
....@@ -311,10 +248,6 @@
311248 * video_phy0 needs to be enabled
312249 * when dsi0 is enabled
313250 */
314
-&video_phy0 {
315
- status = "disabled";
316
-};
317
-
318251 &dsi0 {
319252 status = "disabled";
320253 };
....@@ -335,10 +268,6 @@
335268 * video_phy1 needs to be enabled
336269 * when dsi1 is enabled
337270 */
338
-
339
-&video_phy1 {
340
- status = "okay";
341
-};
342271 &dsi1 {
343272 status = "disabled";
344273 };
....@@ -348,102 +277,29 @@
348277 };
349278
350279 &dsi1_in_vp1 {
351
- status = "okay";
280
+ status = "disabled";
352281 };
353282
354283 &dsi1_panel {
355
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
356
- vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
357
- reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
358
- vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
359
- pinctrl-names = "default";
360
- pinctrl-0 = <&lcd1_rst_gpio>;
284
+ power-supply = <&vcc3v3_lcd1_n>;
361285 };
362
-
363
-&route_dsi1 {
364
- status = "disabled";
365
- connect = <&vp1_out_dsi1>;
366
-};
367
-
368
-
369
-/*
370
-* edp_start
371
-*/
372286
373287 &edp {
374
- force-hpd;
375
- status = "okay";
376
- ports {
377
- port@1 {
378
- reg = <1>;
379
- edp_out: endpoint {
380
- remote-endpoint = <&panel_in>;
381
- };
382
- };
383
- };
288
+ hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
289
+ status = "okay";
384290 };
385291
386292 &edp_phy {
387
- status = "okay";
388
-
293
+ status = "okay";
389294 };
390295
391296 &edp_in_vp0 {
392
- status = "disabled";
297
+ status = "okay";
393298 };
394299
395300 &edp_in_vp1 {
396
- status = "okay";
397
-
398
-};
399
-
400
-&route_edp {
401
- status = "okay";
402
- connect = <&vp1_out_edp>;
403
-};
404
-
405
-&route_edp {
406
- status = "okay";
407
-};
408
-/*
409
-* edp_end
410
-*/
411
-
412
-/*
413
-* Hdmi_start
414
-*/
415
-
416
-&hdmi {
417
- status = "okay";
418
- rockchip,phy-table =
419
- <92812500 0x8009 0x0000 0x0270>,
420
- <165000000 0x800b 0x0000 0x026d>,
421
- <185625000 0x800b 0x0000 0x01ed>,
422
- <297000000 0x800b 0x0000 0x01ad>,
423
- <594000000 0x8029 0x0000 0x0088>,
424
- <000000000 0x0000 0x0000 0x0000>;
425
-};
426
-
427
-&route_hdmi {
428
- status = "okay";
429
- connect = <&vp0_out_hdmi>;
430
-};
431
-
432
-&hdmi_in_vp0 {
433
- status = "okay";
434
-};
435
-
436
-&hdmi_in_vp1 {
437301 status = "disabled";
438302 };
439
-
440
-&hdmi_sound {
441
- status = "okay";
442
-};
443
-
444
-/*
445
- * Hdmi_END
446
-*/
447303
448304 &gmac0 {
449305 phy-mode = "rgmii";
....@@ -507,24 +363,8 @@
507363 power-supply = <&vcc3v3_lcd0_n>;
508364 };
509365
510
-&i2c3 {
511
- status = "okay";
512
- //mac eeprom
513
- eeprom@51 {
514
- //compatible = "atmel,24c02";
515
- compatible = "atmel,24c256";
516
- reg = <0x51>;
517
- };
518
-
519
- //nk-mcu
520
- nkmcu@15 {
521
- compatible = "nk_mcu";
522
- reg = <0x15>;
523
- };
524
-};
525
-
526366 &i2c4 {
527
- status = "okay";
367
+ status = "disabled";
528368 gc8034: gc8034@37 {
529369 compatible = "galaxycore,gc8034";
530370 status = "okay";
....@@ -570,7 +410,7 @@
570410 };
571411 };
572412 ov5695: ov5695@36 {
573
- status = "okay";
413
+ status = "disabled";
574414 compatible = "ovti,ov5695";
575415 reg = <0x36>;
576416 clocks = <&cru CLK_CIF_OUT>;
....@@ -593,19 +433,6 @@
593433 };
594434 };
595435
596
-&i2c5 {
597
- status = "okay";
598
-
599
- hym8563: hym8563@51 {
600
- compatible = "haoyu,hym8563";
601
- reg = <0x51>;
602
- #clock-cells = <0>;
603
- clock-frequency = <32768>;
604
- clock-output-names = "xin32k";
605
- /* rtc_int is not connected */
606
- };
607
-};
608
-
609436 &mdio0 {
610437 rgmii_phy0: phy@0 {
611438 compatible = "ethernet-phy-ieee802.3-c22";
....@@ -620,51 +447,50 @@
620447 };
621448 };
622449
450
+&video_phy0 {
451
+ status = "disabled";
452
+};
623453
454
+&video_phy1 {
455
+ status = "disabled";
456
+};
624457
625458 &pcie30phy {
626459 status = "okay";
627460 };
628461
629
-&pcie2x1 {
630
- reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
462
+&pcie3x2 {
463
+ reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
631464 vpcie3v3-supply = <&vcc3v3_pcie>;
632465 status = "okay";
633466 };
634467
635468 &pinctrl {
636
-// cam {
637
-// camera_pwr: camera-pwr {
638
-// rockchip,pins =
639
-// /* camera power en */
640
-// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
641
-// };
642
-// };
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
+ };
643476 headphone {
644477 hp_det: hp-det {
645
- rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>,
646
- <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
478
+ rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
647479 };
648480 };
649481
650482 wireless-wlan {
651483 wifi_host_wake_irq: wifi-host-wake-irq {
652
- rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
484
+ rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
653485 };
654486 };
655487
656488 wireless-bluetooth {
657
- uart1_gpios: uart1-gpios {
658
- 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>;
659491 };
660492 };
661493
662
- lcd1 {
663
- lcd1_rst_gpio: lcd1-rst-gpio {
664
- rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
665
- };
666
- };
667
-
668494 nk_io_init{
669495 nk_io_gpio: nk-io-gpio{
670496 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
....@@ -692,6 +518,10 @@
692518 };
693519 };
694520
521
+&rk809_sound {
522
+ hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
523
+};
524
+
695525 &rkisp {
696526 status = "disabled";
697527 };
....@@ -701,7 +531,7 @@
701531 };
702532
703533 &rkisp_vir0 {
704
- status = "disabled";
534
+ status = "okay";
705535
706536 port {
707537 #address-cells = <1>;
....@@ -714,32 +544,34 @@
714544 };
715545 };
716546
547
+&route_dsi0 {
548
+ status = "disabled";
549
+ connect = <&vp1_out_dsi0>;
550
+};
717551
718
-
719
-
552
+&route_edp {
553
+ status = "okay";
554
+ connect = <&vp0_out_edp>;
555
+};
720556
721557 &sata2 {
722558 status = "okay";
723559 };
724560
725561 &sdmmc2 {
726
- status = "disabled";
727
-};
728
-
729
-&sdmmc1 {
730
- max-frequency = <150000000>;
731
- supports-sdio;
732
- bus-width = <4>;
733
- disable-wp;
734
- cap-sd-highspeed;
735
- cap-sdio-irq;
736
- keep-power-in-suspend;
737
- mmc-pwrseq = <&sdio_pwrseq>;
738
- non-removable;
739
- pinctrl-names = "default";
740
- pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
741
- sd-uhs-sdr104;
742
- 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";
743575 };
744576
745577 &spdif_8ch {
....@@ -749,25 +581,25 @@
749581 };
750582
751583 &uart8 {
752
- status = "disabled";
584
+ status = "okay";
753585 pinctrl-names = "default";
754586 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
755587 };
756588
757589 &vcc3v3_lcd0_n {
758
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
590
+ gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
759591 enable-active-high;
760592 };
761593
762594 &vcc3v3_lcd1_n {
763
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
595
+ gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
764596 enable-active-high;
765597 };
766598
767599 &wireless_wlan {
768600 pinctrl-names = "default";
769601 pinctrl-0 = <&wifi_host_wake_irq>;
770
- WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
602
+ WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
771603 };
772604
773605 &wireless_bluetooth {
....@@ -775,47 +607,12 @@
775607 clocks = <&rk809 1>;
776608 clock-names = "ext_clock";
777609 //wifi-bt-power-toggle;
778
- uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
610
+ uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
779611 pinctrl-names = "default", "rts_gpio";
780
- pinctrl-0 = <&uart1m0_rtsn>;
781
- pinctrl-1 = <&uart1_gpios>;
782
- BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
783
- BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
784
- BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
612
+ pinctrl-0 = <&uart8m0_rtsn>;
613
+ pinctrl-1 = <&uart8_gpios>;
614
+ BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
615
+ BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
616
+ BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
785617 status = "okay";
786
-};
787
-
788
-&uart0 {
789
- status = "okay";
790
-};
791
-
792
-&uart1 {
793
- pinctrl-names = "default";
794
- pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
795
- status = "okay";
796
-};
797
-
798
-&uart3 {
799
- status = "okay";
800
- pinctrl-0 = <&uart3m1_xfer>;
801
-};
802
-
803
-&uart4 {
804
- status = "okay";
805
- pinctrl-0 = <&uart4m1_xfer>;
806
-};
807
-
808
-&uart5 {
809
- status = "okay";
810
- pinctrl-0 = <&uart5m1_xfer>;
811
-};
812
-
813
-&uart7 {
814
- status = "okay";
815
- pinctrl-0 = <&uart7m1_xfer>;
816
-};
817
-
818
-&uart9 {
819
- status = "okay";
820
- pinctrl-0 = <&uart9m1_xfer>;
821618 };