forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -34,15 +34,6 @@
3434 vin-supply = <&vcc3v3_sys>;
3535 };
3636
37
- vcc3v3_vga: vcc3v3-vga {
38
- compatible = "regulator-fixed";
39
- regulator-name = "vcc3v3_vga";
40
- regulator-always-on;
41
- regulator-boot-on;
42
- gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>;
43
- enable-active-high;
44
- vin-supply = <&vcc3v3_sys>;
45
- };
4637
4738 pcie30_avdd0v9: pcie30-avdd0v9 {
4839 compatible = "regulator-fixed";
....@@ -69,7 +60,9 @@
6960 regulator-name = "vcc3v3_pcie";
7061 regulator-min-microvolt = <3300000>;
7162 regulator-max-microvolt = <3300000>;
63
+ regulator-always-on;
7264 enable-active-high;
65
+ regulator-boot-on;
7366 gpio = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>;
7467 startup-delay-us = <5000>;
7568 vin-supply = <&dc_12v>;
....@@ -96,6 +89,25 @@
9689 regulator-boot-on;
9790 };
9891 #endif
92
+
93
+#if 0
94
+ leds: leds {
95
+ compatible = "gpio-leds";
96
+ sig_led: sig_led {
97
+ gpios = <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>;
98
+ default-state = "on";
99
+ };
100
+ };
101
+
102
+ leds: leds {
103
+ compatible = "gpio-leds";
104
+ err_led: err_led {
105
+ gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
106
+ default-state = "on";
107
+ };
108
+ };
109
+#endif
110
+
99111 ndj_io_init {
100112 compatible = "nk_io_control";
101113 pinctrl-names = "default";
....@@ -113,16 +125,26 @@
113125 gpio_function = <0>;
114126 };
115127
116
- hub_host2_rst {
117
- gpio_num = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; //HUB_RST_GPIO4_D2_3V3
128
+ vcc_3.3v {
129
+ gpio_num = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3
130
+ gpio_function = <0>;
131
+ };
132
+
133
+ ax88772_rst {
134
+ gpio_num = <&gpio3 RK_PB5 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B5_3V3
118135 gpio_function = <3>;
119136 };
120137
138
+ ax88631_rst {
139
+ gpio_num = <&gpio3 RK_PB6 GPIO_ACTIVE_HIGH>; //AX88772_RST_GPIO3_B6_3V3
140
+ gpio_function = <3>;
141
+ };
142
+/*
121143 hub_host3 {
122144 gpio_num = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>; //HOST3_EN_GPIO4_B2_1V8
123145 gpio_function = <0>;
124146 };
125
-
147
+*/
126148 wake_4g {
127149 gpio_num = <&gpio1 RK_PB1 GPIO_ACTIVE_LOW>; //4G_WAKEUP_GPIO01_B1_3V3
128150 gpio_function = <0>;
....@@ -143,22 +165,15 @@
143165 gpio_function = <0>;
144166 };
145167
146
- hp_en {
147
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
168
+ //gpio99 {
169
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
170
+ // gpio_function = <1>;
171
+ //};
172
+
173
+ wifi_power_en {
174
+ gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
148175 gpio_function = <0>;
149176 };
150
-
151
- usb_ogt {
152
- gpio_num = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; //OTG_EN_OC_GPIO0_C2
153
- gpio_function = <0>;
154
- };
155
-
156
- m2_wifi_pwr {
157
- gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;//WIFI_PWREN_GPIO3_C6_1V8
158
- gpio_function = <0>;
159
- };
160
-
161
-
162177 #if 0
163178 do1 {
164179 gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
....@@ -225,8 +240,9 @@
225240 compatible = "simple-panel";
226241 backlight = <&backlight>;
227242 power-supply = <&vcc3v3_lcd0_n>;
228
- enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
229
- edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_PWBLK_H_GPIO0_B7
243
+ enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
244
+ reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
245
+ edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
230246 edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
231247 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
232248 bpc = <8>;
....@@ -256,7 +272,7 @@
256272 pixelclk-active = <0>;
257273 };
258274 };
259
- port {
275
+ ports {
260276 panel_in_lvds: endpoint {
261277 remote-endpoint = <&lvds_out>;
262278 };
....@@ -348,6 +364,10 @@
348364 * video_phy1 needs to be enabled
349365 * when dsi1 is enabled
350366 */
367
+
368
+&video_phy1 {
369
+ status = "disabled";
370
+};
351371 &dsi1 {
352372 status = "disabled";
353373 };
....@@ -361,39 +381,31 @@
361381 };
362382
363383 &dsi1_panel {
364
- power-supply = <&vcc3v3_lcd1_n>;
384
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
385
+ vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
386
+ reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
387
+ vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
388
+ pinctrl-names = "default";
389
+ pinctrl-0 = <&lcd1_rst_gpio>;
365390 };
391
+
392
+&route_dsi1 {
393
+ status = "disabled";
394
+ connect = <&vp1_out_dsi1>;
395
+};
396
+
397
+
398
+/*
399
+* edp_start
400
+*/
366401
367402 &edp {
368
- //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
369403 force-hpd;
370
- status = "okay";
371
-};
372
-
373
-&lvds {
374
- status = "disabled";
375
- ports {
376
- port@1 {
377
- reg = <1>;
378
- lvds_out: endpoint {
379
- remote-endpoint = <&panel_in_lvds>;
380
- };
381
- };
382
-
383
- };
384
-};
385
-
386
-&route_lvds{
387
- status = "disabled";
388
- connect = <&vp2_out_lvds>;
389
-};
390
-
391
-&lvds_in_vp2 {
392404 status = "disabled";
393405 };
394406
395407 &edp_phy {
396
- status = "okay";
408
+ status = "disabled";
397409 };
398410
399411 &edp_in_vp0 {
....@@ -401,15 +413,39 @@
401413 };
402414
403415 &edp_in_vp1 {
404
- status = "okay";
416
+ status = "disabled";
405417
406418 };
407419
408420 &route_edp {
409
- status = "okay";
421
+ status = "disabled";
410422 connect = <&vp1_out_edp>;
411423 };
412424
425
+&route_edp {
426
+ status = "disabled";
427
+};
428
+
429
+&lvds {
430
+ status = "disabled";
431
+ ports {
432
+ port@1 {
433
+ reg = <1>;
434
+ lvds_out:endpoint {
435
+ remote-endpoint = <&panel_in_lvds>;
436
+ };
437
+ };
438
+ };
439
+};
440
+
441
+&route_lvds{
442
+ status = "okay";
443
+ connect = <&vp1_out_lvds>;
444
+};
445
+
446
+&lvds_in_vp1 {
447
+ status = "disabled";
448
+};
413449
414450 /*
415451 * edp_end
....@@ -625,20 +661,14 @@
625661 };
626662 };
627663
628
-&video_phy0 {
629
- status = "okay";
630
-};
631664
632
-&video_phy1 {
665
+
666
+&pcie30phy {
633667 status = "disabled";
634668 };
635669
636
-&pcie30phy {
637
- status = "okay";
638
-};
639
-
640
-&pcie3x2 {
641
- reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
670
+&pcie2x1 {
671
+ reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
642672 vpcie3v3-supply = <&vcc3v3_pcie>;
643673 status = "okay";
644674 };
....@@ -693,16 +723,27 @@
693723 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
694724 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
695725 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
726
+ <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
727
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
728
+ <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
696729 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
697
- <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>, //12
698
- <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>, //13
699
- <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>, //16
700
- <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>, //17
701
- <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
702
- <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
703
- <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
704
- <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
705
- <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
730
+ <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B0_u_3V3 DO1 8
731
+ <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B3_u_3V3 DO2 11
732
+ <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B4_u_3V3 DO3 12
733
+ <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B5_u_3V3 DO4 13
734
+ <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_B6_u_3V3 DO5 14
735
+
736
+ <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C0_d_3V3 DI1 16
737
+ <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C1_d_3V3 DI2 17
738
+ <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C2_d_3V3 DI3 18
739
+ <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C3_d_3V3 DI4 19
740
+ <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>,//GPIO0_C5_d_3V3 DI5 21
741
+ <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>,
742
+ <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>, //sig_led
743
+ <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>, //err_led
744
+ <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>, //run_led
745
+ <4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; //HOST3_EN_GPIO4_B2_1V8
746
+
706747 };
707748 };
708749 };
....@@ -767,15 +808,6 @@
767808 pinctrl-0 = <&uart8m0_xfer &uart8m0_ctsn>;
768809 };
769810
770
-&vcc3v3_lcd0_n {
771
- gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>;
772
- enable-active-high;
773
-};
774
-
775
-&vcc3v3_lcd1_n {
776
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
777
- enable-active-high;
778
-};
779811
780812 &wireless_wlan {
781813 pinctrl-names = "default";
....@@ -795,7 +827,7 @@
795827 BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
796828 BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
797829 BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
798
- status = "okay";
830
+ status = "disabled";
799831 };
800832
801833 &uart0 {
....@@ -814,7 +846,7 @@
814846 };
815847
816848 &uart4 {
817
- status = "okay";
849
+ status = "disabled";
818850 pinctrl-0 = <&uart4m1_xfer>;
819851 };
820852
....@@ -823,11 +855,17 @@
823855 pinctrl-0 = <&uart5m1_xfer>;
824856 };
825857
858
+
826859 &uart7 {
827
- status = "disabled";
860
+ status = "okay";
828861 pinctrl-0 = <&uart7m1_xfer>;
829862 };
830863
864
+&uart8 {
865
+ status = "disabled";
866
+ pinctrl-0 = <&uart8m1_xfer>;
867
+};
868
+
831869 &uart9 {
832870 status = "disabled";
833871 pinctrl-0 = <&uart9m1_xfer>;