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