xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision d68ba7bac9555d05e2f5b310c898b2a5c7eff174)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
22048e328SMark Yaoconfig DRM_ROCKCHIP
32048e328SMark Yao	tristate "DRM Support for Rockchip"
42048e328SMark Yao	depends on DRM && ROCKCHIP_IOMMU
54f1a965dSArnd Bergmann	depends on OF
6905df8f1SThomas Zimmermann	select DRM_CLIENT_SELECTION
74a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
82048e328SMark Yao	select DRM_KMS_HELPER
92048e328SMark Yao	select DRM_PANEL
102048e328SMark Yao	select VIDEOMODE_HELPERS
11b9670ca2SArnd Bergmann	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
12d7b4936bSDamon Ding	select DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP
13*d68ba7baSAndy Yan	select DRM_DW_DP if ROCKCHIP_DW_DP
14b9670ca2SArnd Bergmann	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
15128a9bf8SCristian Ciocaltea	select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
162d4f7bdaSNickey Yang	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
179f1e1e14SHeiko Stuebner	select DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2
1871f68fe7SHeiko Stuebner	select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
1971f68fe7SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
20b9670ca2SArnd Bergmann	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
212048e328SMark Yao	help
222048e328SMark Yao	  Choose this option if you have a Rockchip soc chipset.
232048e328SMark Yao	  This driver provides kernel mode setting and buffer
242048e328SMark Yao	  management to userspace. This driver does not provide
252048e328SMark Yao	  2D or 3D acceleration; acceleration is performed by other
262048e328SMark Yao	  IP found on the SoC.
2712b9f204SAndy Yan
28b9670ca2SArnd Bergmannif DRM_ROCKCHIP
29b9670ca2SArnd Bergmann
30b382406aSSascha Hauerconfig ROCKCHIP_VOP
31b382406aSSascha Hauer	bool "Rockchip VOP driver"
32b382406aSSascha Hauer	default y
33b382406aSSascha Hauer	help
34b382406aSSascha Hauer	  This selects support for the VOP driver. You should enable it
35b382406aSSascha Hauer	  on older SoCs.
36b382406aSSascha Hauer
37604be855SAndy Yanconfig ROCKCHIP_VOP2
38604be855SAndy Yan	bool "Rockchip VOP2 driver"
39604be855SAndy Yan	help
40604be855SAndy Yan	  This selects support for the VOP2 driver. The VOP2 hardware is
41604be855SAndy Yan	  first found on the RK3568.
42604be855SAndy Yan
439e32e16eSYakir Yangconfig ROCKCHIP_ANALOGIX_DP
448820b68bSJeffy Chen	bool "Rockchip specific extensions for Analogix DP driver"
45b382406aSSascha Hauer	depends on ROCKCHIP_VOP
460b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
471e0f6642SThomas Zimmermann	select DRM_DISPLAY_DP_HELPER
489e32e16eSYakir Yang	help
499e32e16eSYakir Yang	  This selects support for Rockchip SoC specific extensions
509e32e16eSYakir Yang	  for the Analogix Core DP driver. If you want to enable DP
51dc879f61SSandy Huang	  on RK3288 or RK3399 based SoC, you should select this option.
529e32e16eSYakir Yang
531a0f7ed3SChris Zhongconfig ROCKCHIP_CDN_DP
548820b68bSJeffy Chen	bool "Rockchip cdn DP"
55b9670ca2SArnd Bergmann	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
560b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
570b752df7SRen Zhijie	select DRM_DISPLAY_DP_HELPER
581a0f7ed3SChris Zhong	help
591a0f7ed3SChris Zhong	  This selects support for Rockchip SoC specific extensions
601a0f7ed3SChris Zhong	  for the cdn DP driver. If you want to enable Dp on
611a0f7ed3SChris Zhong	  RK3399 based SoC, you should select this
621a0f7ed3SChris Zhong	  option.
631a0f7ed3SChris Zhong
64*d68ba7baSAndy Yanconfig ROCKCHIP_DW_DP
65*d68ba7baSAndy Yan	bool "Rockchip specific extensions for Synopsys DW DP"
66*d68ba7baSAndy Yan	help
67*d68ba7baSAndy Yan	  This selects support for Rockchip SoC specific extensions
68*d68ba7baSAndy Yan	  to enable Synopsys DesignWare Cores based DisplayPort transmit
69*d68ba7baSAndy Yan	  controller support on Rockchip SoC, If you want to enable DP on
70*d68ba7baSAndy Yan	  rk3588 based SoC, you should select this option.
71*d68ba7baSAndy Yan
7212b9f204SAndy Yanconfig ROCKCHIP_DW_HDMI
738820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW HDMI"
7412b9f204SAndy Yan	help
7512b9f204SAndy Yan	  This selects support for Rockchip SoC specific extensions
7612b9f204SAndy Yan	  for the Synopsys DesignWare HDMI driver. If you want to
77dc879f61SSandy Huang	  enable HDMI on RK3288 or RK3399 based SoC, you should select
78dc879f61SSandy Huang	  this option.
7984e05408SChris Zhong
80128a9bf8SCristian Ciocalteaconfig ROCKCHIP_DW_HDMI_QP
81128a9bf8SCristian Ciocaltea	bool "Rockchip specific extensions for Synopsys DW HDMI QP"
82128a9bf8SCristian Ciocaltea	select DRM_BRIDGE_CONNECTOR
83128a9bf8SCristian Ciocaltea	help
84128a9bf8SCristian Ciocaltea	  This selects support for Rockchip SoC specific extensions
85128a9bf8SCristian Ciocaltea	  for the Synopsys DesignWare HDMI QP driver. If you want to
86128a9bf8SCristian Ciocaltea	  enable HDMI on RK3588 based SoC, you should select this option.
87128a9bf8SCristian Ciocaltea
8884e05408SChris Zhongconfig ROCKCHIP_DW_MIPI_DSI
898820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
9025ed8aebSHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
9184e05408SChris Zhong	help
9284e05408SChris Zhong	  This selects support for Rockchip SoC specific extensions
93a218a397SDafna Hirschfeld	  for the Synopsys DesignWare dsi driver. If you want to
94dc879f61SSandy Huang	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
95dc879f61SSandy Huang	  select this option.
96412d4ae6SYakir Yang
979f1e1e14SHeiko Stuebnerconfig ROCKCHIP_DW_MIPI_DSI2
989f1e1e14SHeiko Stuebner	bool "Rockchip specific extensions for Synopsys DW MIPI DSI2"
999f1e1e14SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
1009f1e1e14SHeiko Stuebner	help
1019f1e1e14SHeiko Stuebner	  This selects support for Rockchip SoC specific extensions
1029f1e1e14SHeiko Stuebner	  for the Synopsys DesignWare DSI2 driver. If you want to
1039f1e1e14SHeiko Stuebner	  enable MIPI DSI on RK3576 or RK3588 based SoC, you should
1049f1e1e14SHeiko Stuebner	  select this option.
1059f1e1e14SHeiko Stuebner
106412d4ae6SYakir Yangconfig ROCKCHIP_INNO_HDMI
1078820b68bSJeffy Chen	bool "Rockchip specific extensions for Innosilicon HDMI"
10865548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_HELPER
10965548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
11065548c8fSMaxime Ripard	select DRM_DISPLAY_HELPER
111412d4ae6SYakir Yang	help
112412d4ae6SYakir Yang	  This selects support for Rockchip SoC specific extensions
113412d4ae6SYakir Yang	  for the Innosilicon HDMI driver. If you want to enable
114412d4ae6SYakir Yang	  HDMI on RK3036 based SoC, you should select this option.
115b9670ca2SArnd Bergmann
11634cc0aa2SSandy Huangconfig ROCKCHIP_LVDS
11734cc0aa2SSandy Huang	bool "Rockchip LVDS support"
11834cc0aa2SSandy Huang	depends on DRM_ROCKCHIP
11930cfcf01SArnd Bergmann	depends on PINCTRL && OF
1209da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
1219da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
12234cc0aa2SSandy Huang	help
12334cc0aa2SSandy Huang	  Choose this option to enable support for Rockchip LVDS controllers.
12434cc0aa2SSandy Huang	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
12534cc0aa2SSandy Huang	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
12634cc0aa2SSandy Huang	  driver.
1271f0f0151SSandy Huang
1281f0f0151SSandy Huangconfig ROCKCHIP_RGB
1291f0f0151SSandy Huang	bool "Rockchip RGB support"
1301f0f0151SSandy Huang	depends on DRM_ROCKCHIP
1311f0f0151SSandy Huang	depends on PINCTRL
1329da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
1339da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
1341f0f0151SSandy Huang	help
1351f0f0151SSandy Huang	  Choose this option to enable support for Rockchip RGB output.
1361f0f0151SSandy Huang	  Some Rockchip CRTCs, like rv1108, can directly output parallel
1371f0f0151SSandy Huang	  and serial RGB format to panel or connect to a conversion chip.
1381f0f0151SSandy Huang	  say Y to enable its driver.
139f84d3d37SZheng Yang
140f84d3d37SZheng Yangconfig ROCKCHIP_RK3066_HDMI
141f84d3d37SZheng Yang	bool "Rockchip specific extensions for RK3066 HDMI"
142f84d3d37SZheng Yang	depends on DRM_ROCKCHIP
143f84d3d37SZheng Yang	help
144f84d3d37SZheng Yang	  This selects support for Rockchip SoC specific extensions
145f84d3d37SZheng Yang	  for the RK3066 HDMI driver. If you want to enable
146f84d3d37SZheng Yang	  HDMI on RK3066 based SoC, you should select this option.
147b9670ca2SArnd Bergmannendif
148