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 = <&gpio3 RK_PC2 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";
....@@ -92,40 +85,107 @@
9285 enable-active-high;
9386 regulator-always-on;
9487 regulator-boot-on;
95
- };
88
+ };
9689 #endif
9790
98
- nk_io_init {
99
- compatible = "nk_io_control";
100
- usb_en_oc_gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; //USB_EN_OC_GPIO0_A5
101
- lcd_bk_en_gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
102
- lcd_pwblk_gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
103
- vcc3_io_en_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
104
- hub_host2_5V_rest_gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3
105
- hub_host3_5v_gpio = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8
106
-// hub_host3_5V_rest_gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
107
- vcc_5v_io = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
108
- vcc_12v_io = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; //VCC12_IO_EN_GPIO0_C7_3V3
109
- en_4g_gpio = <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; //4G_PWREN_H_GPIO0_C6
110
- reset_4g_gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; //4G_RST_GPIO01_B2_3V3
111
- air_mode_4g_gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>; //4G_AIR_MODE_GPIO01_B0_3V3
112
- wake_4g_gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>; //4G_WAKEUP_GPIO01_B1_3V3
113
-
114
- edp_enable_gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
115
- edp_gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_LOW>; //7511_GPIO0-GPIO3_D2
116
- edp_gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_LOW>; //7511_GPIO1-GPIO3_D3
117
- edp_gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_LOW>; //7511_GPIO2-GPIO3_D4
118
- edp_gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_LOW>; //7511_GPIO3-GPIO3_D5
119
- edp_reset = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
120
-// tp_reset = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
121
-// vddio_mipi = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
122
-
123
- wifi_power_en_gpio = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
124
-
125
- pinctrl-names = "default";
126
- pinctrl-0 = <&nk_io_gpio>;
127
- nodka_lvds = <9>;
128
- };
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
+};
129189 };
130190
131191 &combphy0_us {
....@@ -141,11 +201,11 @@
141201 };
142202
143203 &csi2_dphy_hw {
144
- status = "okay";
204
+ status = "disabled";
145205 };
146206
147207 &csi2_dphy0 {
148
- status = "okay";
208
+ status = "disabled";
149209
150210 ports {
151211 #address-cells = <1>;
....@@ -189,7 +249,7 @@
189249 * when dsi0 is enabled
190250 */
191251 &dsi0 {
192
- status = "okay";
252
+ status = "disabled";
193253 };
194254
195255 &dsi0_in_vp0 {
....@@ -197,7 +257,7 @@
197257 };
198258
199259 &dsi0_in_vp1 {
200
- status = "okay";
260
+ status = "disabled";
201261 };
202262
203263 &dsi0_panel {
....@@ -303,27 +363,8 @@
303363 power-supply = <&vcc3v3_lcd0_n>;
304364 };
305365
306
-&i2c3 {
307
- status = "okay";
308
- //mac eeprom
309
- eeprom@51 {
310
- //compatible = "atmel,24c02";
311
- compatible = "atmel,24c256";
312
- reg = <0x51>;
313
- };
314
-
315
- //nk-mcu
316
- nkmcu@15 {
317
- compatible = "nk_mcu";
318
- reg = <0x15>;
319
- };
320
-
321
-
322
-
323
-};
324
-
325366 &i2c4 {
326
- status = "okay";
367
+ status = "disabled";
327368 gc8034: gc8034@37 {
328369 compatible = "galaxycore,gc8034";
329370 status = "okay";
....@@ -369,7 +410,7 @@
369410 };
370411 };
371412 ov5695: ov5695@36 {
372
- status = "okay";
413
+ status = "disabled";
373414 compatible = "ovti,ov5695";
374415 reg = <0x36>;
375416 clocks = <&cru CLK_CIF_OUT>;
....@@ -407,7 +448,7 @@
407448 };
408449
409450 &video_phy0 {
410
- status = "okay";
451
+ status = "disabled";
411452 };
412453
413454 &video_phy1 {
....@@ -425,13 +466,13 @@
425466 };
426467
427468 &pinctrl {
428
-// cam {
429
-// camera_pwr: camera-pwr {
430
-// rockchip,pins =
431
-// /* camera power en */
432
-// <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
433
-// };
434
-// };
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
+ };
435476 headphone {
436477 hp_det: hp-det {
437478 rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
....@@ -440,28 +481,53 @@
440481
441482 wireless-wlan {
442483 wifi_host_wake_irq: wifi-host-wake-irq {
443
- rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
484
+ rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
444485 };
445486 };
446487
447488 wireless-bluetooth {
448
- uart1_gpios: uart1-gpios {
449
- 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>;
450491 };
451492 };
493
+
452494 nk_io_init{
453495 nk_io_gpio: nk-io-gpio{
454
- rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
496
+ rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
497
+ <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>,
498
+ <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>,
499
+ <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
500
+ <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
501
+ <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
502
+ <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>,
503
+ <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
504
+ <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
505
+ <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
506
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
507
+ <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
508
+ <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
509
+ <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
510
+ <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
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
516
+ <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
455517 };
456518 };
519
+};
520
+
521
+&rk809_sound {
522
+ hp-det-gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_LOW>;
457523 };
458524
459525 &rkisp {
460
- status = "okay";
526
+ status = "disabled";
461527 };
462528
463529 &rkisp_mmu {
464
- status = "okay";
530
+ status = "disabled";
465531 };
466532
467533 &rkisp_vir0 {
....@@ -479,7 +545,7 @@
479545 };
480546
481547 &route_dsi0 {
482
- status = "okay";
548
+ status = "disabled";
483549 connect = <&vp1_out_dsi0>;
484550 };
485551
....@@ -493,23 +559,19 @@
493559 };
494560
495561 &sdmmc2 {
496
- status = "disabled";
497
-};
498
-
499
-&sdmmc1 {
500
- max-frequency = <150000000>;
501
- supports-sdio;
502
- bus-width = <4>;
503
- disable-wp;
504
- cap-sd-highspeed;
505
- cap-sdio-irq;
506
- keep-power-in-suspend;
507
- mmc-pwrseq = <&sdio_pwrseq>;
508
- non-removable;
509
- pinctrl-names = "default";
510
- pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>;
511
- sd-uhs-sdr104;
512
- 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";
513575 };
514576
515577 &spdif_8ch {
....@@ -519,13 +581,13 @@
519581 };
520582
521583 &uart8 {
522
- status = "disabled";
584
+ status = "okay";
523585 pinctrl-names = "default";
524586 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
525587 };
526588
527589 &vcc3v3_lcd0_n {
528
- gpio = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>;
590
+ gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
529591 enable-active-high;
530592 };
531593
....@@ -537,7 +599,7 @@
537599 &wireless_wlan {
538600 pinctrl-names = "default";
539601 pinctrl-0 = <&wifi_host_wake_irq>;
540
- WIFI,host_wake_irq = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
602
+ WIFI,host_wake_irq = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>;
541603 };
542604
543605 &wireless_bluetooth {
....@@ -545,42 +607,12 @@
545607 clocks = <&rk809 1>;
546608 clock-names = "ext_clock";
547609 //wifi-bt-power-toggle;
548
- uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
549
- BT,power_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
610
+ uart_rts_gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>;
550611 pinctrl-names = "default", "rts_gpio";
551
- pinctrl-0 = <&uart1m0_rtsn>;
552
- pinctrl-1 = <&uart1_gpios>;
612
+ pinctrl-0 = <&uart8m0_rtsn>;
613
+ pinctrl-1 = <&uart8_gpios>;
553614 BT,reset_gpio = <&gpio3 RK_PA0 GPIO_ACTIVE_HIGH>;
554615 BT,wake_gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
555616 BT,wake_host_irq = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
556
- status = "disabled";
557
-};
558
-
559
-&uart0 {
560617 status = "okay";
561
-};
562
-
563
-&uart3 {
564
- status = "okay";
565
- pinctrl-0 = <&uart3m1_xfer>;
566
-};
567
-
568
-&uart4 {
569
- status = "okay";
570
- pinctrl-0 = <&uart4m1_xfer>;
571
-};
572
-
573
-&uart5 {
574
- status = "okay";
575
- pinctrl-0 = <&uart5m1_xfer>;
576
-};
577
-
578
-&uart7 {
579
- status = "okay";
580
- pinctrl-0 = <&uart7m1_xfer>;
581
-};
582
-
583
-&uart9 {
584
- status = "okay";
585
- pinctrl-0 = <&uart9m1_xfer>;
586618 };