xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision ec2e0fb07d789976c601bec19ecced7a501c3705)
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_BRIDGE_CONNECTOR
58	select DRM_DISPLAY_DP_HELPER
59	help
60	  This selects support for Rockchip SoC specific extensions
61	  for the cdn DP driver. If you want to enable Dp on
62	  RK3399 based SoC, you should select this
63	  option.
64
65config ROCKCHIP_DW_DP
66	bool "Rockchip specific extensions for Synopsys DW DP"
67	help
68	  This selects support for Rockchip SoC specific extensions
69	  to enable Synopsys DesignWare Cores based DisplayPort transmit
70	  controller support on Rockchip SoC, If you want to enable DP on
71	  rk3588 based SoC, you should select this option.
72
73config ROCKCHIP_DW_HDMI
74	bool "Rockchip specific extensions for Synopsys DW HDMI"
75	help
76	  This selects support for Rockchip SoC specific extensions
77	  for the Synopsys DesignWare HDMI driver. If you want to
78	  enable HDMI on RK3288 or RK3399 based SoC, you should select
79	  this option.
80
81config ROCKCHIP_DW_HDMI_QP
82	bool "Rockchip specific extensions for Synopsys DW HDMI QP"
83	select DRM_BRIDGE_CONNECTOR
84	help
85	  This selects support for Rockchip SoC specific extensions
86	  for the Synopsys DesignWare HDMI QP driver. If you want to
87	  enable HDMI on RK3588 based SoC, you should select this option.
88
89config ROCKCHIP_DW_MIPI_DSI
90	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
91	select GENERIC_PHY_MIPI_DPHY
92	help
93	  This selects support for Rockchip SoC specific extensions
94	  for the Synopsys DesignWare dsi driver. If you want to
95	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
96	  select this option.
97
98config ROCKCHIP_DW_MIPI_DSI2
99	bool "Rockchip specific extensions for Synopsys DW MIPI DSI2"
100	select GENERIC_PHY_MIPI_DPHY
101	help
102	  This selects support for Rockchip SoC specific extensions
103	  for the Synopsys DesignWare DSI2 driver. If you want to
104	  enable MIPI DSI on RK3576 or RK3588 based SoC, you should
105	  select this option.
106
107config ROCKCHIP_INNO_HDMI
108	bool "Rockchip specific extensions for Innosilicon HDMI"
109	select DRM_DISPLAY_HDMI_HELPER
110	select DRM_DISPLAY_HDMI_STATE_HELPER
111	select DRM_DISPLAY_HELPER
112	help
113	  This selects support for Rockchip SoC specific extensions
114	  for the Innosilicon HDMI driver. If you want to enable
115	  HDMI on RK3036 based SoC, you should select this option.
116
117config ROCKCHIP_LVDS
118	bool "Rockchip LVDS support"
119	depends on DRM_ROCKCHIP
120	depends on PINCTRL && OF
121	select DRM_DISPLAY_HELPER
122	select DRM_BRIDGE_CONNECTOR
123	help
124	  Choose this option to enable support for Rockchip LVDS controllers.
125	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
126	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
127	  driver.
128
129config ROCKCHIP_RGB
130	bool "Rockchip RGB support"
131	depends on DRM_ROCKCHIP
132	depends on PINCTRL
133	select DRM_DISPLAY_HELPER
134	select DRM_BRIDGE_CONNECTOR
135	help
136	  Choose this option to enable support for Rockchip RGB output.
137	  Some Rockchip CRTCs, like rv1108, can directly output parallel
138	  and serial RGB format to panel or connect to a conversion chip.
139	  say Y to enable its driver.
140
141config ROCKCHIP_RK3066_HDMI
142	bool "Rockchip specific extensions for RK3066 HDMI"
143	depends on DRM_ROCKCHIP
144	help
145	  This selects support for Rockchip SoC specific extensions
146	  for the RK3066 HDMI driver. If you want to enable
147	  HDMI on RK3066 based SoC, you should select this option.
148endif
149