xref: /linux/drivers/gpu/drm/rockchip/Kconfig (revision d7b4936b2bc0987ccea125d9653381a1a0038d6d)
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
5905df8f1SThomas Zimmermann	select DRM_CLIENT_SELECTION
64a83c26aSDanilo Krummrich	select DRM_GEM_DMA_HELPER
72048e328SMark Yao	select DRM_KMS_HELPER
82048e328SMark Yao	select DRM_PANEL
92048e328SMark Yao	select VIDEOMODE_HELPERS
10b9670ca2SArnd Bergmann	select DRM_ANALOGIX_DP if ROCKCHIP_ANALOGIX_DP
11*d7b4936bSDamon Ding	select DRM_DISPLAY_DP_AUX_BUS if ROCKCHIP_ANALOGIX_DP
12b9670ca2SArnd Bergmann	select DRM_DW_HDMI if ROCKCHIP_DW_HDMI
13128a9bf8SCristian Ciocaltea	select DRM_DW_HDMI_QP if ROCKCHIP_DW_HDMI_QP
142d4f7bdaSNickey Yang	select DRM_DW_MIPI_DSI if ROCKCHIP_DW_MIPI_DSI
159f1e1e14SHeiko Stuebner	select DRM_DW_MIPI_DSI2 if ROCKCHIP_DW_MIPI_DSI2
1671f68fe7SHeiko Stuebner	select GENERIC_PHY if ROCKCHIP_DW_MIPI_DSI
1771f68fe7SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY if ROCKCHIP_DW_MIPI_DSI
18b9670ca2SArnd Bergmann	select SND_SOC_HDMI_CODEC if ROCKCHIP_CDN_DP && SND_SOC
192048e328SMark Yao	help
202048e328SMark Yao	  Choose this option if you have a Rockchip soc chipset.
212048e328SMark Yao	  This driver provides kernel mode setting and buffer
222048e328SMark Yao	  management to userspace. This driver does not provide
232048e328SMark Yao	  2D or 3D acceleration; acceleration is performed by other
242048e328SMark Yao	  IP found on the SoC.
2512b9f204SAndy Yan
26b9670ca2SArnd Bergmannif DRM_ROCKCHIP
27b9670ca2SArnd Bergmann
28b382406aSSascha Hauerconfig ROCKCHIP_VOP
29b382406aSSascha Hauer	bool "Rockchip VOP driver"
30b382406aSSascha Hauer	default y
31b382406aSSascha Hauer	help
32b382406aSSascha Hauer	  This selects support for the VOP driver. You should enable it
33b382406aSSascha Hauer	  on older SoCs.
34b382406aSSascha Hauer
35604be855SAndy Yanconfig ROCKCHIP_VOP2
36604be855SAndy Yan	bool "Rockchip VOP2 driver"
37604be855SAndy Yan	help
38604be855SAndy Yan	  This selects support for the VOP2 driver. The VOP2 hardware is
39604be855SAndy Yan	  first found on the RK3568.
40604be855SAndy Yan
419e32e16eSYakir Yangconfig ROCKCHIP_ANALOGIX_DP
428820b68bSJeffy Chen	bool "Rockchip specific extensions for Analogix DP driver"
43b382406aSSascha Hauer	depends on ROCKCHIP_VOP
440b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
451e0f6642SThomas Zimmermann	select DRM_DISPLAY_DP_HELPER
469e32e16eSYakir Yang	help
479e32e16eSYakir Yang	  This selects support for Rockchip SoC specific extensions
489e32e16eSYakir Yang	  for the Analogix Core DP driver. If you want to enable DP
49dc879f61SSandy Huang	  on RK3288 or RK3399 based SoC, you should select this option.
509e32e16eSYakir Yang
511a0f7ed3SChris Zhongconfig ROCKCHIP_CDN_DP
528820b68bSJeffy Chen	bool "Rockchip cdn DP"
53b9670ca2SArnd Bergmann	depends on EXTCON=y || (EXTCON=m && DRM_ROCKCHIP=m)
540b752df7SRen Zhijie	select DRM_DISPLAY_HELPER
550b752df7SRen Zhijie	select DRM_DISPLAY_DP_HELPER
561a0f7ed3SChris Zhong	help
571a0f7ed3SChris Zhong	  This selects support for Rockchip SoC specific extensions
581a0f7ed3SChris Zhong	  for the cdn DP driver. If you want to enable Dp on
591a0f7ed3SChris Zhong	  RK3399 based SoC, you should select this
601a0f7ed3SChris Zhong	  option.
611a0f7ed3SChris Zhong
6212b9f204SAndy Yanconfig ROCKCHIP_DW_HDMI
638820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW HDMI"
6412b9f204SAndy Yan	help
6512b9f204SAndy Yan	  This selects support for Rockchip SoC specific extensions
6612b9f204SAndy Yan	  for the Synopsys DesignWare HDMI driver. If you want to
67dc879f61SSandy Huang	  enable HDMI on RK3288 or RK3399 based SoC, you should select
68dc879f61SSandy Huang	  this option.
6984e05408SChris Zhong
70128a9bf8SCristian Ciocalteaconfig ROCKCHIP_DW_HDMI_QP
71128a9bf8SCristian Ciocaltea	bool "Rockchip specific extensions for Synopsys DW HDMI QP"
72128a9bf8SCristian Ciocaltea	select DRM_BRIDGE_CONNECTOR
73128a9bf8SCristian Ciocaltea	help
74128a9bf8SCristian Ciocaltea	  This selects support for Rockchip SoC specific extensions
75128a9bf8SCristian Ciocaltea	  for the Synopsys DesignWare HDMI QP driver. If you want to
76128a9bf8SCristian Ciocaltea	  enable HDMI on RK3588 based SoC, you should select this option.
77128a9bf8SCristian Ciocaltea
7884e05408SChris Zhongconfig ROCKCHIP_DW_MIPI_DSI
798820b68bSJeffy Chen	bool "Rockchip specific extensions for Synopsys DW MIPI DSI"
8025ed8aebSHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
8184e05408SChris Zhong	help
8284e05408SChris Zhong	  This selects support for Rockchip SoC specific extensions
83a218a397SDafna Hirschfeld	  for the Synopsys DesignWare dsi driver. If you want to
84dc879f61SSandy Huang	  enable MIPI DSI on RK3288 or RK3399 based SoC, you should
85dc879f61SSandy Huang	  select this option.
86412d4ae6SYakir Yang
879f1e1e14SHeiko Stuebnerconfig ROCKCHIP_DW_MIPI_DSI2
889f1e1e14SHeiko Stuebner	bool "Rockchip specific extensions for Synopsys DW MIPI DSI2"
899f1e1e14SHeiko Stuebner	select GENERIC_PHY_MIPI_DPHY
909f1e1e14SHeiko Stuebner	help
919f1e1e14SHeiko Stuebner	  This selects support for Rockchip SoC specific extensions
929f1e1e14SHeiko Stuebner	  for the Synopsys DesignWare DSI2 driver. If you want to
939f1e1e14SHeiko Stuebner	  enable MIPI DSI on RK3576 or RK3588 based SoC, you should
949f1e1e14SHeiko Stuebner	  select this option.
959f1e1e14SHeiko Stuebner
96412d4ae6SYakir Yangconfig ROCKCHIP_INNO_HDMI
978820b68bSJeffy Chen	bool "Rockchip specific extensions for Innosilicon HDMI"
9865548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_HELPER
9965548c8fSMaxime Ripard	select DRM_DISPLAY_HDMI_STATE_HELPER
10065548c8fSMaxime Ripard	select DRM_DISPLAY_HELPER
101412d4ae6SYakir Yang	help
102412d4ae6SYakir Yang	  This selects support for Rockchip SoC specific extensions
103412d4ae6SYakir Yang	  for the Innosilicon HDMI driver. If you want to enable
104412d4ae6SYakir Yang	  HDMI on RK3036 based SoC, you should select this option.
105b9670ca2SArnd Bergmann
10634cc0aa2SSandy Huangconfig ROCKCHIP_LVDS
10734cc0aa2SSandy Huang	bool "Rockchip LVDS support"
10834cc0aa2SSandy Huang	depends on DRM_ROCKCHIP
10930cfcf01SArnd Bergmann	depends on PINCTRL && OF
1109da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
1119da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
11234cc0aa2SSandy Huang	help
11334cc0aa2SSandy Huang	  Choose this option to enable support for Rockchip LVDS controllers.
11434cc0aa2SSandy Huang	  Rockchip rk3288 SoC has LVDS TX Controller can be used, and it
11534cc0aa2SSandy Huang	  support LVDS, rgb, dual LVDS output mode. say Y to enable its
11634cc0aa2SSandy Huang	  driver.
1171f0f0151SSandy Huang
1181f0f0151SSandy Huangconfig ROCKCHIP_RGB
1191f0f0151SSandy Huang	bool "Rockchip RGB support"
1201f0f0151SSandy Huang	depends on DRM_ROCKCHIP
1211f0f0151SSandy Huang	depends on PINCTRL
1229da7ec9bSDmitry Baryshkov	select DRM_DISPLAY_HELPER
1239da7ec9bSDmitry Baryshkov	select DRM_BRIDGE_CONNECTOR
1241f0f0151SSandy Huang	help
1251f0f0151SSandy Huang	  Choose this option to enable support for Rockchip RGB output.
1261f0f0151SSandy Huang	  Some Rockchip CRTCs, like rv1108, can directly output parallel
1271f0f0151SSandy Huang	  and serial RGB format to panel or connect to a conversion chip.
1281f0f0151SSandy Huang	  say Y to enable its driver.
129f84d3d37SZheng Yang
130f84d3d37SZheng Yangconfig ROCKCHIP_RK3066_HDMI
131f84d3d37SZheng Yang	bool "Rockchip specific extensions for RK3066 HDMI"
132f84d3d37SZheng Yang	depends on DRM_ROCKCHIP
133f84d3d37SZheng Yang	help
134f84d3d37SZheng Yang	  This selects support for Rockchip SoC specific extensions
135f84d3d37SZheng Yang	  for the RK3066 HDMI driver. If you want to enable
136f84d3d37SZheng Yang	  HDMI on RK3066 based SoC, you should select this option.
137b9670ca2SArnd Bergmannendif
138