forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
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";
....@@ -93,6 +102,9 @@
93102 compatible = "nk_io_control";
94103 pinctrl-names = "default";
95104 pinctrl-0 = <&nk_io_gpio>;
105
+
106
+ //gpio_op0 = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
107
+
96108 vcc_5v {
97109 gpio_num = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
98110 gpio_function = <0>;
....@@ -142,6 +154,47 @@
142154 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
143155 gpio_function = <0>;
144156 };
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
145198 };
146199 #if 0
147200 nk_io_init {
....@@ -336,12 +389,12 @@
336389 remote-endpoint = <&panel_in>;
337390 };
338391 };
339
- };
392
+
393
+ };
340394 };
341395
342396 &edp_phy {
343
- status = "okay";
344
-
397
+ status = "okay";
345398 };
346399
347400 &edp_in_vp0 {
....@@ -405,7 +458,7 @@
405458 phy-mode = "rgmii";
406459 clock_in_out = "output";
407460
408
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
461
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
409462 snps,reset-active-low;
410463 /* Reset time is 20ms, 100ms for rtl8211f */
411464 snps,reset-delays-us = <0 20000 100000>;
....@@ -425,7 +478,9 @@
425478 rx_delay = <0x2f>;
426479
427480 phy-handle = <&rgmii_phy0>;
481
+
428482 status = "disabled";
483
+
429484 };
430485
431486 &gmac1 {
....@@ -459,9 +514,7 @@
459514 * power-supply should switche to vcc3v3_lcd1_n
460515 * when mipi panel is connected to dsi1.
461516 */
462
-&gt1x {
463
- power-supply = <&vcc3v3_lcd0_n>;
464
-};
517
+
465518
466519 &i2c3 {
467520 status = "okay";
....@@ -480,7 +533,7 @@
480533 };
481534
482535 &i2c4 {
483
- status = "okay";
536
+ status = "disabled";
484537 gc8034: gc8034@37 {
485538 compatible = "galaxycore,gc8034";
486539 status = "okay";
....@@ -492,7 +545,6 @@
492545 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
493546 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
494547 rockchip,grf = <&grf>;
495
- power-domains = <&power RK3568_PD_VI>;
496548 rockchip,camera-module-index = <0>;
497549 rockchip,camera-module-facing = "back";
498550 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -526,7 +578,7 @@
526578 };
527579 };
528580 ov5695: ov5695@36 {
529
- status = "okay";
581
+ status = "disabled";
530582 compatible = "ovti,ov5695";
531583 reg = <0x36>;
532584 clocks = <&cru CLK_CIF_OUT>;
....@@ -669,8 +721,6 @@
669721 };
670722 };
671723 };
672
-
673
-
674724
675725
676726