summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/starfive/README.txt
blob: dadec80c98bf51706526c3289fc344986c93a9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Display Subsystem:(default FBdev)

Steps switch to DRM:
1、Disable fbdev,close below config items:
CONFIG_FB_STARFIVE=y
CONFIG_FB_STARFIVE_HDMI_TDA998X=y
CONFIG_FB_STARFIVE_VIDEO=y

2、open DRM hdmi pipeline,enable items:
CONFIG_DRM_I2C_NXP_TDA998X=y
CONFIG_DRM_I2C_NXP_TDA9950=y
CONFIG_DRM_STARFIVE=y
CONFIG_FRAMEBUFFER_CONSOLE=y

Precautions:when use DRM hdmi pipeline,please make sure CONFIG_DRM_STARFIVE_MIPI_DSI is disable ,
			 or will cause color abnormal.

3、open DRM mipi pipeline

enable items:
	CONFIG_PHY_M31_DPHY_RX0=y
	CONFIG_DRM_STARFIVE_MIPI_DSI=y


change jh7100.dtsi display-encoder as below:

	display-encoder {
		compatible = "starfive,display-encoder";
		encoder-type = <6>; //2-TMDS, 3-LVDS, 6-DSI, 8-DPI
		status = "okay";

		ports {
			port@0 {
				endpoint {
					remote-endpoint = <&dsi_out_port>;
				};
			};

			port@1 {
				endpoint {
					remote-endpoint = <&crtc_0_out>;
				};
			};
		};
	};

install libdrm:
make buildroot_initramfs-menuconfig
choose:
BR2_PACKAGE_LIBDRM=y
BR2_PACKAGE_LIBDRM_RADEON=y
BR2_PACKAGE_LIBDRM_AMDGPU=y
BR2_PACKAGE_LIBDRM_NOUVEAU=y
BR2_PACKAGE_LIBDRM_ETNAVIV=y
BR2_PACKAGE_LIBDRM_INSTALL_TESTS=y