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