Commit 5364f57db549f1daff7d2783b35d740e29cc5c24

Authored by Ye Li
1 parent cd27757f95

MLK-23964-11 imx8qxp_mek: Enable the splash screen and video drivers

Update the DTS to add video relevants nodes and alias.
Enable the configurations iMX8 video, bridge and display drivers to
show splash screen

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 97da906e0b965ccbcfa2edcbd4cccffce948b0d3)

Showing 5 changed files with 83 additions and 4 deletions Side-by-side Diff

arch/arm/dts/fsl-imx8dx.dtsi
... ... @@ -23,15 +23,15 @@
23 23  
24 24 aliases {
25 25 csi0 = &mipi_csi_0;
26   - dpu0 = &dpu1;
  26 + video0 = &dpu1;
27 27 ethernet0 = &fec1;
28 28 ethernet1 = &fec2;
29 29 dsiphy0 = &mipi_dsi_phy1;
30 30 dsiphy1 = &mipi_dsi_phy2;
31 31 mipidsi0 = &mipi_dsi1;
32 32 mipidsi1 = &mipi_dsi2;
33   - ldb0 = &ldb1;
34   - ldb1 = &ldb2;
  33 + display0 = &ldb1;
  34 + display1 = &ldb2;
35 35 isi0 = &isi_0;
36 36 isi1 = &isi_1;
37 37 isi2 = &isi_2;
arch/arm/dts/fsl-imx8qxp-mek.dts
... ... @@ -307,6 +307,20 @@
307 307 pinctrl-0 = <&pinctrl_i2c0_mipi_lvds0>;
308 308 clock-frequency = <100000>;
309 309 status = "okay";
  310 +
  311 + lvds-to-hdmi-bridge@4c {
  312 + compatible = "ite,it6263";
  313 + reg = <0x4c>;
  314 + reset-gpios = <&pca9557_a 6 GPIO_ACTIVE_LOW>;
  315 +
  316 + port {
  317 + it6263_0_in: endpoint {
  318 + clock-lanes = <4>;
  319 + data-lanes = <0 1 2 3>;
  320 + remote-endpoint = <&lvds0_out>;
  321 + };
  322 + };
  323 + };
310 324 };
311 325  
312 326 &i2c0_mipi_lvds1 {
... ... @@ -400,5 +414,47 @@
400 414  
401 415 &usbotg3 {
402 416 status = "okay";
  417 +};
  418 +
  419 +&dpu1 {
  420 + status = "okay";
  421 +};
  422 +
  423 +&ldb1_phy {
  424 + status = "okay";
  425 +};
  426 +
  427 +&ldb1 {
  428 + status = "okay";
  429 +
  430 + lvds-channel@0 {
  431 + fsl,data-mapping = "jeida";
  432 + fsl,data-width = <24>;
  433 + status = "okay";
  434 +
  435 + display-timings {
  436 + native-mode = <&timing0>;
  437 +
  438 + timing0: timing0 {
  439 + clock-frequency = <74250000>;
  440 + hactive = <1280>;
  441 + vactive = <720>;
  442 + hfront-porch = <220>;
  443 + hback-porch = <110>;
  444 + hsync-len = <40>;
  445 + vback-porch = <5>;
  446 + vfront-porch = <20>;
  447 + vsync-len = <5>;
  448 + };
  449 + };
  450 +
  451 + port@1 {
  452 + reg = <1>;
  453 +
  454 + lvds0_out: endpoint {
  455 + remote-endpoint = <&it6263_0_in>;
  456 + };
  457 + };
  458 + };
403 459 };
configs/imx8qxp_mek_defconfig
... ... @@ -167,4 +167,10 @@
167 167  
168 168 CONFIG_SNVS_SEC_SC=y
169 169 CONFIG_OF_LIBFDT_OVERLAY=y
  170 +
  171 +CONFIG_VIDEO_IMXDPUV1=y
  172 +CONFIG_DM_VIDEO=y
  173 +CONFIG_VIDEO_IMX8_LVDS=y
  174 +CONFIG_VIDEO_IT6263_BRIDGE=y
  175 +CONFIG_SYS_WHITE_ON_BLACK=y
configs/imx8qxp_mek_fspi_defconfig
... ... @@ -169,4 +169,10 @@
169 169  
170 170 CONFIG_SNVS_SEC_SC=y
171 171 CONFIG_OF_LIBFDT_OVERLAY=y
  172 +
  173 +CONFIG_VIDEO_IMXDPUV1=y
  174 +CONFIG_DM_VIDEO=y
  175 +CONFIG_VIDEO_IMX8_LVDS=y
  176 +CONFIG_VIDEO_IT6263_BRIDGE=y
  177 +CONFIG_SYS_WHITE_ON_BLACK=y
include/configs/imx8qxp_mek.h
... ... @@ -135,7 +135,7 @@
135 135 AHAB_ENV \
136 136 "script=boot.scr\0" \
137 137 "image=Image\0" \
138   - "panel=NULL\0" \" \
  138 + "splashimage=0x9e000000\0" \" \
139 139 "console=ttyLP0\0" \
140 140 "fdt_addr=0x83000000\0" \
141 141 "fdt_high=0xffffffffffffffff\0" \
... ... @@ -335,6 +335,17 @@
335 335 #define CONFIG_FEC_XCV_TYPE RGMII
336 336 #define FEC_QUIRK_ENET_MAC
337 337  
  338 +#ifdef CONFIG_DM_VIDEO
  339 +#define CONFIG_VIDEO_LOGO
  340 +#define CONFIG_SPLASH_SCREEN
  341 +#define CONFIG_SPLASH_SCREEN_ALIGN
  342 +#define CONFIG_CMD_BMP
  343 +#define CONFIG_BMP_16BPP
  344 +#define CONFIG_BMP_24BPP
  345 +#define CONFIG_BMP_32BPP
  346 +#define CONFIG_VIDEO_BMP_RLE8
  347 +#define CONFIG_VIDEO_BMP_LOGO
  348 +#endif
338 349  
339 350 #endif /* __IMX8QXP_MEK_H */