xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision 65548c8ff0abdf2db4dce69659eca0ab68cf08da)
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
54a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
62048e328SMark Yao	select DRM_KMS_HELPER
72048e328SMark Yao	select DRM_PANEL
82048e328SMark Yao	select VIDEOMODE_HELPERS
9b9670ca2SArnd Bergmann	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
10b9670ca2SArnd Bergmann	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
112d4f7bdaSNickey Yang	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
1271f68fe7SHeiko Stuebner	select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
1371f68fe7SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
14b9670ca2SArnd Bergmann	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
152048e328SMark Yao	help
162048e328SMark Yao	  Choose this option if you have a Rockchip soc chipset.
172048e328SMark Yao	  This driver provides kernel mode setting and buffer
182048e328SMark Yao	  management to userspace. This driver does not provide
192048e328SMark Yao	  2D or 3D acceleration; acceleration is performed by other
202048e328SMark Yao	  IP found on the SoC.
2112b9f204SAndy Yan
22b9670ca2SArnd Bergmannif DRM_ROCKCHIP
23b9670ca2SArnd Bergmann
24b382406aSSascha Hauerconfig ROCKCHIP_VOP
25b382406aSSascha Hauer	bool "Rockchip VOP driver"
26b382406aSSascha Hauer	default y
27b382406aSSascha Hauer	help
28b382406aSSascha Hauer	  This selects support for the VOP driver. You should enable it
29b382406aSSascha Hauer	  on older SoCs.
30b382406aSSascha Hauer
31604be855SAndy Yanconfig ROCKCHIP_VOP2
32604be855SAndy Yan	bool "Rockchip VOP2 driver"
33604be855SAndy Yan	help
34604be855SAndy Yan	  This selects support for the VOP2 driver. The VOP2 hardware is
35604be855SAndy Yan	  first found on the RK3568.
36604be855SAndy Yan
379e32e16eSYakir Yangconfig ROCKCHIP_ANALOGIX_DP
388820b68bSJeffy Chen	bool "Rockchip specific extensions for Analogix DP driver"
39b382406aSSascha Hauer	depends on ROCKCHIP_VOP
400b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
411e0f6642SThomas Zimmermann	select DRM_DISPLAY_DP_HELPER
429e32e16eSYakir Yang	help
439e32e16eSYakir Yang	  This selects support for Rockchip SoC specific extensions
449e32e16eSYakir Yang	  for the Analogix Core DP driver. If you want to enable DP
45dc879f61SSandy Huang	  on RK3288 or RK3399 based SoC, you should select this option.
469e32e16eSYakir Yang
471a0f7ed3SChris Zhongconfig ROCKCHIP_CDN_DP
488820b68bSJeffy Chen	bool "Rockchip cdn DP"
49b9670ca2SArnd Bergmann	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
500b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
510b752df7SRen Zhijie	select DRM_DISPLAY_DP_HELPER
521a0f7ed3SChris Zhong	help
531a0f7ed3SChris Zhong	  This selects support for Rockchip SoC specific extensions
541a0f7ed3SChris Zhong	  for the cdn DP driver. If you want to enable Dp on
551a0f7ed3SChris Zhong	  RK3399 based SoC, you should select this
561a0f7ed3SChris Zhong	  option.
571a0f7ed3SChris Zhong
5812b9f204SAndy Yanconfig ROCKCHIP_DW_HDMI
598820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW HDMI"
6012b9f204SAndy Yan	help
6112b9f204SAndy Yan	  This selects support for Rockchip SoC specific extensions
6212b9f204SAndy Yan	  for the Synopsys DesignWare HDMI driver. If you want to
63dc879f61SSandy Huang	  enable HDMI on RK3288 or RK3399 based SoC, you should select
64dc879f61SSandy Huang	  this option.
6584e05408SChris Zhong
6684e05408SChris Zhongconfig ROCKCHIP_DW_MIPI_DSI
678820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
6825ed8aebSHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
6984e05408SChris Zhong	help
7084e05408SChris Zhong	  This selects support for Rockchip SoC specific extensions
71a218a397SDafna Hirschfeld	  for the Synopsys DesignWare dsi driver. If you want to
72dc879f61SSandy Huang	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
73dc879f61SSandy Huang	  select this option.
74412d4ae6SYakir Yang
75412d4ae6SYakir Yangconfig ROCKCHIP_INNO_HDMI
768820b68bSJeffy Chen	bool "Rockchip specific extensions for Innosilicon HDMI"
77*65548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_HELPER
78*65548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
79*65548c8fSMaxime Ripard	select DRM_DISPLAY_HELPER
80412d4ae6SYakir Yang	help
81412d4ae6SYakir Yang	  This selects support for Rockchip SoC specific extensions
82412d4ae6SYakir Yang	  for the Innosilicon HDMI driver. If you want to enable
83412d4ae6SYakir Yang	  HDMI on RK3036 based SoC, you should select this option.
84b9670ca2SArnd Bergmann
8534cc0aa2SSandy Huangconfig ROCKCHIP_LVDS
8634cc0aa2SSandy Huang	bool "Rockchip LVDS support"
8734cc0aa2SSandy Huang	depends on DRM_ROCKCHIP
8830cfcf01SArnd Bergmann	depends on PINCTRL && OF
8934cc0aa2SSandy Huang	help
9034cc0aa2SSandy Huang	  Choose this option to enable support for Rockchip LVDS controllers.
9134cc0aa2SSandy Huang	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
9234cc0aa2SSandy Huang	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
9334cc0aa2SSandy Huang	  driver.
941f0f0151SSandy Huang
951f0f0151SSandy Huangconfig ROCKCHIP_RGB
961f0f0151SSandy Huang	bool "Rockchip RGB support"
971f0f0151SSandy Huang	depends on DRM_ROCKCHIP
981f0f0151SSandy Huang	depends on PINCTRL
991f0f0151SSandy Huang	help
1001f0f0151SSandy Huang	  Choose this option to enable support for Rockchip RGB output.
1011f0f0151SSandy Huang	  Some Rockchip CRTCs, like rv1108, can directly output parallel
1021f0f0151SSandy Huang	  and serial RGB format to panel or connect to a conversion chip.
1031f0f0151SSandy Huang	  say Y to enable its driver.
104f84d3d37SZheng Yang
105f84d3d37SZheng Yangconfig ROCKCHIP_RK3066_HDMI
106f84d3d37SZheng Yang	bool "Rockchip specific extensions for RK3066 HDMI"
107f84d3d37SZheng Yang	depends on DRM_ROCKCHIP
108f84d3d37SZheng Yang	help
109f84d3d37SZheng Yang	  This selects support for Rockchip SoC specific extensions
110f84d3d37SZheng Yang	  for the RK3066 HDMI driver. If you want to enable
111f84d3d37SZheng Yang	  HDMI on RK3066 based SoC, you should select this option.
112b9670ca2SArnd Bergmannendif
113