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