hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
old mode 100755new mode 100644
....@@ -15,13 +15,6 @@
1515 model = "Rockchip RK3568 EVB1 DDR4 V10 Board";
1616 compatible = "rockchip,rk3568-evb1-ddr4-v10", "rockchip,rk3568";
1717
18
- rk_headset: rk-headset {
19
- compatible = "rockchip_headset";
20
- headset_gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>;
21
- pinctrl-names = "default";
22
- pinctrl-0 = <&hp_det>;
23
- };
24
-
2518 vcc2v5_sys: vcc2v5-ddr {
2619 compatible = "regulator-fixed";
2720 regulator-name = "vcc2v5-sys";
....@@ -32,6 +25,15 @@
3225 vin-supply = <&vcc3v3_sys>;
3326 };
3427
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
+ };
3537
3638 pcie30_avdd0v9: pcie30-avdd0v9 {
3739 compatible = "regulator-fixed";
....@@ -83,42 +85,107 @@
8385 enable-active-high;
8486 regulator-always-on;
8587 regulator-boot-on;
86
- };
88
+ };
8789 #endif
8890
89
- nk_io_init {
90
- compatible = "nk_io_control";
91
-// usb_en_oc_gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; //USB_EN_OC_GPIO0_A5
92
- lcd_bk_en_gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
93
- lcd_pwblk_gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
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
-// hub_host3_5V_rest_gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
98
- vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
99
- vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3
100
- en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6
101
- reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3
102
- air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3
103
- wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3
104
- hp_en_gpio = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
105
- spk_out_gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>;//AMP_SD_GPIO4_C2_3V3
106
-
107
- edp_enable_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
108
- edp_gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2
109
- edp_gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3
110
- edp_gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4
111
- edp_gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5
112
- edp_reset = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
113
-// tp_reset = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
114
-// vddio_mipi = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
115
-
116
- wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
117
-
118
- pinctrl-names = "default";
119
- pinctrl-0 = <&nk_io_gpio>;
120
- nodka_lvds = <9>;
121
- };
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
+};
122189 };
123190
124191 &combphy0_us {
....@@ -134,11 +201,11 @@
134201 };
135202
136203 &csi2_dphy_hw {
137
- status = "okay";
204
+ status = "disabled";
138205 };
139206
140207 &csi2_dphy0 {
141
- status = "okay";
208
+ status = "disabled";
142209
143210 ports {
144211 #address-cells = <1>;
....@@ -182,7 +249,7 @@
182249 * when dsi0 is enabled
183250 */
184251 &dsi0 {
185
- status = "okay";
252
+ status = "disabled";
186253 };
187254
188255 &dsi0_in_vp0 {
....@@ -190,7 +257,7 @@
190257 };
191258
192259 &dsi0_in_vp1 {
193
- status = "okay";
260
+ status = "disabled";
194261 };
195262
196263 &dsi0_panel {
....@@ -296,24 +363,8 @@
296363 power-supply = <&vcc3v3_lcd0_n>;
297364 };
298365
299
-&i2c3 {
300
- status = "okay";
301
- //mac eeprom
302
- eeprom@51 {
303
- //compatible = "atmel,24c02";
304
- compatible = "atmel,24c256";
305
- reg = <0x51>;
306
- };
307
-
308
- //nk-mcu
309
- nkmcu@15 {
310
- compatible = "nk_mcu";
311
- reg = <0x15>;
312
- };
313
-};
314
-
315366 &i2c4 {
316
- status = "okay";
367
+ status = "disabled";
317368 gc8034: gc8034@37 {
318369 compatible = "galaxycore,gc8034";
319370 status = "okay";
....@@ -359,7 +410,7 @@
359410 };
360411 };
361412 ov5695: ov5695@36 {
362
- status = "okay";
413
+ status = "disabled";
363414 compatible = "ovti,ov5695";
364415 reg = <0x36>;
365416 clocks = <&cru CLK_CIF_OUT>;
....@@ -382,19 +433,6 @@
382433 };
383434 };
384435
385
-&i2c5 {
386
- status = "okay";
387
-
388
- hym8563: hym8563@51 {
389
- compatible = "haoyu,hym8563";
390
- reg = <0x51>;
391
- #clock-cells = <0>;
392
- clock-frequency = <32768>;
393
- clock-output-names = "xin32k";
394
- /* rtc_int is not connected */
395
- };
396
-};
397
-
398436 &mdio0 {
399437 rgmii_phy0: phy@0 {
400438 compatible = "ethernet-phy-ieee802.3-c22";
....@@ -410,7 +448,7 @@
410448 };
411449
412450 &video_phy0 {
413
- status = "okay";
451
+ status = "disabled";
414452 };
415453
416454 &video_phy1 {
....@@ -428,30 +466,31 @@
428466 };
429467
430468 &pinctrl {
431
-// cam {
432
-// camera_pwr: camera-pwr {
433
-// rockchip,pins =
434
-// /* camera power en */
435
-// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
436
-// };
437
-// };
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
+ };
438476 headphone {
439477 hp_det: hp-det {
440
- rockchip,pins = <0 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>;
478
+ rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
441479 };
442480 };
443481
444482 wireless-wlan {
445483 wifi_host_wake_irq: wifi-host-wake-irq {
446
- rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
484
+ rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
447485 };
448486 };
449487
450488 wireless-bluetooth {
451
- uart1_gpios: uart1-gpios {
452
- 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>;
453491 };
454492 };
493
+
455494 nk_io_init{
456495 nk_io_gpio: nk-io-gpio{
457496 rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
....@@ -461,27 +500,34 @@
461500 <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
462501 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
463502 <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>,
464
- <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
503
+ <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
465504 <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
466505 <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
467506 <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
468
- <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,
469507 <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
470508 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
471509 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
472510 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
473511 <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
474516 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
475517 };
476518 };
477519 };
478520
521
+&rk809_sound {
522
+ hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
523
+};
524
+
479525 &rkisp {
480
- status = "okay";
526
+ status = "disabled";
481527 };
482528
483529 &rkisp_mmu {
484
- status = "okay";
530
+ status = "disabled";
485531 };
486532
487533 &rkisp_vir0 {
....@@ -499,7 +545,7 @@
499545 };
500546
501547 &route_dsi0 {
502
- status = "okay";
548
+ status = "disabled";
503549 connect = <&vp1_out_dsi0>;
504550 };
505551
....@@ -513,23 +559,19 @@
513559 };
514560
515561 &sdmmc2 {
516
- status = "disabled";
517
-};
518
-
519
-&sdmmc1 {
520
- max-frequency = <150000000>;
521
- supports-sdio;
522
- bus-width = <4>;
523
- disable-wp;
524
- cap-sd-highspeed;
525
- cap-sdio-irq;
526
- keep-power-in-suspend;
527
- mmc-pwrseq = <&sdio_pwrseq>;
528
- non-removable;
529
- pinctrl-names = "default";
530
- pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
531
- sd-uhs-sdr104;
532
- 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";
533575 };
534576
535577 &spdif_8ch {
....@@ -539,13 +581,13 @@
539581 };
540582
541583 &uart8 {
542
- status = "disabled";
584
+ status = "okay";
543585 pinctrl-names = "default";
544586 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
545587 };
546588
547589 &vcc3v3_lcd0_n {
548
- gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
590
+ gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
549591 enable-active-high;
550592 };
551593
....@@ -557,7 +599,7 @@
557599 &wireless_wlan {
558600 pinctrl-names = "default";
559601 pinctrl-0 = <&wifi_host_wake_irq>;
560
- WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
602
+ WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
561603 };
562604
563605 &wireless_bluetooth {
....@@ -565,42 +607,12 @@
565607 clocks = <&rk809 1>;
566608 clock-names = "ext_clock";
567609 //wifi-bt-power-toggle;
568
- uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
569
- BT,power_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
610
+ uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
570611 pinctrl-names = "default", "rts_gpio";
571
- pinctrl-0 = <&uart1m0_rtsn>;
572
- pinctrl-1 = <&uart1_gpios>;
612
+ pinctrl-0 = <&uart8m0_rtsn>;
613
+ pinctrl-1 = <&uart8_gpios>;
573614 BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
574615 BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
575616 BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
576
- status = "disabled";
577
-};
578
-
579
-&uart0 {
580617 status = "okay";
581
-};
582
-
583
-&uart3 {
584
- status = "okay";
585
- pinctrl-0 = <&uart3m1_xfer>;
586
-};
587
-
588
-&uart4 {
589
- status = "okay";
590
- pinctrl-0 = <&uart4m1_xfer>;
591
-};
592
-
593
-&uart5 {
594
- status = "okay";
595
- pinctrl-0 = <&uart5m1_xfer>;
596
-};
597
-
598
-&uart7 {
599
- status = "okay";
600
- pinctrl-0 = <&uart7m1_xfer>;
601
-};
602
-
603
-&uart9 {
604
- status = "okay";
605
- pinctrl-0 = <&uart9m1_xfer>;
606618 };