arm: dts: rk3288: add mipi support
authorJianqun Xu <jay.xu@rock-chips.com>
Tue, 11 Apr 2017 02:58:53 +0000 (10:58 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 11 Apr 2017 07:35:02 +0000 (15:35 +0800)
if want enable mipi,
you should to okay mipi_dsi, dsi_panel and route_mipi.
also you should to disabled edp, edp_phy and edp_panel.

Change-Id: I037cb76c7a1d08bcd09219072aeb359e0d460a1c
Signed-off-by: xubilv <xbl@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
arch/arm/boot/dts/rk3288-android.dtsi
arch/arm/boot/dts/rk3288.dtsi

index fbaee75..f717cfd 100644 (file)
                pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
        };
 
+       display-subsystem {
+               status = "okay";
+
+               ports = <&vopb_out>, <&vopl_out>;
+               route {
+                       route_mipi: route-mipi {
+                               status = "disabled";
+                               logo,uboot = "logo.bmp";
+                               logo,kernel = "logo_kernel.bmp";
+                               logo,mode = "center";
+                               charge_logo,mode = "center";
+                               connect = <&vopb_out_mipi>;
+                       };
+               };
+       };
+
        rk_key: rockchip-key {
                compatible = "rockchip,key";
                status = "okay";
        compatible = "rockchip,rk3288-secure-efuse";
 };
 
+&mipi_dsi {
+       dsi_panel: dsi-panel {
+               compatible = "simple-panel-dsi";
+               reg = <0>;
+               backlight = <&backlight>;
+               enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
+               power-supply = <&vcc_lcd>;
+               dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST)>;
+               dsi,format = <MIPI_DSI_FMT_RGB888>;
+               dsi,lanes = <4>;
+               delay,prepare = <120>;
+               status = "disabled";
+
+               disp_timings: display-timings {
+                       native-mode = <&timing0>;
+
+                       timing0: timing0 {
+                               clock-frequency = <150000000>;
+                               hactive = <1200>;
+                               vactive = <1920>;
+                               hback-porch = <80>;
+                               hfront-porch = <81>;
+                               vback-porch = <21>;
+                               vfront-porch = <21>;
+                               hsync-len = <10>;
+                               vsync-len = <3>;
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <0>;
+                               pixelclk-active = <0>;
+                       };
+               };
+       };
+};
+
 &rga {
        compatible = "rockchip,rga2";
        clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
        rockchip,usb-mode = <0>;
 };
 
+&edp {
+       status = "okay";
+};
+
+&edp_phy {
+       status = "okay";
+};
+
+&edp_panel {
+       status = "okay";
+};
+
+&dsi_panel {
+       status = "disabled";
+};
+
+&mipi_dsi {
+       status = "disabled";
+};
+
+&route_mipi {
+       status = "disabled";
+};
+
 &pinctrl {
 
        backlight {
index 79e10bc..1947ef8 100644 (file)
@@ -46,6 +46,7 @@
 #include <dt-bindings/thermal/thermal.h>
 #include <dt-bindings/power/rk3288-power.h>
 #include <dt-bindings/soc/rockchip,boot-mode.h>
+#include <dt-bindings/display/drm_mipi_dsi.h>
 #include "skeleton.dtsi"
 
 / {