hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/arch/arm/boot/dts/rk3288-evb-rk808-linux.dts
....@@ -1,83 +1,11 @@
1
-/*
2
- * This file is dual-licensed: you can use it either under the terms
3
- * of the GPL or the X11 license, at your option. Note that this dual
4
- * licensing only applies to this file, and not this project as a
5
- * whole.
6
- *
7
- * a) This file is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License as
9
- * published by the Free Software Foundation; either version 2 of the
10
- * License, or (at your option) any later version.
11
- *
12
- * This file is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * Or, alternatively,
18
- *
19
- * b) Permission is hereby granted, free of charge, to any person
20
- * obtaining a copy of this software and associated documentation
21
- * files (the "Software"), to deal in the Software without
22
- * restriction, including without limitation the rights to use,
23
- * copy, modify, merge, publish, distribute, sublicense, and/or
24
- * sell copies of the Software, and to permit persons to whom the
25
- * Software is furnished to do so, subject to the following
26
- * conditions:
27
- *
28
- * The above copyright notice and this permission notice shall be
29
- * included in all copies or substantial portions of the Software.
30
- *
31
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
33
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
34
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
35
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
36
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
37
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38
- * OTHER DEALINGS IN THE SOFTWARE.
39
- */
1
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
402
413 /dts-v1/;
424 #include "rk3288-evb.dtsi"
435 #include "rk3288-linux.dtsi"
44
-#include "rk3288-rkisp1.dtsi"
456
467 / {
478 compatible = "rockchip,rk3288-evb-rk808-linux", "rockchip,rk3288";
48
-
49
- panel {
50
- compatible = "simple-panel";
51
- backlight = <&backlight>;
52
- enable-gpios = <&gpio7 RK_PA4 GPIO_ACTIVE_HIGH>;
53
- prepare-delay-ms = <120>;
54
-
55
- display-timings {
56
- native-mode = <&timing0>;
57
-
58
- timing0: timing0 {
59
- clock-frequency = <200000000>;
60
- hactive = <1536>;
61
- vactive = <2048>;
62
- hfront-porch = <12>;
63
- hsync-len = <16>;
64
- hback-porch = <48>;
65
- vfront-porch = <8>;
66
- vsync-len = <4>;
67
- vback-porch = <8>;
68
- hsync-active = <0>;
69
- vsync-active = <0>;
70
- de-active = <0>;
71
- pixelclk-active = <0>;
72
- };
73
- };
74
-
75
- port {
76
- panel_in_edp: endpoint {
77
- remote-endpoint = <&edp_out_panel>;
78
- };
79
- };
80
- };
819
8210 adc-keys {
8311 compatible = "adc-keys";
....@@ -114,25 +42,6 @@
11442 label = "Home";
11543 linux,code = <KEY_HOME>;
11644 press-threshold-microvolt = <1300000>;
117
- };
118
- };
119
-
120
- gpio-keys {
121
- compatible = "gpio-keys";
122
- #address-cells = <1>;
123
- #size-cells = <0>;
124
- autorepeat;
125
-
126
- pinctrl-names = "default";
127
- pinctrl-0 = <&pwrbtn>;
128
-
129
- button@0 {
130
- gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
131
- linux,code = <116>;
132
- label = "GPIO Key Power";
133
- linux,input-type = <1>;
134
- gpio-key,wakeup = <1>;
135
- debounce-interval = <100>;
13645 };
13746 };
13847
....@@ -210,21 +119,6 @@
210119 status = "okay";
211120 };
212121
213
-&edp {
214
- force-hpd;
215
- status = "okay";
216
-
217
- ports {
218
- port@1 {
219
- reg = <1>;
220
-
221
- edp_out_panel: endpoint {
222
- remote-endpoint = <&panel_in_edp>;
223
- };
224
- };
225
- };
226
-};
227
-
228122 &edp_in_vopb {
229123 status = "disabled";
230124 };
....@@ -239,7 +133,15 @@
239133 };
240134
241135 &hdmi {
242
- pinctrl-0 = <&hdmi_ddc>, <&hdmi_cec>;
136
+ pinctrl-0 = <&hdmi_ddc>, <&hdmi_cec_c0>;
137
+};
138
+
139
+&hdmi_in_vopb {
140
+ status = "okay";
141
+};
142
+
143
+&hdmi_in_vopl {
144
+ status = "disabled";
243145 };
244146
245147 &i2c0 {
....@@ -330,7 +232,8 @@
330232 regulator-max-microvolt = <3300000>;
331233 regulator-name = "vcca_codec";
332234 regulator-state-mem {
333
- regulator-off-in-suspend;
235
+ regulator-on-in-suspend;
236
+ regulator-suspend-microvolt = <3300000>;
334237 };
335238 };
336239
....@@ -350,10 +253,10 @@
350253 regulator-always-on;
351254 regulator-boot-on;
352255 regulator-min-microvolt = <1800000>;
353
- regulator-max-microvolt = <3300000>;
256
+ regulator-max-microvolt = <1800000>;
354257 regulator-name = "vcc_wl";
355258 regulator-state-mem {
356
- regulator-off-in-suspend;
259
+ regulator-on-in-suspend;
357260 };
358261 };
359262
....@@ -364,8 +267,7 @@
364267 regulator-max-microvolt = <3300000>;
365268 regulator-name = "vccio_sd";
366269 regulator-state-mem {
367
- regulator-on-in-suspend;
368
- regulator-suspend-microvolt = <3300000>;
270
+ regulator-off-in-suspend;
369271 };
370272 };
371273
....@@ -408,7 +310,7 @@
408310 regulator-boot-on;
409311 regulator-name = "vcc_sd";
410312 regulator-state-mem {
411
- regulator-on-in-suspend;
313
+ regulator-off-in-suspend;
412314 };
413315 };
414316
....@@ -463,7 +365,7 @@
463365 mpu-debug = <1>;
464366 };
465367
466
- ak8963:compass@0d{
368
+ ak8963: compass@d{
467369 compatible = "mpu_ak8963";
468370 reg = <0x0d>;
469371 compass-bus = <0>;
....@@ -496,29 +398,50 @@
496398
497399 ov13850: ov13850@10 {
498400 compatible = "ovti,ov13850";
499
- status = "okay";
500401 reg = <0x10>;
501402 clocks = <&cru SCLK_VIP_OUT>;
502403 clock-names = "xvclk";
503
-
504
- reset-gpios = <&gpio7 21 GPIO_ACTIVE_HIGH>;
505
- pwdn-gpios = <&gpio2 15 GPIO_ACTIVE_HIGH>;
506
-
404
+ /* avdd-supply = <>; */
405
+ /* dvdd-supply = <>; */
406
+ /* dovdd-supply = <>; */
407
+ /* reset-gpios = <>; */
408
+ pinctrl-names = "rockchip,camera_default";
409
+ pinctrl-0 = <&isp_mipi>;
410
+ power-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
411
+ reset-gpio = <&gpio7 RK_PC5 GPIO_ACTIVE_HIGH>;
412
+ pwdn-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
413
+ rockchip,camera-module-index = <0>;
414
+ rockchip,camera-module-facing = "back";
415
+ rockchip,camera-module-name = "CMK-CT0116";
416
+ rockchip,camera-module-lens-name = "Largan-50013A1";
507417 port {
508
- cam_out: endpoint {
509
- remote-endpoint = <&mipi_in_cam>;
418
+ ov13850_out: endpoint {
419
+ remote-endpoint = <&mipi_in_ucam0>;
510420 data-lanes = <1 2>;
511421 };
512422 };
513423 };
514
-};
515424
516
-&isp {
517
- status = "okay";
518
-
519
- port {
520
- isp_mipi_in: endpoint {
521
- remote-endpoint = <&dphy_rx0_out>;
425
+ gc8034: gc8034@37 {
426
+ compatible = "galaxycore,gc8034";
427
+ status = "okay";
428
+ reg = <0x37>;
429
+ clocks = <&cru SCLK_VIP_OUT>;
430
+ clock-names = "xvclk";
431
+ pinctrl-names = "rockchip,camera_default";
432
+ pinctrl-0 = <&isp_mipi>;
433
+ power-gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
434
+ reset-gpios = <&gpio7 RK_PC5 GPIO_ACTIVE_LOW>;
435
+ pwdn-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>;
436
+ rockchip,camera-module-index = <0>;
437
+ rockchip,camera-module-facing = "back";
438
+ rockchip,camera-module-name = "LH-RK-8034-v1.0";
439
+ rockchip,camera-module-lens-name = "CK8401";
440
+ port {
441
+ gc8034_out: endpoint {
442
+ remote-endpoint = <&mipi_in_gc8034>;
443
+ data-lanes = <1 2 3 4>;
444
+ };
522445 };
523446 };
524447 };
....@@ -536,20 +459,45 @@
536459
537460 port@0 {
538461 reg = <0>;
462
+ #address-cells = <1>;
463
+ #size-cells = <0>;
539464
540
- mipi_in_cam: endpoint {
541
- remote-endpoint = <&cam_out>;
465
+ mipi_in_ucam0: endpoint@1 {
466
+ reg = <1>;
467
+ remote-endpoint = <&ov13850_out>;
542468 data-lanes = <1 2>;
469
+ };
470
+ mipi_in_gc8034: endpoint@0 {
471
+ reg = <0>;
472
+ remote-endpoint = <&gc8034_out>;
473
+ data-lanes = <1 2 3 4>;
543474 };
544475 };
545476
546477 port@1 {
547478 reg = <1>;
479
+ #address-cells = <1>;
480
+ #size-cells = <0>;
548481
549
- dphy_rx0_out: endpoint {
482
+ dphy_rx_out: endpoint@0 {
483
+ reg = <0>;
550484 remote-endpoint = <&isp_mipi_in>;
551485 };
552486 };
487
+ };
488
+};
489
+
490
+&rkisp1 {
491
+ status = "okay";
492
+ port {
493
+ #address-cells = <1>;
494
+ #size-cells = <0>;
495
+
496
+ isp_mipi_in: endpoint@0 {
497
+ reg = <0>;
498
+ remote-endpoint = <&dphy_rx_out>;
499
+ };
500
+
553501 };
554502 };
555503
....@@ -562,10 +510,6 @@
562510 };
563511
564512 &route_hdmi {
565
- status = "okay";
566
-};
567
-
568
-&sound {
569513 status = "okay";
570514 };
571515