forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2023 Rockchip Electronics Co., Ltd.
 */
 
#include <dt-bindings/display/media-bus-format.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include "rk3568-evb1-ddr4-v10.dtsi"
#include "rk3568-android.dtsi"
 
/ {
   model = "Rockchip RK3568 EVB1 V10 Board with single channel lvds";
   compatible = "rockchip,rk3568-evb1-ddr4-v10-single-channel-lvds", "rockchip,rk3568";
 
   /* panel: claa070wp03xg */
   panel-lvds0 {
       compatible = "simple-panel";
       backlight = <&backlight>;
       power-supply = <&vcc3v3_lcd0_n>;
       enable-delay-ms = <20>;
       prepare-delay-ms = <20>;
       unprepare-delay-ms = <20>;
       disable-delay-ms = <20>;
       bus-format = <MEDIA_BUS_FMT_RGB666_1X7X3_SPWG>;
       width-mm = <217>;
       height-mm = <136>;
 
       display-timings {
           native-mode = <&timing0>;
           timing0: timing0 {
               clock-frequency = <67000000>;
               hactive = <800>;
               vactive = <1280>;
               hback-porch = <60>;
               hfront-porch = <60>;
               vback-porch = <4>;
               vfront-porch = <2>;
               hsync-len = <8>;
               vsync-len = <8>;
               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_lvds0: endpoint {
                   remote-endpoint = <&lvds0_out_panel>;
               };
           };
       };
   };
};
 
&backlight {
   status = "okay";
};
 
&backlight1 {
   status = "okay";
};
 
&dsi0 {
   status = "disabled";
};
 
&dsi0_in_vp0 {
   status = "disabled";
};
 
&dsi0_in_vp1 {
   status = "disabled";
};
 
&dsi1_in_vp1 {
   status = "disabled";
};
 
&edp_in_vp1 {
   status = "disabled";
};
 
&hdmi_in_vp1 {
   status = "okay";
};
 
&lvds0 {
   status = "okay";
   ports {
       port@1 {
           reg = <1>;
           lvds0_out_panel: endpoint {
               remote-endpoint = <&panel_in_lvds0>;
           };
       };
   };
};
 
&lvds0_in_vp1 {
   status = "okay";
};
 
&lvds1 {
   status = "disabled";
};
 
&rgb_in_vp2 {
   status = "disabled";
};
 
&vcc3v3_lcd0_n {
   gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>;
   enable-active-high;
};
 
&vcc3v3_lcd1_n {
   gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
   enable-active-high;
};
 
&video_phy0 {
   status = "okay";
};
 
&video_phy1 {
   status = "okay";
};