forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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>;
....@@ -144,21 +137,14 @@
144137 };
145138
146139 hp_en {
147
- gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;//HP_EN_GPIO3_A6_3V3
140
+ gpio_num = <&gpio3 RK_PA6 GPIO_ACTIVE_LOW>;//HP_EN_GPIO3_A6_3V3
148141 gpio_function = <0>;
149142 };
150143
151
- usb_ogt {
152
- gpio_num = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; //OTG_EN_OC_GPIO0_C2
144
+ wifi_power_en {
145
+ gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
153146 gpio_function = <0>;
154147 };
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
-
162148 #if 0
163149 do1 {
164150 gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
....@@ -225,8 +211,9 @@
225211 compatible = "simple-panel";
226212 backlight = <&backlight>;
227213 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
214
+ enable-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_HIGH>; //LCD0_VDD_H_GPIO2_D4
215
+ reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_LOW>; //7511_RST_GPIO3_D1
216
+ edp-bl-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
230217 edp-bl-en = <&gpio0 RK_PB0 GPIO_ACTIVE_HIGH>; //LCD0_BKLT_EN_3V3
231218 bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;
232219 bpc = <8>;
....@@ -239,8 +226,8 @@
239226 nodka-lvds = <15>;
240227
241228 display-timings {
242
- native-mode = <&timing>;
243
- timing: timing {
229
+ native-mode = <&timing0>;
230
+ timing0: timing0 {
244231 clock-frequency = <72500000>;
245232 hactive = <1280>;
246233 vactive = <800>;
....@@ -256,9 +243,9 @@
256243 pixelclk-active = <0>;
257244 };
258245 };
259
- port {
260
- panel_in_lvds: endpoint {
261
- remote-endpoint = <&lvds_out>;
246
+ ports {
247
+ panel_in: endpoint {
248
+ remote-endpoint = <&edp_out>;
262249 };
263250 };
264251 };
....@@ -348,6 +335,10 @@
348335 * video_phy1 needs to be enabled
349336 * when dsi1 is enabled
350337 */
338
+
339
+&video_phy1 {
340
+ status = "okay";
341
+};
351342 &dsi1 {
352343 status = "disabled";
353344 };
....@@ -357,39 +348,40 @@
357348 };
358349
359350 &dsi1_in_vp1 {
360
- status = "disabled";
351
+ status = "okay";
361352 };
362353
363354 &dsi1_panel {
364
- power-supply = <&vcc3v3_lcd1_n>;
355
+ power-supply = <&vcc3v3_lcd1_n>; //MIPI_3V3EN_GPIO3_A3_d_3V3
356
+ vddio-mipi = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; //MIPI_EN_1V8_GPIO3_A4_d_3V3
357
+ reset-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>; //MIPI_RST_L_GPIO3_C7
358
+ vcc-5v-gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
359
+ pinctrl-names = "default";
360
+ pinctrl-0 = <&lcd1_rst_gpio>;
365361 };
362
+
363
+&route_dsi1 {
364
+ status = "disabled";
365
+ connect = <&vp1_out_dsi1>;
366
+};
367
+
368
+
369
+/*
370
+* edp_start
371
+*/
366372
367373 &edp {
368
- //hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
369374 force-hpd;
370375 status = "okay";
371
-};
372
-
373
-&lvds {
374
- status = "disabled";
375376 ports {
376377 port@1 {
377378 reg = <1>;
378
- lvds_out: endpoint {
379
- remote-endpoint = <&panel_in_lvds>;
379
+ edp_out: endpoint {
380
+ remote-endpoint = <&panel_in>;
380381 };
381382 };
382383
383384 };
384
-};
385
-
386
-&route_lvds{
387
- status = "disabled";
388
- connect = <&vp2_out_lvds>;
389
-};
390
-
391
-&lvds_in_vp2 {
392
- status = "disabled";
393385 };
394386
395387 &edp_phy {
....@@ -410,7 +402,9 @@
410402 connect = <&vp1_out_edp>;
411403 };
412404
413
-
405
+&route_edp {
406
+ status = "okay";
407
+};
414408 /*
415409 * edp_end
416410 */
....@@ -625,20 +619,14 @@
625619 };
626620 };
627621
628
-&video_phy0 {
629
- status = "okay";
630
-};
631622
632
-&video_phy1 {
633
- status = "disabled";
634
-};
635623
636624 &pcie30phy {
637625 status = "okay";
638626 };
639627
640
-&pcie3x2 {
641
- reset-gpios = <&gpio2 RK_PD6 GPIO_ACTIVE_HIGH>;
628
+&pcie2x1 {
629
+ reset-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
642630 vpcie3v3-supply = <&vcc3v3_pcie>;
643631 status = "okay";
644632 };
....@@ -694,10 +682,6 @@
694682 <3 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>,
695683 <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,
696684 <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
701685 <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>,//93 SPI2_CS0_M1_3V3
702686 <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>,//94 SPI2_MOSI_M1_3V3
703687 <2 RK_PD7 RK_FUNC_GPIO &pcfg_pull_none>,//95 SPI2_MISO_M1_3V3
....@@ -799,13 +783,13 @@
799783 };
800784
801785 &uart0 {
802
- status = "disabled";
786
+ status = "okay";
803787 };
804788
805789 &uart1 {
806790 pinctrl-names = "default";
807791 pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
808
- status = "disabled";
792
+ status = "okay";
809793 };
810794
811795 &uart3 {
....@@ -824,11 +808,11 @@
824808 };
825809
826810 &uart7 {
827
- status = "disabled";
811
+ status = "okay";
828812 pinctrl-0 = <&uart7m1_xfer>;
829813 };
830814
831815 &uart9 {
832
- status = "disabled";
816
+ status = "okay";
833817 pinctrl-0 = <&uart9m1_xfer>;
834818 };