Unverified Commit da054591 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4376 [OLK-6.6] Add Phytium Display Engine support to the OLK-6.6.

Merge Pull Request from: @lishuo123123 
 
This is Phytium Display Engine support,DC/DP driver patch.

Kernel-issue:
https://gitee.com/openeuler/kernel/issues/I908RR

Phytium X100 and E2000 have Display Controller,this driver can be adapted to this DC to support display.

Test:
After the patch is installed, the X100 and E2000 are running properly, and the phytium_dc_drm module is in use

Default config change:
< CONFIG_ARCH_PHYTIUM=y
< CONFIG_DRM=y
< CONFIG_DRM_PHYTIUM=m
< DRM_KMS_HELPER=y
< DRM_DISPLAY_HELPER=y
< DRM_DISPLAY_DP_HELPER=y
< DRM_DISPLAY_HDCP_HELPER=y 
 
Link:https://gitee.com/openeuler/kernel/pulls/4376

 

Reviewed-by: default avatarMao HongBo <maohongbo@phytium.com.cn>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 90577e05 ab9ff1e3
Loading
Loading
Loading
Loading
+49 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/dc/snps,dc.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Phytium Display Controller

maintainers:
  - Chen Baozi <chenbaozi@phytium.com.cn>

allOf:
  - $ref: /schemas/dc/display-controller.yaml#

properties:
  compatible:
    const: phytium,dc

  reg:
    minItems: 1
    items:
      - description: Offset and length of the memory mapped registers

  interrupts:
    maxItems: 1

  clocks:
    minItems: 1
    items:
      - description:Display controller reference clock source

unevaluatedProperties: false

required:
  - compatible
  - reg
  - interrupts

Example:
       /memreserve/ 0xf4000000 0x4000000; // (optional)

       dc0@32000000 {
               compatible = "phytium,dc";
               reg = <0x0 0x32000000 0x0 0x8000>,
                     <0x0 0xf4000000 0x0 0x4000000>; // (optional)
               interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
               pipe_mask = 0x3
               edp_mask = 0x0;
       };
+2 −0
Original line number Diff line number Diff line
@@ -1045,6 +1045,8 @@ patternProperties:
    description: PHICOMM Co., Ltd.
  "^phytec,.*":
    description: PHYTEC Messtechnik GmbH
  "^phytium,.*":
    description: Phytium Technology Co., Ltd.
  "^picochip,.*":
    description: Picochip Ltd
  "^pine64,.*":
+2 −0
Original line number Diff line number Diff line
@@ -387,6 +387,8 @@ source "drivers/gpu/drm/solomon/Kconfig"

source "drivers/gpu/drm/sprd/Kconfig"

source "drivers/gpu/drm/phytium/Kconfig"

config DRM_HYPERV
	tristate "DRM Support for Hyper-V synthetic video device"
	depends on DRM && PCI && MMU && HYPERV
+1 −0
Original line number Diff line number Diff line
@@ -198,3 +198,4 @@ obj-$(CONFIG_DRM_HYPERV) += hyperv/
obj-y			+= solomon/
obj-$(CONFIG_DRM_SPRD) += sprd/
obj-$(CONFIG_DRM_LOONGSON) += loongson/
obj-$(CONFIG_DRM_PHYTIUM) += phytium/
+12 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only

config DRM_PHYTIUM
	tristate "DRM Support for Phytium Graphics Card"
	depends on DRM && ARCH_PHYTIUM
	select DRM_KMS_HELPER
	select DRM_DISPLAY_HELPER
	select DRM_DISPLAY_DP_HELPER
	select DRM_DISPLAY_HDCP_HELPER
	help
	  Choose this option if you have a phytium graphics card.
	  This driver provides kernel mode setting and buffer management to userspace.
Loading