From: Luo wei <lw@rock-chips.com>
Date: Sun, 5 Feb 2017 09:36:11 +0000 (+0800)
Subject: arm64: dts: rockchip: add auto dp config for rk3399-box-rev2-disvr dts
X-Git-Tag: firefly_0821_release~658
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6fe3c2fc516efc4198bf4e1bb88ad15b2c50a879;p=firefly-linux-kernel-4.4.55.git

arm64: dts: rockchip: add auto dp config for rk3399-box-rev2-disvr dts

Change-Id: I149ee371a9d11a807bf94c3cff8e3dc36d605853
Signed-off-by: Luo wei <lw@rock-chips.com>
---

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-box-rev2-disvr.dts b/arch/arm64/boot/dts/rockchip/rk3399-box-rev2-disvr.dts
index fc57e736fe7b..c4ccd4350551 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-box-rev2-disvr.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-box-rev2-disvr.dts
@@ -165,6 +165,20 @@
 	extcon = <&fusb0>;
 	dp_vop_sel = <DISPLAY_SOURCE_LCDC0>;
 	dp_defaultmode = <0>;
+	dp_edid_auto_support = <1>;
+	dp_edid_prop_value =
+	/*
+	* vid, pid, sn, xres, yres, vic, width, height, x_w,
+	* x_h, hwrotation, orientation, vsync, panel, scan
+	*/
+	<
+	/* rayken */
+	0x6252 0x0532 0x00000005 1440 2560 0x805 68 120 1152 2048 90 0 0 0 0
+	/* auo */
+	0x6252 0x0532 0x00000003 2160 1200 0x803 120 68 1728 1080 0 0 0 1 0
+	/* pico */
+	0x6252 0x8888 0x88888800 1440 2560 0x806 68 120 1152 2048 90 0 0 0 0
+	>;
 };
 
 &cdn_dp_sound {
@@ -174,6 +188,16 @@
 &hdmi_rk_fb {
 	status = "okay";
 	rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
+	hdmi_edid_auto_support = <1>;
+	hdmi_edid_prop_value =
+	/*
+	* vid, pid, sn, xres, yres, vic, width, height, x_w,
+	* x_h, hwrotation, orientation, vsync, panel, scan
+	*/
+	<
+	/* pico */
+	0x6252 0x8888 0x88888800 2160 1200 0x80f 120 68 2160 1200 90 180 0 0 0
+	>;
 };
 
 &hdmi_sound {
@@ -181,10 +205,14 @@
 };
 
 &vopb_rk_fb {
+	assigned-clocks = <&cru DCLK_VOP0_DIV>;
+	assigned-clock-parents = <&cru PLL_CPLL>;
 	status = "okay";
 };
 
 &vopl_rk_fb {
+	assigned-clocks = <&cru DCLK_VOP1_DIV>;
+	assigned-clock-parents = <&cru PLL_VPLL>;
 	status = "okay";
 };