ARM64: dts: rk3368: p9: Add MIPI DSI panel support
authorWeiYong Bi <bivvy.bi@rock-chips.com>
Wed, 15 Mar 2017 01:09:34 +0000 (09:09 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Fri, 17 Mar 2017 07:30:25 +0000 (15:30 +0800)
Change-Id: I0d42d9ccd7ba09338c3074d1328ab5ec18079c27
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3368-p9.dts

index 56e75559be5fa2d733873abb80e1d580a114a324..788ef61c19c9f1dffd3aac79d01a7a8d2ee06422 100644 (file)
        status = "okay";
 };
 
+&mipi_dsi_host {
+       status = "okay";
+
+       dsi_panel: panel@0 {
+               compatible = "simple-panel-dsi";
+               reg = <0>;
+               backlight = <&backlight>;
+               enable-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
+               dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST)>;
+               dsi,format = <MIPI_DSI_FMT_RGB888>;
+               dsi,lanes = <4>;
+
+               delay,prepare = <120>;
+
+               disp_timings: display-timings {
+                       native-mode = <&timing0>;
+
+                       timing0: timing0 {
+                               clock-frequency = <145000000>;
+                               hactive = <1920>;
+                               vactive = <1200>;
+                               hback-porch = <16>;
+                               hfront-porch = <24>;
+                               vback-porch = <10>;
+                               vfront-porch = <16>;
+                               hsync-len = <10>;
+                               vsync-len = <3>;
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <0>;
+                       };
+               };
+       };
+};
+
+&mipi_dphy {
+       rockchip,dsi-panel = <&dsi_panel>;
+       status = "okay";
+};
+
 &pinctrl {
        pmic {
                pmic_int_l: pmic-int-l {