xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision b08494a8f7416e5f09907318c5460ad6f6e2a548)
1# SPDX-License-Identifier: GPL-2.0-only
2config DRM_ROCKCHIP
3	tristate "DRM Support for Rockchip"
4	depends on DRM && ROCKCHIP_IOMMU
5	depends on OF
6	select DRM_CLIENT_SELECTION
7	select DRM_GEM_DMA_HELPER
8	select DRM_KMS_HELPER
9	select DRM_PANEL
10	select VIDEOMODE_HELPERS
11	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
12	select DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP
13	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
14	select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
15	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
16	select DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2
17	select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
18	select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
19	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
20	help
21	  Choose this option if you have a Rockchip soc chipset.
22	  This driver provides kernel mode setting and buffer
23	  management to userspace. This driver does not provide
24	  2D or 3D acceleration; acceleration is performed by other
25	  IP found on the SoC.
26
27if DRM_ROCKCHIP
28
29config ROCKCHIP_VOP
30	bool "Rockchip VOP driver"
31	default y
32	help
33	  This selects support for the VOP driver. You should enable it
34	  on older SoCs.
35
36config ROCKCHIP_VOP2
37	bool "Rockchip VOP2 driver"
38	help
39	  This selects support for the VOP2 driver. The VOP2 hardware is
40	  first found on the RK3568.
41
42config ROCKCHIP_ANALOGIX_DP
43	bool "Rockchip specific extensions for Analogix DP driver"
44	depends on ROCKCHIP_VOP
45	select DRM_DISPLAY_HELPER
46	select DRM_DISPLAY_DP_HELPER
47	help
48	  This selects support for Rockchip SoC specific extensions
49	  for the Analogix Core DP driver. If you want to enable DP
50	  on RK3288 or RK3399 based SoC, you should select this option.
51
52config ROCKCHIP_CDN_DP
53	bool "Rockchip cdn DP"
54	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
55	select DRM_DISPLAY_HELPER
56	select DRM_DISPLAY_DP_HELPER
57	help
58	  This selects support for Rockchip SoC specific extensions
59	  for the cdn DP driver. If you want to enable Dp on
60	  RK3399 based SoC, you should select this
61	  option.
62
63config ROCKCHIP_DW_HDMI
64	bool "Rockchip specific extensions for Synopsys DW HDMI"
65	help
66	  This selects support for Rockchip SoC specific extensions
67	  for the Synopsys DesignWare HDMI driver. If you want to
68	  enable HDMI on RK3288 or RK3399 based SoC, you should select
69	  this option.
70
71config ROCKCHIP_DW_HDMI_QP
72	bool "Rockchip specific extensions for Synopsys DW HDMI QP"
73	select DRM_BRIDGE_CONNECTOR
74	help
75	  This selects support for Rockchip SoC specific extensions
76	  for the Synopsys DesignWare HDMI QP driver. If you want to
77	  enable HDMI on RK3588 based SoC, you should select this option.
78
79config ROCKCHIP_DW_MIPI_DSI
80	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
81	select GENERIC_PHY_MIPI_DPHY
82	help
83	  This selects support for Rockchip SoC specific extensions
84	  for the Synopsys DesignWare dsi driver. If you want to
85	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
86	  select this option.
87
88config ROCKCHIP_DW_MIPI_DSI2
89	bool "Rockchip specific extensions for Synopsys DW MIPI DSI2"
90	select GENERIC_PHY_MIPI_DPHY
91	help
92	  This selects support for Rockchip SoC specific extensions
93	  for the Synopsys DesignWare DSI2 driver. If you want to
94	  enable MIPI DSI on RK3576 or RK3588 based SoC, you should
95	  select this option.
96
97config ROCKCHIP_INNO_HDMI
98	bool "Rockchip specific extensions for Innosilicon HDMI"
99	select DRM_DISPLAY_HDMI_HELPER
100	select DRM_DISPLAY_HDMI_STATE_HELPER
101	select DRM_DISPLAY_HELPER
102	help
103	  This selects support for Rockchip SoC specific extensions
104	  for the Innosilicon HDMI driver. If you want to enable
105	  HDMI on RK3036 based SoC, you should select this option.
106
107config ROCKCHIP_LVDS
108	bool "Rockchip LVDS support"
109	depends on DRM_ROCKCHIP
110	depends on PINCTRL && OF
111	select DRM_DISPLAY_HELPER
112	select DRM_BRIDGE_CONNECTOR
113	help
114	  Choose this option to enable support for Rockchip LVDS controllers.
115	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
116	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
117	  driver.
118
119config ROCKCHIP_RGB
120	bool "Rockchip RGB support"
121	depends on DRM_ROCKCHIP
122	depends on PINCTRL
123	select DRM_DISPLAY_HELPER
124	select DRM_BRIDGE_CONNECTOR
125	help
126	  Choose this option to enable support for Rockchip RGB output.
127	  Some Rockchip CRTCs, like rv1108, can directly output parallel
128	  and serial RGB format to panel or connect to a conversion chip.
129	  say Y to enable its driver.
130
131config ROCKCHIP_RK3066_HDMI
132	bool "Rockchip specific extensions for RK3066 HDMI"
133	depends on DRM_ROCKCHIP
134	help
135	  This selects support for Rockchip SoC specific extensions
136	  for the RK3066 HDMI driver. If you want to enable
137	  HDMI on RK3066 based SoC, you should select this option.
138endif
139