forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-11-20 0d8657dd3056063fb115946b10157477b5c70451
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -191,24 +191,18 @@
191191 panel: panel {
192192 compatible = "simple-panel";
193193 backlight = <&backlight>;
194
- power-supply = <&vcc3v3_lcd0_n>;
195
- enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
196
- reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
197
- edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
194
+ power-supply = <&vcc3v3_lcd1_n>;
195
+ enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
196
+ edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_PWBLK_H_GPIO0_B7
198197 edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
199198 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
200199 bpc = <8>;
201200 prepare-delay-ms = <200>;
202201 enable-delay-ms = <20>;
203
- lvds-gpio0 = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; //7511_GPIO0-GPIO3_D2
204
- lvds-gpio1 = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>; //7511_GPIO1-GPIO3_D3
205
- lvds-gpio2 = <&gpio3 RK_PD4 GPIO_ACTIVE_HIGH>; //7511_GPIO2-GPIO3_D4
206
- lvds-gpio3 = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; //7511_GPIO3-GPIO3_D5
207
- nodka-lvds = <15>;
208202
209203 display-timings {
210
- native-mode = <&timing0>;
211
- timing0: timing0 {
204
+ native-mode = <&timing>;
205
+ timing: timing {
212206 clock-frequency = <72500000>;
213207 hactive = <1280>;
214208 vactive = <800>;
....@@ -225,8 +219,8 @@
225219 };
226220 };
227221 ports {
228
- panel_in: endpoint {
229
- remote-endpoint = <&edp_out>;
222
+ panel_in_lvds: endpoint {
223
+ remote-endpoint = <&lvds_out>;
230224 };
231225 };
232226 };
....@@ -331,16 +325,29 @@
331325 &edp {
332326 //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
333327 force-hpd;
328
+ status = "disabled";
329
+};
330
+
331
+&lvds {
334332 status = "okay";
335333 ports {
336334 port@1 {
337335 reg = <1>;
338
- edp_out: endpoint {
339
- remote-endpoint = <&panel_in>;
336
+ lvds_out: endpoint {
337
+ remote-endpoint = <&panel_in_lvds>;
340338 };
341339 };
342340
343341 };
342
+};
343
+
344
+&route_lvds{
345
+ status = "okay";
346
+ connect = <&vp2_out_lvds>;
347
+};
348
+
349
+&lvds_in_vp2 {
350
+ status = "okay";
344351 };
345352
346353 &edp_phy {
....@@ -359,7 +366,7 @@
359366 phy-mode = "rgmii";
360367 clock_in_out = "output";
361368
362
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
369
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
363370 snps,reset-active-low;
364371 /* Reset time is 20ms, 100ms for rtl8211f */
365372 snps,reset-delays-us = <0 20000 100000>;
....@@ -379,7 +386,7 @@
379386 rx_delay = <0x2f>;
380387
381388 phy-handle = <&rgmii_phy0>;
382
- status = "disabled";
389
+ status = "okay";
383390 };
384391
385392 &gmac1 {
....@@ -516,7 +523,7 @@
516523 };
517524
518525 &video_phy0 {
519
- status = "disabled";
526
+ status = "okay";
520527 };
521528
522529 &video_phy1 {
....@@ -550,12 +557,6 @@
550557 wireless-wlan {
551558 wifi_host_wake_irq: wifi-host-wake-irq {
552559 rockchip,pins = <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_down>;
553
- };
554
- };
555
-
556
- wireless-bluetooth {
557
- uart1_gpios: uart1-gpios {
558
- rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
559560 };
560561 };
561562
....@@ -620,7 +621,7 @@
620621
621622
622623 &route_edp {
623
- status = "okay";
624
+ status = "disabled";
624625 connect = <&vp1_out_edp>;
625626 };
626627
....@@ -674,17 +675,7 @@
674675
675676 &wireless_bluetooth {
676677 compatible = "bluetooth-platdata";
677
- clocks = <&rk809 1>;
678
- clock-names = "ext_clock";
679
- //wifi-bt-power-toggle;
680
- uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
681
- pinctrl-names = "default", "rts_gpio";
682
- pinctrl-0 = <&uart1m0_rtsn>;
683
- pinctrl-1 = <&uart1_gpios>;
684
- BT,reset_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
685
- BT,wake_gpio = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
686
- BT,wake_host_irq = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
687
- status = "okay";
678
+ status = "disabled";
688679 };
689680
690681 &uart0 {
....@@ -694,7 +685,7 @@
694685 &uart1 {
695686 pinctrl-names = "default";
696687 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
697
- status = "okay";
688
+ status = "disabled";
698689 };
699690
700691 &uart3 {