|
| 1 | +Display Subsystem:(default FBdev) |
| 2 | + |
| 3 | +Steps switch to DRM: |
| 4 | +1、Disable fbdev,close below config items: |
| 5 | +CONFIG_FB_STARFIVE=y |
| 6 | +CONFIG_FB_STARFIVE_HDMI_TDA998X=y |
| 7 | +CONFIG_FB_STARFIVE_VIDEO=y |
| 8 | + |
| 9 | +2、open DRM hdmi pipeline,enable items: |
| 10 | +CONFIG_DRM_I2C_NXP_TDA998X=y |
| 11 | +CONFIG_DRM_I2C_NXP_TDA9950=y |
| 12 | +CONFIG_DRM_STARFIVE=y |
| 13 | +CONFIG_FRAMEBUFFER_CONSOLE=y |
| 14 | + |
| 15 | +Precautions:when use DRM hdmi pipeline,please make sure CONFIG_DRM_STARFIVE_MIPI_DSI is disable , |
| 16 | + or will cause color abnormal. |
| 17 | + |
| 18 | +3、open DRM mipi pipeline |
| 19 | + |
| 20 | +enable items: |
| 21 | + CONFIG_PHY_M31_DPHY_RX0=y |
| 22 | + CONFIG_DRM_STARFIVE_MIPI_DSI=y |
| 23 | + |
| 24 | + |
| 25 | +change jh7100.dtsi display-encoder as below: |
| 26 | + |
| 27 | + display-encoder { |
| 28 | + compatible = "starfive,display-encoder"; |
| 29 | + encoder-type = <6>; //2-TMDS, 3-LVDS, 6-DSI, 8-DPI |
| 30 | + status = "okay"; |
| 31 | + |
| 32 | + ports { |
| 33 | + port@0 { |
| 34 | + endpoint { |
| 35 | + remote-endpoint = <&dsi_out_port>; |
| 36 | + }; |
| 37 | + }; |
| 38 | + |
| 39 | + port@1 { |
| 40 | + endpoint { |
| 41 | + remote-endpoint = <&crtc_0_out>; |
| 42 | + }; |
| 43 | + }; |
| 44 | + }; |
| 45 | + }; |
| 46 | + |
| 47 | +install libdrm: |
| 48 | +make buildroot_initramfs-menuconfig |
| 49 | +choose: |
| 50 | +BR2_PACKAGE_LIBDRM=y |
| 51 | +BR2_PACKAGE_LIBDRM_RADEON=y |
| 52 | +BR2_PACKAGE_LIBDRM_AMDGPU=y |
| 53 | +BR2_PACKAGE_LIBDRM_NOUVEAU=y |
| 54 | +BR2_PACKAGE_LIBDRM_ETNAVIV=y |
| 55 | +BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y |
| 56 | + |
0 commit comments