xref: /OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/rk3399-evb-rev1-android.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd.
4 *
5 */
6
7/dts-v1/;
8
9#include "rk3399-evb-rev1.dtsi"
10#include "rk3399-android.dtsi"
11
12/ {
13	model = "Rockchip RK3399 Evaluation Board v1 (Android)";
14	compatible = "rockchip,android", "rockchip,rk3399-evb-rev1", "rockchip,rk3399";
15};
16
17&vdd_log {
18	rockchip,pwm_id= <2>;
19	rockchip,pwm_voltage = <900000>;
20};
21
22&vdd_center {
23	rockchip,pwm_id= <3>;
24	rockchip,pwm_voltage = <900000>;
25};
26
27&dsi {
28	status = "okay";
29
30	panel@0 {
31		compatible ="simple-panel-dsi";
32		reg = <0>;
33		backlight = <&backlight>;
34		enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
35
36		dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST)>;
37		dsi,format = <MIPI_DSI_FMT_RGB888>;
38		dsi,lanes = <4>;
39
40		display-timings {
41			native-mode = <&timing0>;
42
43			timing0: timing0 {
44				clock-frequency = <160000000>;
45				hactive = <1200>;
46				vactive = <1920>;
47				hback-porch = <21>;
48				hfront-porch = <120>;
49				vback-porch = <18>;
50				vfront-porch = <21>;
51				hsync-len = <20>;
52				vsync-len = <3>;
53				hsync-active = <0>;
54				vsync-active = <0>;
55				de-active = <0>;
56				pixelclk-active = <0>;
57			};
58		};
59
60		ports {
61			#address-cells = <1>;
62			#size-cells = <0>;
63
64			port@0 {
65				reg = <0>;
66				panel_in_dsi: endpoint {
67					remote-endpoint = <&dsi_out_panel>;
68				};
69			};
70		};
71	};
72
73	ports {
74		#address-cells = <1>;
75		#size-cells = <0>;
76
77		port@1 {
78			reg = <1>;
79			dsi_out_panel: endpoint {
80				remote-endpoint = <&panel_in_dsi>;
81			};
82		};
83	};
84};
85
86&route_dsi {
87	status = "okay";
88};
89
90&firmware_android {
91	compatible = "android,firmware";
92	fstab {
93		compatible = "android,fstab";
94		system {
95			compatible = "android,system";
96			dev = "/dev/block/by-name/system";
97			type = "ext4";
98			mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
99			fsmgr_flags = "wait,verify";
100		};
101		vendor {
102			compatible = "android,vendor";
103			dev = "/dev/block/by-name/vendor";
104			type = "ext4";
105			mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
106			fsmgr_flags = "wait,verify";
107		};
108	};
109};
110