forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -93,6 +93,9 @@
9393 compatible = "nk_io_control";
9494 pinctrl-names = "default";
9595 pinctrl-0 = <&nk_io_gpio>;
96
+
97
+ //gpio_op0 = <&gpio1 RK_PD0 GPIO_ACTIVE_HIGH>;
98
+
9699 vcc_5v {
97100 gpio_num = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; //VCC5_IO_EN_GPIO1_A4_3V3
98101 gpio_function = <0>;
....@@ -134,7 +137,7 @@
134137 };
135138
136139 hp_en {
137
- 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
138141 gpio_function = <0>;
139142 };
140143
....@@ -142,6 +145,47 @@
142145 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
143146 gpio_function = <0>;
144147 };
148
+ #if 0
149
+ do1 {
150
+ gpio_num = <&gpio1 RK_PD0 GPIO_ACTIVE_LOW>;
151
+ gpio_function = <0>;
152
+ };
153
+
154
+ do2 {
155
+ gpio_num = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
156
+ gpio_function = <0>;
157
+ };
158
+
159
+ do3 {
160
+ gpio_num = <&gpio1 RK_PD1 GPIO_ACTIVE_HIGH>;
161
+ gpio_function = <0>;
162
+ };
163
+
164
+ do4 {
165
+ gpio_num = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
166
+ gpio_function = <0>;
167
+ };
168
+
169
+ do5 {
170
+ gpio_num = <&gpio2 RK_PD6 GPIO_ACTIVE_LOW>;
171
+ gpio_function = <0>;
172
+ };
173
+
174
+ do6 {
175
+ gpio_num = <&gpio2 RK_PD7 GPIO_ACTIVE_LOW>;
176
+ gpio_function = <0>;
177
+ };
178
+
179
+ do7 {
180
+ gpio_num = <&gpio3 RK_PA0 GPIO_ACTIVE_LOW>;
181
+ gpio_function = <0>;
182
+ };
183
+
184
+ di1 {
185
+ gpio_num = <&gpio2 RK_PD5 GPIO_ACTIVE_HIGH>;
186
+ gpio_function = <1>;
187
+ };
188
+ #endif
145189 };
146190 #if 0
147191 nk_io_init {
....@@ -336,12 +380,12 @@
336380 remote-endpoint = <&panel_in>;
337381 };
338382 };
339
- };
383
+
384
+ };
340385 };
341386
342387 &edp_phy {
343
- status = "okay";
344
-
388
+ status = "okay";
345389 };
346390
347391 &edp_in_vp0 {
....@@ -405,7 +449,7 @@
405449 phy-mode = "rgmii";
406450 clock_in_out = "output";
407451
408
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
452
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
409453 snps,reset-active-low;
410454 /* Reset time is 20ms, 100ms for rtl8211f */
411455 snps,reset-delays-us = <0 20000 100000>;
....@@ -425,7 +469,9 @@
425469 rx_delay = <0x2f>;
426470
427471 phy-handle = <&rgmii_phy0>;
472
+
428473 status = "disabled";
474
+
429475 };
430476
431477 &gmac1 {
....@@ -459,9 +505,7 @@
459505 * power-supply should switche to vcc3v3_lcd1_n
460506 * when mipi panel is connected to dsi1.
461507 */
462
-&gt1x {
463
- power-supply = <&vcc3v3_lcd0_n>;
464
-};
508
+
465509
466510 &i2c3 {
467511 status = "okay";
....@@ -480,7 +524,7 @@
480524 };
481525
482526 &i2c4 {
483
- status = "okay";
527
+ status = "disabled";
484528 gc8034: gc8034@37 {
485529 compatible = "galaxycore,gc8034";
486530 status = "okay";
....@@ -492,7 +536,6 @@
492536 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
493537 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
494538 rockchip,grf = <&grf>;
495
- power-domains = <&power RK3568_PD_VI>;
496539 rockchip,camera-module-index = <0>;
497540 rockchip,camera-module-facing = "back";
498541 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -526,7 +569,7 @@
526569 };
527570 };
528571 ov5695: ov5695@36 {
529
- status = "okay";
572
+ status = "disabled";
530573 compatible = "ovti,ov5695";
531574 reg = <0x36>;
532575 clocks = <&cru CLK_CIF_OUT>;
....@@ -669,8 +712,6 @@
669712 };
670713 };
671714 };
672
-
673
-
674715
675716
676717