arm64: dts: rockchip: update discrete vr dts based on box rev1 hardware.
authorwenping.zhang <wenping.zhang@rock-chips.com>
Wed, 4 Jan 2017 06:05:33 +0000 (14:05 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 6 Jan 2017 06:59:29 +0000 (14:59 +0800)
add hdmi sound support and restrict minimum frequence of gpu and clust-1
cpu to 400MHz and 1.08GHz.

Change-Id: Icbba43b456fc09f60e89e05ade3f121d2c71f373
Signed-off-by: wenping.zhang <wenping.zhang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-box-rev1-disvr.dts

index a9a929575431bcfd656a66949c0f7de590507580..052ea1757aa38dc6137eb5a0584dc72a51836efc 100644 (file)
        };
 };
 
+/*
+ * if your hardware board have two typec port, you should define
+ * fusb1 and tcphy1, such as:
+ *&tcphy1 {
+ *     status = "okay";
+ *     extcon = <&fusb1>;
+ *};
+ *&cdn_dp_fb {
+ *     status = "okay";
+ *     extcon = <&fusb0>, <&fusb1>;
+ *     dp_vop_sel = <DISPLAY_SOURCE_LCDC0>;
+ *     dp_defaultmode = <0>;
+ *};
+ */
+
+&tcphy0 {
+       status = "okay";
+       extcon = <&fusb0>;
+};
+
 &cdn_dp_fb {
        status = "okay";
        extcon = <&fusb0>;
 };
 
 &cdn_dp_sound {
-       status = "okay";
+       status = "disabled";
 };
 
 &hdmi_rk_fb {
        rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
 };
 
+&hdmi_sound {
+       status = "okay";
+};
+
 &vopb_rk_fb {
        status = "okay";
 };
 
+&vopl_rk_fb {
+       status = "okay";
+};
+
 &disp_timings {
        /* for rayken dp */
+       native-mode = <&timing1>;
        timing1 {
                screen-width = <68>;
                screen-hight = <120>;
        };
 };
 
-&vopl_rk_fb {
-       status = "okay";
+/*
+ * if the screen of vr helmet has a high screen resolution or
+ * high refresh rate,please increase the lowest gpu(gpu_opp_table)
+ * and cpu(cluster1_opp) frequence.
+ */
+&gpu_opp_table {
+       opp@200000000 {
+               status = "disabled";
+       };
+       opp@297000000 {
+               status = "disabled";
+       };
 };
+
+&cluster1_opp {
+       opp@408000000 {
+               status = "disabled";
+       };
+       opp@600000000 {
+               status = "disabled";
+       };
+       opp@816000000 {
+               status = "disabled";
+       };
+};
+