hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
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";
....@@ -145,7 +144,7 @@
145144 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146145 gpio_function = <0>;
147146 };
148
-
147
+ #if 0
149148 do1 {
150149 gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
151150 gpio_function = <0>;
....@@ -185,69 +184,8 @@
185184 gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
186185 gpio_function = <1>;
187186 };
188
- };
189
-#if 0
190
- nk_io_init {
191
- compatible = "nk_io_control";
192
-// vcc3_io_en_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
193
- hub_host2_5V_rest_gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3
194
- hub_host3_5v_gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8
195
- vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
196
- vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3
197
- en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6
198
- reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3
199
- air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3
200
- wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3
201
- hp_en_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
202
-// spk_out_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;//AMP_SD_GPIO4_C2_3V3
203
- wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
204
-// pcie_power_en_gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;//PCIE_PWREN_H_GPIO0_D4
205
- pinctrl-names = "default";
206
- pinctrl-0 = <&nk_io_gpio>;
207
- };
208
-#endif
209
- panel: panel {
210
- compatible = "simple-panel";
211
- backlight = <&backlight>;
212
- power-supply = <&vcc3v3_lcd0_n>;
213
- enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
214
- reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
215
- edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
216
- edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
217
- bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
218
- bpc = <8>;
219
- prepare-delay-ms = <200>;
220
- enable-delay-ms = <20>;
221
- lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2
222
- lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3
223
- lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4
224
- lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5
225
- nodka-lvds = <15>;
226
-
227
- display-timings {
228
- native-mode = <&timing0>;
229
- timing0: timing0 {
230
- clock-frequency = <72500000>;
231
- hactive = <1280>;
232
- vactive = <800>;
233
- hfront-porch = <70>;
234
- hsync-len = <2>;
235
- hback-porch = <88>;
236
- vfront-porch = <7>;
237
- vsync-len = <4>;
238
- vback-porch = <17>;
239
- hsync-active = <21>;
240
- vsync-active = <0>;
241
- de-active = <0>;
242
- pixelclk-active = <0>;
243
- };
244
- };
245
- ports {
246
- panel_in: endpoint {
247
- remote-endpoint = <&edp_out>;
248
- };
249
- };
250
- };
187
+ #endif
188
+};
251189 };
252190
253191 &combphy0_us {
....@@ -310,10 +248,6 @@
310248 * video_phy0 needs to be enabled
311249 * when dsi0 is enabled
312250 */
313
-&video_phy0 {
314
- status = "disabled";
315
-};
316
-
317251 &dsi0 {
318252 status = "disabled";
319253 };
....@@ -334,10 +268,6 @@
334268 * video_phy1 needs to be enabled
335269 * when dsi1 is enabled
336270 */
337
-
338
-&video_phy1 {
339
- status = "okay";
340
-};
341271 &dsi1 {
342272 status = "disabled";
343273 };
....@@ -347,102 +277,29 @@
347277 };
348278
349279 &dsi1_in_vp1 {
350
- status = "okay";
280
+ status = "disabled";
351281 };
352282
353283 &dsi1_panel {
354
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355
- vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
356
- reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
357
- vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
358
- pinctrl-names = "default";
359
- pinctrl-0 = <&lcd1_rst_gpio>;
284
+ power-supply = <&vcc3v3_lcd1_n>;
360285 };
361
-
362
-&route_dsi1 {
363
- status = "disabled";
364
- connect = <&vp1_out_dsi1>;
365
-};
366
-
367
-
368
-/*
369
-* edp_start
370
-*/
371286
372287 &edp {
373
- force-hpd;
374
- status = "okay";
375
- ports {
376
- port@1 {
377
- reg = <1>;
378
- edp_out: endpoint {
379
- remote-endpoint = <&panel_in>;
380
- };
381
- };
382
- };
288
+ hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
289
+ status = "okay";
383290 };
384291
385292 &edp_phy {
386
- status = "okay";
387
-
293
+ status = "okay";
388294 };
389295
390296 &edp_in_vp0 {
391
- status = "disabled";
297
+ status = "okay";
392298 };
393299
394300 &edp_in_vp1 {
395
- status = "okay";
396
-
397
-};
398
-
399
-&route_edp {
400
- status = "okay";
401
- connect = <&vp1_out_edp>;
402
-};
403
-
404
-&route_edp {
405
- status = "okay";
406
-};
407
-/*
408
-* edp_end
409
-*/
410
-
411
-/*
412
-* Hdmi_start
413
-*/
414
-
415
-&hdmi {
416
- status = "okay";
417
- rockchip,phy-table =
418
- <92812500 0x8009 0x0000 0x0270>,
419
- <165000000 0x800b 0x0000 0x026d>,
420
- <185625000 0x800b 0x0000 0x01ed>,
421
- <297000000 0x800b 0x0000 0x01ad>,
422
- <594000000 0x8029 0x0000 0x0088>,
423
- <000000000 0x0000 0x0000 0x0000>;
424
-};
425
-
426
-&route_hdmi {
427
- status = "okay";
428
- connect = <&vp0_out_hdmi>;
429
-};
430
-
431
-&hdmi_in_vp0 {
432
- status = "okay";
433
-};
434
-
435
-&hdmi_in_vp1 {
436301 status = "disabled";
437302 };
438
-
439
-&hdmi_sound {
440
- status = "okay";
441
-};
442
-
443
-/*
444
- * Hdmi_END
445
-*/
446303
447304 &gmac0 {
448305 phy-mode = "rgmii";
....@@ -506,24 +363,8 @@
506363 power-supply = <&vcc3v3_lcd0_n>;
507364 };
508365
509
-&i2c3 {
510
- status = "okay";
511
- //mac eeprom
512
- eeprom@51 {
513
- //compatible = "atmel,24c02";
514
- compatible = "atmel,24c256";
515
- reg = <0x51>;
516
- };
517
-
518
- //nk-mcu
519
- nkmcu@15 {
520
- compatible = "nk_mcu";
521
- reg = <0x15>;
522
- };
523
-};
524
-
525366 &i2c4 {
526
- status = "okay";
367
+ status = "disabled";
527368 gc8034: gc8034@37 {
528369 compatible = "galaxycore,gc8034";
529370 status = "okay";
....@@ -569,7 +410,7 @@
569410 };
570411 };
571412 ov5695: ov5695@36 {
572
- status = "okay";
413
+ status = "disabled";
573414 compatible = "ovti,ov5695";
574415 reg = <0x36>;
575416 clocks = <&cru CLK_CIF_OUT>;
....@@ -592,19 +433,6 @@
592433 };
593434 };
594435
595
-&i2c5 {
596
- status = "okay";
597
-
598
- hym8563: hym8563@51 {
599
- compatible = "haoyu,hym8563";
600
- reg = <0x51>;
601
- #clock-cells = <0>;
602
- clock-frequency = <32768>;
603
- clock-output-names = "xin32k";
604
- /* rtc_int is not connected */
605
- };
606
-};
607
-
608436 &mdio0 {
609437 rgmii_phy0: phy@0 {
610438 compatible = "ethernet-phy-ieee802.3-c22";
....@@ -619,51 +447,50 @@
619447 };
620448 };
621449
450
+&video_phy0 {
451
+ status = "disabled";
452
+};
622453
454
+&video_phy1 {
455
+ status = "disabled";
456
+};
623457
624458 &pcie30phy {
625459 status = "okay";
626460 };
627461
628
-&pcie2x1 {
629
- reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
462
+&pcie3x2 {
463
+ reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
630464 vpcie3v3-supply = <&vcc3v3_pcie>;
631465 status = "okay";
632466 };
633467
634468 &pinctrl {
635
-// cam {
636
-// camera_pwr: camera-pwr {
637
-// rockchip,pins =
638
-// /* camera power en */
639
-// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
640
-// };
641
-// };
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
+ };
642476 headphone {
643477 hp_det: hp-det {
644
- rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>,
645
- <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
478
+ rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
646479 };
647480 };
648481
649482 wireless-wlan {
650483 wifi_host_wake_irq: wifi-host-wake-irq {
651
- rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
484
+ rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
652485 };
653486 };
654487
655488 wireless-bluetooth {
656
- uart1_gpios: uart1-gpios {
657
- 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>;
658491 };
659492 };
660493
661
- lcd1 {
662
- lcd1_rst_gpio: lcd1-rst-gpio {
663
- rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
664
- };
665
- };
666
-
667494 nk_io_init{
668495 nk_io_gpio: nk-io-gpio{
669496 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
....@@ -691,6 +518,10 @@
691518 };
692519 };
693520
521
+&rk809_sound {
522
+ hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
523
+};
524
+
694525 &rkisp {
695526 status = "disabled";
696527 };
....@@ -700,7 +531,7 @@
700531 };
701532
702533 &rkisp_vir0 {
703
- status = "disabled";
534
+ status = "okay";
704535
705536 port {
706537 #address-cells = <1>;
....@@ -713,32 +544,34 @@
713544 };
714545 };
715546
547
+&route_dsi0 {
548
+ status = "disabled";
549
+ connect = <&vp1_out_dsi0>;
550
+};
716551
717
-
718
-
552
+&route_edp {
553
+ status = "okay";
554
+ connect = <&vp0_out_edp>;
555
+};
719556
720557 &sata2 {
721558 status = "okay";
722559 };
723560
724561 &sdmmc2 {
725
- status = "disabled";
726
-};
727
-
728
-&sdmmc1 {
729
- max-frequency = <150000000>;
730
- supports-sdio;
731
- bus-width = <4>;
732
- disable-wp;
733
- cap-sd-highspeed;
734
- cap-sdio-irq;
735
- keep-power-in-suspend;
736
- mmc-pwrseq = <&sdio_pwrseq>;
737
- non-removable;
738
- pinctrl-names = "default";
739
- pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
740
- sd-uhs-sdr104;
741
- 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";
742575 };
743576
744577 &spdif_8ch {
....@@ -748,25 +581,25 @@
748581 };
749582
750583 &uart8 {
751
- status = "disabled";
584
+ status = "okay";
752585 pinctrl-names = "default";
753586 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
754587 };
755588
756589 &vcc3v3_lcd0_n {
757
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
590
+ gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
758591 enable-active-high;
759592 };
760593
761594 &vcc3v3_lcd1_n {
762
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
595
+ gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
763596 enable-active-high;
764597 };
765598
766599 &wireless_wlan {
767600 pinctrl-names = "default";
768601 pinctrl-0 = <&wifi_host_wake_irq>;
769
- WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
602
+ WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
770603 };
771604
772605 &wireless_bluetooth {
....@@ -774,47 +607,12 @@
774607 clocks = <&rk809 1>;
775608 clock-names = "ext_clock";
776609 //wifi-bt-power-toggle;
777
- uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
610
+ uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
778611 pinctrl-names = "default", "rts_gpio";
779
- pinctrl-0 = <&uart1m0_rtsn>;
780
- pinctrl-1 = <&uart1_gpios>;
781
- BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
782
- BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
783
- 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>;
784617 status = "okay";
785
-};
786
-
787
-&uart0 {
788
- status = "okay";
789
-};
790
-
791
-&uart1 {
792
- pinctrl-names = "default";
793
- pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
794
- status = "okay";
795
-};
796
-
797
-&uart3 {
798
- status = "okay";
799
- pinctrl-0 = <&uart3m1_xfer>;
800
-};
801
-
802
-&uart4 {
803
- status = "okay";
804
- pinctrl-0 = <&uart4m1_xfer>;
805
-};
806
-
807
-&uart5 {
808
- status = "okay";
809
- pinctrl-0 = <&uart5m1_xfer>;
810
-};
811
-
812
-&uart7 {
813
- status = "okay";
814
- pinctrl-0 = <&uart7m1_xfer>;
815
-};
816
-
817
-&uart9 {
818
- status = "okay";
819
- pinctrl-0 = <&uart9m1_xfer>;
820618 };