forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/arm64/boot/dts/rockchip/NK-R36S0.dtsi
....@@ -137,7 +137,7 @@
137137 };
138138
139139 hp_en {
140
- 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
141141 gpio_function = <0>;
142142 };
143143
....@@ -145,6 +145,47 @@
145145 gpio_num = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>; //WIFI_PWREN_GPIO3_C6_1V8
146146 gpio_function = <0>;
147147 };
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
148189 };
149190 #if 0
150191 nk_io_init {
....@@ -339,12 +380,12 @@
339380 remote-endpoint = <&panel_in>;
340381 };
341382 };
342
- };
383
+
384
+ };
343385 };
344386
345387 &edp_phy {
346
- status = "okay";
347
-
388
+ status = "okay";
348389 };
349390
350391 &edp_in_vp0 {
....@@ -408,7 +449,7 @@
408449 phy-mode = "rgmii";
409450 clock_in_out = "output";
410451
411
- snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
452
+ snps,reset-gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_LOW>;
412453 snps,reset-active-low;
413454 /* Reset time is 20ms, 100ms for rtl8211f */
414455 snps,reset-delays-us = <0 20000 100000>;
....@@ -428,7 +469,9 @@
428469 rx_delay = <0x2f>;
429470
430471 phy-handle = <&rgmii_phy0>;
472
+
431473 status = "disabled";
474
+
432475 };
433476
434477 &gmac1 {
....@@ -462,9 +505,7 @@
462505 * power-supply should switche to vcc3v3_lcd1_n
463506 * when mipi panel is connected to dsi1.
464507 */
465
-&gt1x {
466
- power-supply = <&vcc3v3_lcd0_n>;
467
-};
508
+
468509
469510 &i2c3 {
470511 status = "okay";
....@@ -483,7 +524,7 @@
483524 };
484525
485526 &i2c4 {
486
- status = "okay";
527
+ status = "disabled";
487528 gc8034: gc8034@37 {
488529 compatible = "galaxycore,gc8034";
489530 status = "okay";
....@@ -495,7 +536,6 @@
495536 reset-gpios = <&gpio3 RK_PB6 GPIO_ACTIVE_LOW>;
496537 pwdn-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_LOW>;
497538 rockchip,grf = <&grf>;
498
- power-domains = <&power RK3568_PD_VI>;
499539 rockchip,camera-module-index = <0>;
500540 rockchip,camera-module-facing = "back";
501541 rockchip,camera-module-name = "RK-CMK-8M-2-v1";
....@@ -529,7 +569,7 @@
529569 };
530570 };
531571 ov5695: ov5695@36 {
532
- status = "okay";
572
+ status = "disabled";
533573 compatible = "ovti,ov5695";
534574 reg = <0x36>;
535575 clocks = <&cru CLK_CIF_OUT>;
....@@ -672,8 +712,6 @@
672712 };
673713 };
674714 };
675
-
676
-
677715
678716
679717