forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
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";
....@@ -145,10 +136,10 @@
145136 gpio_function = <0>;
146137 };
147138
148
- hp_en {
149
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
150
- gpio_function = <0>;
151
- };
139
+ //gpio99 {
140
+ // gpio_num = <&gpio3 RK_PA3 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
141
+ // gpio_function = <1>;
142
+ //};
152143
153144 wifi_power_en {
154145 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
....@@ -235,8 +226,8 @@
235226 nodka-lvds = <15>;
236227
237228 display-timings {
238
- native-mode = <&timing0>;
239
- timing0: timing0 {
229
+ native-mode = <&timing>;
230
+ timing: timing {
240231 clock-frequency = <72500000>;
241232 hactive = <1280>;
242233 vactive = <800>;
....@@ -253,8 +244,8 @@
253244 };
254245 };
255246 ports {
256
- panel_in: endpoint {
257
- remote-endpoint = <&edp_out>;
247
+ panel_in_lvds: endpoint {
248
+ remote-endpoint = <&lvds_out>;
258249 };
259250 };
260251 };
....@@ -321,7 +312,7 @@
321312 * when dsi0 is enabled
322313 */
323314 &video_phy0 {
324
- status = "disabled";
315
+ status = "okay";
325316 };
326317
327318 &dsi0 {
....@@ -346,7 +337,7 @@
346337 */
347338
348339 &video_phy1 {
349
- status = "okay";
340
+ status = "disabled";
350341 };
351342 &dsi1 {
352343 status = "disabled";
....@@ -357,11 +348,11 @@
357348 };
358349
359350 &dsi1_in_vp1 {
360
- status = "okay";
351
+ status = "disabled";
361352 };
362353
363354 &dsi1_panel {
364
- power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
355
+// power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
365356 vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
366357 reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
367358 vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
....@@ -381,20 +372,11 @@
381372
382373 &edp {
383374 force-hpd;
384
- status = "okay";
385
- ports {
386
- port@1 {
387
- reg = <1>;
388
- edp_out: endpoint {
389
- remote-endpoint = <&panel_in>;
390
- };
391
- };
392
-
393
- };
375
+ status = "disabled";
394376 };
395377
396378 &edp_phy {
397
- status = "okay";
379
+ status = "disabled";
398380 };
399381
400382 &edp_in_vp0 {
....@@ -402,18 +384,40 @@
402384 };
403385
404386 &edp_in_vp1 {
405
- status = "okay";
387
+ status = "disabled";
406388
407389 };
408390
409391 &route_edp {
410
- status = "okay";
392
+ status = "disabled";
411393 connect = <&vp1_out_edp>;
412394 };
413395
414396 &route_edp {
397
+ status = "disabled";
398
+};
399
+
400
+&lvds {
401
+ status = "okay";
402
+ ports {
403
+ port@1 {
404
+ reg = <1>;
405
+ lvds_out:endpoint {
406
+ remote-endpoint = <&panel_in_lvds>;
407
+ };
408
+ };
409
+ };
410
+};
411
+
412
+&route_lvds{
413
+ status = "okay";
414
+ connect = <&vp1_out_lvds>;
415
+};
416
+
417
+&lvds_in_vp1 {
415418 status = "okay";
416419 };
420
+
417421 /*
418422 * edp_end
419423 */
....@@ -631,7 +635,7 @@
631635
632636
633637 &pcie30phy {
634
- status = "okay";
638
+ status = "disabled";
635639 };
636640
637641 &pcie2x1 {
....@@ -690,11 +694,15 @@
690694 <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>,
691695 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
692696 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
697
+ <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>,
698
+ <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>,
699
+ <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
693700 <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>,
694701 <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
695702 <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
696703 <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
697704 <3 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
705
+ <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>,//96 SPI2_CLK_M1_3V3
698706 <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
699707 };
700708 };
....@@ -765,10 +773,10 @@
765773 enable-active-high;
766774 };
767775
768
-&vcc3v3_lcd1_n {
769
- gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
770
- enable-active-high;
771
-};
776
+//&vcc3v3_lcd1_n {
777
+ //gpio = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>; //MIPI_3V3EN_GPIO3_A3_d_3V3
778
+ //enable-active-high;
779
+//};
772780
773781 &wireless_wlan {
774782 pinctrl-names = "default";