xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision d72aa5cf045a69d5fd433cde5dd4e113d9558fd1)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
22048e328SMark Yaoconfig DRM_ROCKCHIP
32048e328SMark Yao	tristate "DRM Support for Rockchip"
40244539fSChaoyi Chen	depends on DRM
5cd98e734SGeert Uytterhoeven	depends on ARCH_ROCKCHIP || COMPILE_TEST
60244539fSChaoyi Chen	depends on ROCKCHIP_IOMMU || !ROCKCHIP_IOMMU
74f1a965dSArnd Bergmann	depends on OF
8905df8f1SThomas Zimmermann	select DRM_CLIENT_SELECTION
94a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
102048e328SMark Yao	select DRM_KMS_HELPER
112048e328SMark Yao	select DRM_PANEL
122048e328SMark Yao	select VIDEOMODE_HELPERS
13b9670ca2SArnd Bergmann	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
14d7b4936bSDamon Ding	select DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP
15d68ba7baSAndy Yan	select DRM_DW_DP if ROCKCHIP_DW_DP
16b9670ca2SArnd Bergmann	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
17128a9bf8SCristian Ciocaltea	select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
182d4f7bdaSNickey Yang	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
199f1e1e14SHeiko Stuebner	select DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2
20969325a2SAndy Yan	select DRM_INNO_HDMI if ROCKCHIP_INNO_HDMI
2171f68fe7SHeiko Stuebner	select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
2271f68fe7SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
23b9670ca2SArnd Bergmann	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
242048e328SMark Yao	help
252048e328SMark Yao	  Choose this option if you have a Rockchip soc chipset.
262048e328SMark Yao	  This driver provides kernel mode setting and buffer
272048e328SMark Yao	  management to userspace. This driver does not provide
282048e328SMark Yao	  2D or 3D acceleration; acceleration is performed by other
292048e328SMark Yao	  IP found on the SoC.
3012b9f204SAndy Yan
31b9670ca2SArnd Bergmannif DRM_ROCKCHIP
32b9670ca2SArnd Bergmann
33b382406aSSascha Hauerconfig ROCKCHIP_VOP
34b382406aSSascha Hauer	bool "Rockchip VOP driver"
35b382406aSSascha Hauer	default y
36b382406aSSascha Hauer	help
37b382406aSSascha Hauer	  This selects support for the VOP driver. You should enable it
38b382406aSSascha Hauer	  on older SoCs.
39b382406aSSascha Hauer
40604be855SAndy Yanconfig ROCKCHIP_VOP2
41604be855SAndy Yan	bool "Rockchip VOP2 driver"
42604be855SAndy Yan	help
43604be855SAndy Yan	  This selects support for the VOP2 driver. The VOP2 hardware is
44604be855SAndy Yan	  first found on the RK3568.
45604be855SAndy Yan
469e32e16eSYakir Yangconfig ROCKCHIP_ANALOGIX_DP
478820b68bSJeffy Chen	bool "Rockchip specific extensions for Analogix DP driver"
48b382406aSSascha Hauer	depends on ROCKCHIP_VOP
4999a49ff5SDamon Ding	select DRM_BRIDGE_CONNECTOR
500b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
511e0f6642SThomas Zimmermann	select DRM_DISPLAY_DP_HELPER
529e32e16eSYakir Yang	help
539e32e16eSYakir Yang	  This selects support for Rockchip SoC specific extensions
549e32e16eSYakir Yang	  for the Analogix Core DP driver. If you want to enable DP
55dc879f61SSandy Huang	  on RK3288 or RK3399 based SoC, you should select this option.
569e32e16eSYakir Yang
571a0f7ed3SChris Zhongconfig ROCKCHIP_CDN_DP
588820b68bSJeffy Chen	bool "Rockchip cdn DP"
59b9670ca2SArnd Bergmann	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
600b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
61ea177a1bSRudi Heitbaum	select DRM_BRIDGE_CONNECTOR
620b752df7SRen Zhijie	select DRM_DISPLAY_DP_HELPER
631a0f7ed3SChris Zhong	help
641a0f7ed3SChris Zhong	  This selects support for Rockchip SoC specific extensions
651a0f7ed3SChris Zhong	  for the cdn DP driver. If you want to enable Dp on
661a0f7ed3SChris Zhong	  RK3399 based SoC, you should select this
671a0f7ed3SChris Zhong	  option.
681a0f7ed3SChris Zhong
69d68ba7baSAndy Yanconfig ROCKCHIP_DW_DP
70d68ba7baSAndy Yan	bool "Rockchip specific extensions for Synopsys DW DP"
71c83e3e80SIgor Paunovic	select DRM_BRIDGE_CONNECTOR
72d68ba7baSAndy Yan	help
73d68ba7baSAndy Yan	  This selects support for Rockchip SoC specific extensions
74d68ba7baSAndy Yan	  to enable Synopsys DesignWare Cores based DisplayPort transmit
75d68ba7baSAndy Yan	  controller support on Rockchip SoC, If you want to enable DP on
76d68ba7baSAndy Yan	  rk3588 based SoC, you should select this option.
77d68ba7baSAndy Yan
7812b9f204SAndy Yanconfig ROCKCHIP_DW_HDMI
798820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW HDMI"
8012b9f204SAndy Yan	help
8112b9f204SAndy Yan	  This selects support for Rockchip SoC specific extensions
8212b9f204SAndy Yan	  for the Synopsys DesignWare HDMI driver. If you want to
83dc879f61SSandy Huang	  enable HDMI on RK3288 or RK3399 based SoC, you should select
84dc879f61SSandy Huang	  this option.
8584e05408SChris Zhong
86128a9bf8SCristian Ciocalteaconfig ROCKCHIP_DW_HDMI_QP
87128a9bf8SCristian Ciocaltea	bool "Rockchip specific extensions for Synopsys DW HDMI QP"
88128a9bf8SCristian Ciocaltea	select DRM_BRIDGE_CONNECTOR
89128a9bf8SCristian Ciocaltea	help
90128a9bf8SCristian Ciocaltea	  This selects support for Rockchip SoC specific extensions
91128a9bf8SCristian Ciocaltea	  for the Synopsys DesignWare HDMI QP driver. If you want to
92128a9bf8SCristian Ciocaltea	  enable HDMI on RK3588 based SoC, you should select this option.
93128a9bf8SCristian Ciocaltea
9484e05408SChris Zhongconfig ROCKCHIP_DW_MIPI_DSI
958820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
9625ed8aebSHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
9784e05408SChris Zhong	help
9884e05408SChris Zhong	  This selects support for Rockchip SoC specific extensions
99a218a397SDafna Hirschfeld	  for the Synopsys DesignWare dsi driver. If you want to
100dc879f61SSandy Huang	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
101dc879f61SSandy Huang	  select this option.
102412d4ae6SYakir Yang
1039f1e1e14SHeiko Stuebnerconfig ROCKCHIP_DW_MIPI_DSI2
1049f1e1e14SHeiko Stuebner	bool "Rockchip specific extensions for Synopsys DW MIPI DSI2"
1059f1e1e14SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
1069f1e1e14SHeiko Stuebner	help
1079f1e1e14SHeiko Stuebner	  This selects support for Rockchip SoC specific extensions
1089f1e1e14SHeiko Stuebner	  for the Synopsys DesignWare DSI2 driver. If you want to
1099f1e1e14SHeiko Stuebner	  enable MIPI DSI on RK3576 or RK3588 based SoC, you should
1109f1e1e14SHeiko Stuebner	  select this option.
1119f1e1e14SHeiko Stuebner
112412d4ae6SYakir Yangconfig ROCKCHIP_INNO_HDMI
1138820b68bSJeffy Chen	bool "Rockchip specific extensions for Innosilicon HDMI"
11465548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_HELPER
11565548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
11665548c8fSMaxime Ripard	select DRM_DISPLAY_HELPER
117412d4ae6SYakir Yang	help
118412d4ae6SYakir Yang	  This selects support for Rockchip SoC specific extensions
119412d4ae6SYakir Yang	  for the Innosilicon HDMI driver. If you want to enable
120412d4ae6SYakir Yang	  HDMI on RK3036 based SoC, you should select this option.
121b9670ca2SArnd Bergmann
12234cc0aa2SSandy Huangconfig ROCKCHIP_LVDS
12334cc0aa2SSandy Huang	bool "Rockchip LVDS support"
12434cc0aa2SSandy Huang	depends on DRM_ROCKCHIP
12530cfcf01SArnd Bergmann	depends on PINCTRL && OF
1269da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
1279da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
12834cc0aa2SSandy Huang	help
12934cc0aa2SSandy Huang	  Choose this option to enable support for Rockchip LVDS controllers.
13034cc0aa2SSandy Huang	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
13134cc0aa2SSandy Huang	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
13234cc0aa2SSandy Huang	  driver.
1331f0f0151SSandy Huang
1341f0f0151SSandy Huangconfig ROCKCHIP_RGB
1351f0f0151SSandy Huang	bool "Rockchip RGB support"
1361f0f0151SSandy Huang	depends on DRM_ROCKCHIP
1371f0f0151SSandy Huang	depends on PINCTRL
1389da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
1399da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
1401f0f0151SSandy Huang	help
1411f0f0151SSandy Huang	  Choose this option to enable support for Rockchip RGB output.
1421f0f0151SSandy Huang	  Some Rockchip CRTCs, like rv1108, can directly output parallel
1431f0f0151SSandy Huang	  and serial RGB format to panel or connect to a conversion chip.
1441f0f0151SSandy Huang	  say Y to enable its driver.
145f84d3d37SZheng Yang
146f84d3d37SZheng Yangconfig ROCKCHIP_RK3066_HDMI
147f84d3d37SZheng Yang	bool "Rockchip specific extensions for RK3066 HDMI"
148f84d3d37SZheng Yang	depends on DRM_ROCKCHIP
149*d72aa5cfSIgor Paunovic	select DRM_DISPLAY_HELPER
150*d72aa5cfSIgor Paunovic	select DRM_BRIDGE_CONNECTOR
151f84d3d37SZheng Yang	help
152f84d3d37SZheng Yang	  This selects support for Rockchip SoC specific extensions
153f84d3d37SZheng Yang	  for the RK3066 HDMI driver. If you want to enable
154f84d3d37SZheng Yang	  HDMI on RK3066 based SoC, you should select this option.
155b9670ca2SArnd Bergmannendif
156