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