forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -34,6 +34,15 @@
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
+ };
3746
3847 pcie30_avdd0v9: pcie30-avdd0v9 {
3948 compatible = "regulator-fixed";
....@@ -145,6 +154,47 @@
145154 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146155 gpio_function = <0>;
147156 };
157
+ #if 0
158
+ do1 {
159
+ gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
160
+ gpio_function = <0>;
161
+ };
162
+
163
+ do2 {
164
+ gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
165
+ gpio_function = <0>;
166
+ };
167
+
168
+ do3 {
169
+ gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
170
+ gpio_function = <0>;
171
+ };
172
+
173
+ do4 {
174
+ gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
175
+ gpio_function = <0>;
176
+ };
177
+
178
+ do5 {
179
+ gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>;
180
+ gpio_function = <0>;
181
+ };
182
+
183
+ do6 {
184
+ gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>;
185
+ gpio_function = <0>;
186
+ };
187
+
188
+ do7 {
189
+ gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>;
190
+ gpio_function = <0>;
191
+ };
192
+
193
+ di1 {
194
+ gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
195
+ gpio_function = <1>;
196
+ };
197
+ #endif
148198 };
149199 #if 0
150200 nk_io_init {
....@@ -339,12 +389,12 @@
339389 remote-endpoint = <&panel_in>;
340390 };
341391 };
342
- };
392
+
393
+ };
343394 };
344395
345396 &edp_phy {
346
- status = "okay";
347
-
397
+ status = "okay";
348398 };
349399
350400 &edp_in_vp0 {
....@@ -408,7 +458,7 @@
408458 phy-mode = "rgmii";
409459 clock_in_out = "output";
410460
411
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
461
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
412462 snps,reset-active-low;
413463 /* Reset time is 20ms, 100ms for rtl8211f */
414464 snps,reset-delays-us = <0 20000 100000>;
....@@ -428,7 +478,9 @@
428478 rx_delay = <0x2f>;
429479
430480 phy-handle = <&rgmii_phy0>;
481
+
431482 status = "disabled";
483
+
432484 };
433485
434486 &gmac1 {
....@@ -462,9 +514,7 @@
462514 * power-supply should switche to vcc3v3_lcd1_n
463515 * when mipi panel is connected to dsi1.
464516 */
465
-&gt1x {
466
- power-supply = <&vcc3v3_lcd0_n>;
467
-};
517
+
468518
469519 &i2c3 {
470520 status = "okay";
....@@ -483,7 +533,7 @@
483533 };
484534
485535 &i2c4 {
486
- status = "okay";
536
+ status = "disabled";
487537 gc8034: gc8034@37 {
488538 compatible = "galaxycore,gc8034";
489539 status = "okay";
....@@ -495,7 +545,6 @@
495545 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
496546 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
497547 rockchip,grf = <&grf>;
498
- power-domains = <&power RK3568_PD_VI>;
499548 rockchip,camera-module-index = <0>;
500549 rockchip,camera-module-facing = "back";
501550 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -529,7 +578,7 @@
529578 };
530579 };
531580 ov5695: ov5695@36 {
532
- status = "okay";
581
+ status = "disabled";
533582 compatible = "ovti,ov5695";
534583 reg = <0x36>;
535584 clocks = <&cru CLK_CIF_OUT>;
....@@ -672,8 +721,6 @@
672721 };
673722 };
674723 };
675
-
676
-
677724
678725
679726