hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
 */
 
/dts-v1/;
 
#include "rk3399-evb-ind.dtsi"
#include "rk3399-android.dtsi"
 
/ {
   model = "Rockchip RK3399 EVB IND LPDDR4 Board edp (Android)";
   compatible = "rockchip,android", "rockchip,rk3399-evb-ind-lpddr4-android", "rockchip,rk3399";
 
   iram: sram@ff8d0000 {
       compatible = "mmio-sram";
       reg = <0x0 0xff8d0000 0x0 0x20000>;
   };
 
   vcc_lcd: vcc-lcd {
       compatible = "regulator-fixed";
       regulator-name = "vcc_lcd";
       startup-delay-us = <20000>;
       enable-active-high;
       regulator-min-microvolt = <3300000>;
       regulator-max-microvolt = <3300000>;
       regulator-boot-on;
       vin-supply = <&vcc5v0_sys>;
   };
 
   panel: panel {
       compatible = "simple-panel";
       backlight = <&backlight>;
       power-supply = <&vcc_lcd>;
       enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
       reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
       prepare-delay-ms = <20>;
       enable-delay-ms = <20>;
 
       display-timings {
           native-mode = <&timing0>;
 
           timing0: timing0 {
               clock-frequency = <200000000>;
               hactive = <1536>;
               vactive = <2048>;
               hfront-porch = <12>;
               hsync-len = <16>;
               hback-porch = <48>;
               vfront-porch = <8>;
               vsync-len = <4>;
               vback-porch = <8>;
               hsync-active = <0>;
               vsync-active = <0>;
               de-active = <0>;
               pixelclk-active = <0>;
           };
       };
 
       ports {
           panel_in: endpoint {
               remote-endpoint = <&edp_out>;
           };
       };
   };
 
   test-power {
       status = "okay";
   };
};
 
&backlight {
   enable-gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
};
 
&dmac_bus {
   iram = <&iram>;
   rockchip,force-iram;
};
 
&dp_sound {
   status = "disabled";
};
 
&edp {
   status = "okay";
   force-hpd;
 
   ports {
       port@1 {
           reg = <1>;
 
           edp_out: endpoint {
               remote-endpoint = <&panel_in>;
           };
       };
   };
};
 
&edp_in_vopl {
   status = "disabled";
};
 
&i2s2 {
   #sound-dai-cells = <0>;
   status = "okay";
};
 
&hdmi_sound {
   status = "okay";
};
 
&route_edp {
   status = "okay";
};
 
&i2s1 {
   #sound-dai-cells = <0>;
   status = "okay";
};
 
&rk809_sound {
   status = "okay";
};
 
&hdmi_in_vopb {
   status = "disabled";
};
 
/*
 * if enable dp_sound, should disable spdif_sound and spdif_out
 */
&spdif_out {
   status = "disabled";
};
 
&spdif_sound {
   status = "disabled";
};
 
&i2s0 {
   #sound-dai-cells = <0>;
   status = "disabled";
};
 
&tc358749x_sound {
   status = "disabled";
};
 
&pinctrl {
   lcd-panel {
       lcd_panel_reset: lcd-panel-reset {
           rockchip,pins = <1 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>;
       };
   };
};