xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/arm64/rockchip/rk3588-evb2-lp4-v10-edp.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2// Copyright (c) 2021 Rockchip Electronics Co., Ltd.
3
4/dts-v1/;
5
6#include "rk3588-evb2-lp4.dtsi"
7#include "rk3588-android.dtsi"
8
9/ {
10	model = "Rockchip RK3588 EVB2 LP4 V10 eDP Board";
11	compatible = "rockchip,rk3588-evb2-lp4-v10-edp", "rockchip,rk3588";
12
13	panel-edp1 {
14		compatible = "simple-panel";
15		backlight = <&backlight>;
16		power-supply = <&vcc3v3_lcd>;
17		prepare-delay-ms = <120>;
18		enable-delay-ms = <120>;
19		unprepare-delay-ms = <120>;
20		disable-delay-ms = <120>;
21		width-mm = <129>;
22		height-mm = <171>;
23
24		panel-timing {
25			clock-frequency = <200000000>;
26			hactive = <1536>;
27			vactive = <2048>;
28			hfront-porch = <12>;
29			hsync-len = <16>;
30			hback-porch = <48>;
31			vfront-porch = <8>;
32			vsync-len = <4>;
33			vback-porch = <8>;
34			hsync-active = <0>;
35			vsync-active = <0>;
36			de-active = <0>;
37			pixelclk-active = <0>;
38		};
39
40		port {
41			panel_in_edp1: endpoint {
42				remote-endpoint = <&edp1_out_panel>;
43			};
44		};
45	};
46
47	vcc3v3_lcd: vcc3v3-lcd {
48		compatible = "regulator-fixed";
49		regulator-name = "vcc3v3_lcd";
50		vin-supply = <&vcc_3v3_s0>;
51	};
52};
53
54&backlight {
55	enable-gpios = <&gpio1 RK_PC4 GPIO_ACTIVE_HIGH>;
56};
57
58&dp0_in_vp0 {
59	status = "disabled";
60};
61
62&dp0_in_vp1 {
63	status = "okay";
64};
65
66&dp0_in_vp2 {
67	status = "disabled";
68};
69
70&dp1_in_vp0 {
71	status = "disabled";
72};
73
74&dp1_in_vp1 {
75	status = "okay";
76};
77
78&dp1_in_vp2 {
79	status = "disabled";
80};
81
82&dsi1 {
83	status = "disabled";
84};
85
86&edp1 {
87	force-hpd;
88	status = "okay";
89
90	ports {
91		port@1 {
92			reg = <1>;
93
94			edp1_out_panel: endpoint {
95				remote-endpoint = <&panel_in_edp1>;
96			};
97		};
98	};
99};
100
101&edp1_in_vp0 {
102	status = "disabled";
103};
104
105&edp1_in_vp1 {
106	status = "disabled";
107};
108
109&edp1_in_vp2 {
110	status = "okay";
111};
112
113&gt1x {
114	status = "disabled";
115};
116
117&hdptxphy1 {
118	status = "okay";
119};
120
121&i2c6 {
122	clock-frequency = <400000>;
123	status = "okay";
124
125	gsl3673@40 {
126		compatible = "GSL,GSL3673";
127		reg = <0x40>;
128		screen_max_x = <1536>;
129		screen_max_y = <2048>;
130		irq_gpio_number = <&gpio0 RK_PD3 IRQ_TYPE_LEVEL_LOW>;
131		rst_gpio_number = <&gpio0 RK_PD2 GPIO_ACTIVE_HIGH>;
132	};
133};
134
135&vcc3v3_lcd_n {
136	/delete-property/ gpio;
137};
138