hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
 *
 */
 
#include <dt-bindings/display/media-bus-format.h>
#include "rk3562-evb1-lp4x-v10.dtsi"
#include "rk3562-android.dtsi"
#include "rk3562-rk817.dtsi"
 
 
/ {
   panel-lvds {
       compatible = "simple-panel";
       status = "okay";
       backlight = <&backlight>;
       reset-delay-ms = <20>;
       enable-delay-ms = <20>;
       prepare-delay-ms = <20>;
       unprepare-delay-ms = <20>;
       disable-delay-ms = <20>;
       bus-format = <MEDIA_BUS_FMT_RGB888_1X7X4_SPWG>;
       width-mm = <164>;
       height-mm = <100>;
 
       power-supply = <&vcc3v3_lcd_n>;
       reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
       pinctrl-names = "default";
       pinctrl-0 = <&lcd_rst_gpio>;
 
       display-timings {
           native-mode = <&timing0>;
 
           timing0: timing0 {
               clock-frequency = <27000000>;
               hactive = <1024>;
               vactive = <600>;
               hback-porch = <160>;
               hfront-porch = <160>;
               vback-porch = <20>;
               vfront-porch = <15>;
               hsync-len = <6>;
               vsync-len = <5>;
               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_lvds: endpoint {
                   remote-endpoint = <&lvds_out_panel>;
               };
           };
       };
   };
 
};
 
&backlight {
   pwms = <&pwm5 0 25000 0>;
   status = "okay";
};
 
&dsi {
   status = "disabled";
};
 
&lvds {
   status = "okay";
 
   ports {
       port@1 {
           reg = <1>;
 
           lvds_out_panel: endpoint {
               remote-endpoint = <&panel_in_lvds>;
           };
       };
   };
};
 
&lvds_in_vp0 {
   status = "okay";
};
 
&pinctrl {
   lcd {
       lcd_rst_gpio: lcd-rst-gpio {
           rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
       };
   };
};
 
&pwm5 {
   pinctrl-names = "active";
   pinctrl-0 = <&pwm5m0_pins>;
   status = "okay";
};
 
&vcc3v3_lcd_n {
   gpio = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
   enable-active-high;
   status = "okay";
};
 
&video_phy {
   status = "okay";
};