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