rockchip
This commit is contained in:
215
rk3326/rp-lcd-mipi-5.5-720-1280-v2.dtsi
Executable file
215
rk3326/rp-lcd-mipi-5.5-720-1280-v2.dtsi
Executable file
@@ -0,0 +1,215 @@
|
||||
|
||||
/{
|
||||
backlight: backlight {
|
||||
compatible = "pwm-backlight";
|
||||
pwms = <&pwm0 0 25000 0>;
|
||||
brightness-levels = <
|
||||
0 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 157 158 159
|
||||
160 161 162 163 164 165 166 167
|
||||
168 169 170 171 172 173 174 175
|
||||
176 177 178 179 180 181 182 183
|
||||
184 185 186 187 188 189 190 191
|
||||
192 193 194 195 196 197 198 199
|
||||
200 201 202 203 204 205 206 207
|
||||
208 209 210 211 212 213 214 215
|
||||
216 217 218 219 220 221 222 223
|
||||
224 225 226 227 228 229 230 231
|
||||
232 233 234 235 236 237 238 239
|
||||
240 241 242 243 244 245 246 247
|
||||
248 249 250 251 252 253 254 255>;
|
||||
default-brightness-level = <200>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&rpdzkj {
|
||||
compatible = "rp_config";
|
||||
user_version = "rpdzkj";
|
||||
system_rotate = "0";
|
||||
csi_camera_rotate = "0"; //all csi camera rotation //0 90 180 270 //no effect
|
||||
csi_camera_facing = "0"; //0:auto 1:all front 2:all back //no effect
|
||||
usb_camera_rotate = "0"; //all usb camera rotation //0 90 180 270
|
||||
usb_camera_facing = "0"; //0:auto 1:all front 2:all back
|
||||
lcd_density = "240";
|
||||
language = "zh-CN"; //zh-CN //en-US
|
||||
time_zone = "Asia/Shanghai"; //Asia/Shanghai = +8 //Europe/London = +1 //Africa/Casablanca = +0;
|
||||
not_navigation_bar = "false";
|
||||
not_status_bar = "false";
|
||||
default_launcher = "true";
|
||||
has_root = "true";
|
||||
usb_not_permission = "true";
|
||||
gps_use = "false";
|
||||
gps_serial_port = "/dev/ttyS0";
|
||||
primary_device = "DSI";
|
||||
extend_device = "HDMI-A";
|
||||
extend_rotate = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull = "true";
|
||||
extend_rotate_2 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_2 = "true";
|
||||
extend_rotate_3 = "0";//0 0//1 90 //2 180 //3 270
|
||||
rotation_efull_3 = "true";
|
||||
home_apk = "null";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
&pwm0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&display_subsystem {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dsi {
|
||||
status = "okay";
|
||||
|
||||
panel@0 {
|
||||
compatible = "sitronix,st7703", "simple-panel-dsi";
|
||||
reg = <0>;
|
||||
backlight = <&backlight>;
|
||||
|
||||
reset-delay-ms = <20>;
|
||||
init-delay-ms = <20>;
|
||||
enable-delay-ms = <120>;
|
||||
disable-delay-ms = <60>;
|
||||
prepare-delay-ms = <120>;
|
||||
unprepare-delay-ms = <60>;
|
||||
|
||||
dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
|
||||
MIPI_DSI_MODE_VIDEO_SYNC_PULSE)>;
|
||||
|
||||
dsi,format = <MIPI_DSI_FMT_RGB888>;
|
||||
dsi,lanes = <4>;
|
||||
|
||||
power-supply = <&vcc18_lcd_n>;
|
||||
reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
|
||||
|
||||
panel-init-sequence = [
|
||||
39 00 04 B9 F1 12 83
|
||||
39 00 1C BA 33 81 05 F9 0E 0E 20 00 00 00 00 00 00 00 44 25 00 91 0A 00 00 02 4F D1 00 00 37
|
||||
39 00 05 B8 26 22 20 03
|
||||
39 00 04 BF 02 11 00
|
||||
39 00 0B B3 0C 10 0A 50 03 FF 00 00 00 00
|
||||
39 00 0A C0 73 73 50 50 00 00 08 70 00
|
||||
39 00 02 BC 46
|
||||
39 00 02 CC 0B
|
||||
39 00 02 B4 80
|
||||
39 00 04 B2 C8 12 30
|
||||
39 00 0F E3 07 07 0B 0B 03 0B 00 00 00 00 FF 00 C0 10
|
||||
39 00 0D C1 53 00 1E 1E 77 C1 FF FF AF AF 7F 7F
|
||||
39 00 03 B5 07 07
|
||||
39 00 03 B6 70 70
|
||||
39 00 07 C6 00 00 FF FF 01 FF
|
||||
39 00 40 E9 C2 10 05 04 FE 02 81 12 31 45 3F 83 12 91 3B 2A 08 05 00 00 00 00 08 05 00 00 00 00 FF 02 46 02 48 68 88 88 88 80 88 FF 13 57 13 58 78 88 88 88 81 88 00 00 00 00 00 12 B1 3B 00 00 00 00 00
|
||||
39 00 3E EA 00 1A 00 00 00 00 00 00 00 00 00 00 FF 31 75 31 18 78 88 88 88 85 88 FF 20 64 20 08 68 88 88 88 84 88 20 10 00 00 54 00 00 00 00 00 00 00 C0 00 00 0C 00 00 00 00 30 02 A1 00 00 00 00
|
||||
39 00 23 E0 00 05 07 1A 39 3F 33 2C 06 0B 0D 11 13 12 14 10 1A 00 05 07 1A 39 3F 33 2C 06 0B 0D 11 13 12 14 10 1A
|
||||
05 ff 01 11
|
||||
05 78 01 29
|
||||
];
|
||||
|
||||
panel-exit-sequence = [
|
||||
05 00 01 28
|
||||
05 78 01 10
|
||||
];
|
||||
|
||||
disp_timings0: display-timings {
|
||||
native-mode = <&dsi0_timing0>;
|
||||
dsi0_timing0: timing0 {
|
||||
clock-frequency = <60000000>;
|
||||
hactive = <720>;
|
||||
vactive = <1280>;
|
||||
hback-porch = <42>;
|
||||
hfront-porch = <44>;
|
||||
vback-porch = <10>;
|
||||
vfront-porch = <14>;
|
||||
hsync-len = <2>;
|
||||
vsync-len = <2>;
|
||||
hsync-active = <0>;
|
||||
vsync-active = <0>;
|
||||
de-active = <0>;
|
||||
pixelclk-active = <0>;
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@0 {
|
||||
reg = <0>;
|
||||
panel_in_dsi: endpoint {
|
||||
remote-endpoint = <&dsi_out_panel>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
ports {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
port@1 {
|
||||
reg = <1>;
|
||||
dsi_out_panel: endpoint {
|
||||
remote-endpoint = <&panel_in_dsi>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&dsi_in_vopb {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&route_dsi {
|
||||
connect = <&vopb_out_dsi>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
|
||||
// TP
|
||||
&i2c1 {
|
||||
status = "okay";
|
||||
clock-frequency = <200000>;
|
||||
|
||||
gt1x: goodix_gt1x@5d {
|
||||
/***** tp pin ******/
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&goodix_irq>;
|
||||
goodix,rst-gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
|
||||
goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_EDGE_FALLING>;
|
||||
|
||||
status = "okay";
|
||||
compatible = "goodix,gt1x";
|
||||
reg = <0x5d>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
&pinctrl {
|
||||
goodix {
|
||||
goodix_irq: goodix-irq {
|
||||
rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user