Skip to contentSkip to conversation

Add initial ZTE VOU DRM/KMS driver

PATCH In review Shawn Guo 2 participants 6 messages Oct 31, 2016 – Nov 7, 2016

Subsystems (3)
lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

v4 cover Add initial ZTE VOU DRM/KMS driver

From: Shawn Guo <[email protected]>

The series adds the initial ZTE VOU display controller DRM/KMS driver. There are still some features to be added, like overlay plane, scaling, and more output devices support. But it's already useful with dual CRTCs and HDMI display working.

Changes for v4:
- Move the hardware setup done in zx_hdmi_hw_init() and clock enable into .enable hook of drm_encoder_helper_funcs.
- Compare pipe to crtc->index instead of using our own index counter.
- Save the pipe check in zx_vou_enable[disable]_vblank by putting frame interrupt bit into zx_crtc_bits.
- Use DRM_DEV_* for log messages instead of old dev_* functions
- Return directly in case of -ETIMEDOUT in zx_hdmi_i2c_read to simplify the code for error condition.
- Shuffle things around to make the crtc and plane state check in zx_gl_plane_atomic_check a bit clearer
- Move hardware register definitions into headers instead of disturbing C file reading.
- Save the call to drm_connector_unregister(), so that drm_connector_cleanup can directly be used as drm_connector_funcs .destroy hook.
- Move vblank notification from .atomic_begin hook to .atomic_flush, so that vblank event is sent to user space after planes are committed rather than before.

Changes for v3:
- Rebase to v4.9-rc1
- Update bindings doc to use 'ranges' for address translation between parent and child devices.
- Call drm_dev_register() last in bind function and drm_dev_unregister() first in unbind, so that drm_connector_regiser() can be saved from HDMI driver.
- Instead of using open-coded drm_do_get_edid(), add an I2C adapter for HDMI DDC read and use drm_get_edid().
- Improve the plane .atomic_check implementation by calling helper function drm_plane_helper_check_state().
- Rename zx_crtc.c to zx_vou.c to avoid the confusion that the file implements crtc instance.
- Store vou pointer in zx_crtc, so that we do not need to embed the pointer in zx_drm_private.
- Create zx_readl/zx_writel/zx_writel_mask for register access.
- Define a few macro helpers to ease the register bit setting, like SYNC_WIDE, BACK_PORCH and FRONT_PORCH.
- Define main/aux channel specific register offset and bits in zx_crtc to save the use of is_main check
- Sort include headers alphabetically
- Removing encoder pointer out of the structure and constify struct vou_inf
- Add log message for error conditions
- Make the function calls in teardown path asymmetrical
- A few coding style improvements like defining macro for sub-module address and changing code to save indentation level
- Add a MAINTAINERS entry for ZTE ZX DRM driver

Changes for v2:
- Change device tree bindings to kill the virtual display-subsystem node make VOU the parent node.

Shawn Guo (3):
dt-bindings: add bindings doc for ZTE VOU display controller
drm: zte: add initial vou drm driver
MAINTAINERS: add an entry for ZTE ZX DRM driver

 .../devicetree/bindings/display/zte,vou.txt        |  84 +++
 MAINTAINERS                                        |   7 +
 drivers/gpu/drm/Kconfig                            |   2 +
 drivers/gpu/drm/Makefile                           |   1 +
 drivers/gpu/drm/zte/Kconfig                        |   8 +
 drivers/gpu/drm/zte/Makefile                       |   7 +
 drivers/gpu/drm/zte/zx_drm_drv.c                   | 267 +++++++++
 drivers/gpu/drm/zte/zx_drm_drv.h                   |  36 ++
 drivers/gpu/drm/zte/zx_hdmi.c                      | 624 +++++++++++++++++++
 drivers/gpu/drm/zte/zx_hdmi_regs.h                 |  56 ++
 drivers/gpu/drm/zte/zx_plane.c                     | 299 ++++++++++
 drivers/gpu/drm/zte/zx_plane.h                     |  26 +
 drivers/gpu/drm/zte/zx_plane_regs.h                |  91 +++
 drivers/gpu/drm/zte/zx_vou.c                       | 661 +++++++++++++++++++++
 drivers/gpu/drm/zte/zx_vou.h                       |  46 ++
 drivers/gpu/drm/zte/zx_vou_regs.h                  | 157 +++++
 16 files changed, 2372 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/zte,vou.txt
 create mode 100644 drivers/gpu/drm/zte/Kconfig
 create mode 100644 drivers/gpu/drm/zte/Makefile
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.c
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.h
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi.c
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane.c
 create mode 100644 drivers/gpu/drm/zte/zx_plane.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou.c
 create mode 100644 drivers/gpu/drm/zte/zx_vou.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou_regs.h
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v4 1/3 dt-bindings: add bindings doc for ZTE VOU display controller

From: Shawn Guo <[email protected]>

It adds initial bindings doc for ZTE VOU display controller. HDMI is the only supported output device right now.

---
 .../devicetree/bindings/display/zte,vou.txt        | 84 ++++++++++++++++++++++
 1 file changed, 84 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/zte,vou.txt
Documentation/devicetree/bindings/display/zte,vou.txt new file +84 -0
new file mode 100644
index 000000000000..740e5bd2e4f7
@@ -0,0 +1,84 @@
+ZTE VOU Display Controller
+
+This is a display controller found on ZTE ZX296718 SoC.  It includes multiple
+Graphic Layer (GL) and Video Layer (VL), two Mixers/Channels, and a few blocks
+handling scaling, color space conversion etc.  VOU also integrates the support
+for typical output devices, like HDMI, TV Encoder, VGA, and RGB LCD.
+
+* Master VOU node
+
+It must be the parent node of all the sub-device nodes.
+
+Required properties:
+ - compatible: should be "zte,zx296718-vou"
+ - #address-cells: should be <1>
+ - #size-cells: should be <1>
+ - ranges: list of address translations between VOU and sub-devices
+
+* VOU DPC device
+
+Required properties:
+ - compatible: should be "zte,zx296718-dpc"
+ - reg: Physical base address and length of DPC register regions, one for each
+   entry in 'reg-names'
+ - reg-names: The names of register regions. The following regions are required:
+	"osd"
+	"timing_ctrl"
+	"dtrc"
+	"vou_ctrl"
+	"otfppu"
+ - interrupts: VOU DPC interrupt number to CPU
+ - clocks: A list of phandle + clock-specifier pairs, one for each entry
+   in 'clock-names'
+ - clock-names: A list of clock names.  The following clocks are required:
+	"aclk"
+	"ppu_wclk"
+	"main_wclk"
+	"aux_wclk"
+
+* HDMI output device
+
+Required properties:
+ - compatible: should be "zte,zx296718-hdmi"
+ - reg: Physical base address and length of the HDMI device IO region
+ - interrupts : HDMI interrupt number to CPU
+ - clocks: A list of phandle + clock-specifier pairs, one for each entry
+   in 'clock-names'
+ - clock-names: A list of clock names.  The following clocks are required:
+	"osc_cec"
+	"osc_clk"
+	"xclk"
+
+Example:
+
+vou: vou at 1440000 {
+	compatible = "zte,zx296718-vou";
+	#address-cells = <1>;
+	#size-cells = <1>;
+	ranges = <0 0x1440000 0x10000>;
+
+	dpc: dpc at 0 {
+		compatible = "zte,zx296718-dpc";
+		reg = <0x0000 0x1000>, <0x1000 0x1000>,
+		      <0x5000 0x1000>, <0x6000 0x1000>,
+		      <0xa000 0x1000>;
+		reg-names = "osd", "timing_ctrl",
+			    "dtrc", "vou_ctrl",
+			    "otfppu";
+		interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&topcrm VOU_ACLK>, <&topcrm VOU_PPU_WCLK>,
+			 <&topcrm VOU_MAIN_WCLK>, <&topcrm VOU_AUX_WCLK>;
+		clock-names = "aclk", "ppu_wclk",
+			      "main_wclk", "aux_wclk";
+	};
+
+	hdmi: hdmi at c000 {
+		compatible = "zte,zx296718-hdmi";
+		reg = <0xc000 0x4000>;
+		interrupts = <GIC_SPI 82 IRQ_TYPE_EDGE_RISING>;
+		clocks = <&topcrm HDMI_OSC_CEC>,
+			 <&topcrm HDMI_OSC_CLK>,
+			 <&topcrm HDMI_XCLK>;
+		clock-names = "osc_cec", "osc_clk", "xclk";
+	};
+};
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH v4 2/3 drm: zte: add initial vou drm driver

In reply to Shawn Guo

From: Shawn Guo <[email protected]>

It adds the initial ZTE VOU display controller DRM driver. There are still some features to be added, like overlay plane, scaling, and more output devices support. But it's already useful with dual CRTCs and HDMI monitor working.

---
 drivers/gpu/drm/Kconfig             |   2 +
 drivers/gpu/drm/Makefile            |   1 +
 drivers/gpu/drm/zte/Kconfig         |   8 +
 drivers/gpu/drm/zte/Makefile        |   7 +
 drivers/gpu/drm/zte/zx_drm_drv.c    | 267 +++++++++++++++
 drivers/gpu/drm/zte/zx_drm_drv.h    |  36 ++
 drivers/gpu/drm/zte/zx_hdmi.c       | 624 ++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/zte/zx_hdmi_regs.h  |  56 +++
 drivers/gpu/drm/zte/zx_plane.c      | 299 ++++++++++++++++
 drivers/gpu/drm/zte/zx_plane.h      |  26 ++
 drivers/gpu/drm/zte/zx_plane_regs.h |  91 +++++
 drivers/gpu/drm/zte/zx_vou.c        | 661 ++++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/zte/zx_vou.h        |  46 +++
 drivers/gpu/drm/zte/zx_vou_regs.h   | 157 +++++++++
 14 files changed, 2281 insertions(+)
 create mode 100644 drivers/gpu/drm/zte/Kconfig
 create mode 100644 drivers/gpu/drm/zte/Makefile
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.c
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.h
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi.c
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane.c
 create mode 100644 drivers/gpu/drm/zte/zx_plane.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou.c
 create mode 100644 drivers/gpu/drm/zte/zx_vou.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou_regs.h
drivers/gpu/drm/Kconfig +2 -0
index 483059a22b1b..a91f8cecbe0f 100644
@@ -223,6 +223,8 @@ source "drivers/gpu/drm/hisilicon/Kconfig"
 
 source "drivers/gpu/drm/mediatek/Kconfig"
 
+source "drivers/gpu/drm/zte/Kconfig"
+
 # Keep legacy drivers last
 
 menuconfig DRM_LEGACY
drivers/gpu/drm/Makefile +1 -0
index 25c720454017..f3251750c92b 100644
@@ -86,3 +86,4 @@ obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
 obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
 obj-$(CONFIG_DRM_ARCPGU)+= arc/
 obj-y			+= hisilicon/
+obj-$(CONFIG_DRM_ZTE)	+= zte/
drivers/gpu/drm/zte/Kconfig new file +8 -0
new file mode 100644
index 000000000000..4065b2840f1c
@@ -0,0 +1,8 @@
+config DRM_ZTE
+	tristate "DRM Support for ZTE SoCs"
+	depends on DRM && ARCH_ZX
+	select DRM_KMS_CMA_HELPER
+	select DRM_KMS_FB_HELPER
+	select DRM_KMS_HELPER
+	help
+	  Choose this option to enable DRM on ZTE ZX SoCs.
drivers/gpu/drm/zte/Makefile new file +7 -0
new file mode 100644
index 000000000000..699180bfd57c
@@ -0,0 +1,7 @@
+zxdrm-y := \
+	zx_drm_drv.o \
+	zx_hdmi.o \
+	zx_plane.o \
+	zx_vou.o
+
+obj-$(CONFIG_DRM_ZTE) += zxdrm.o
drivers/gpu/drm/zte/zx_drm_drv.c new file +267 -0

267 lines not on this page · raw message

drivers/gpu/drm/zte/zx_drm_drv.h new file +36 -0
new file mode 100644
index 000000000000..e65cd18a6cba
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2016 Linaro Ltd.
+ * Copyright 2016 ZTE Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#ifndef __ZX_DRM_DRV_H__
+#define __ZX_DRM_DRV_H__
+
+extern struct platform_driver zx_crtc_driver;
+extern struct platform_driver zx_hdmi_driver;
+
+static inline u32 zx_readl(void __iomem *reg)
+{
+	return readl_relaxed(reg);
+}
+
+static inline void zx_writel(void __iomem *reg, u32 val)
+{
+	writel_relaxed(val, reg);
+}
+
+static inline void zx_writel_mask(void __iomem *reg, u32 mask, u32 val)
+{
+	u32 tmp;
+
+	tmp = zx_readl(reg);
+	tmp = (tmp & ~mask) | (val & mask);
+	zx_writel(reg, tmp);
+}
+
+#endif /* __ZX_DRM_DRV_H__ */
drivers/gpu/drm/zte/zx_hdmi.c new file +624 -0

624 lines not on this page · raw message

drivers/gpu/drm/zte/zx_hdmi_regs.h new file +56 -0

56 lines not on this page · raw message

drivers/gpu/drm/zte/zx_plane.c new file +299 -0

299 lines not on this page · raw message

drivers/gpu/drm/zte/zx_plane.h new file +26 -0
new file mode 100644
index 000000000000..2b82cd558d9d
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2016 Linaro Ltd.
+ * Copyright 2016 ZTE Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+#ifndef __ZX_PLANE_H__
+#define __ZX_PLANE_H__
+
+struct zx_layer_data {
+	void __iomem *layer;
+	void __iomem *csc;
+	void __iomem *hbsc;
+	void __iomem *rsz;
+};
+
+struct drm_plane *zx_plane_init(struct drm_device *drm, struct device *dev,
+				struct zx_layer_data *data,
+				enum drm_plane_type type);
+void zx_plane_set_update(struct drm_plane *plane);
+
+#endif /* __ZX_PLANE_H__ */
drivers/gpu/drm/zte/zx_plane_regs.h new file +91 -0

91 lines not on this page · raw message

drivers/gpu/drm/zte/zx_vou.c new file +661 -0

661 lines not on this page · raw message

drivers/gpu/drm/zte/zx_vou.h new file +46 -0

46 lines not on this page · raw message

drivers/gpu/drm/zte/zx_vou_regs.h new file +157 -0

157 lines not on this page · raw message

Signature · 1 line
1.9.1
author
#3 lore raw

PATCH v4 3/3 MAINTAINERS: add an entry for ZTE ZX DRM driver

In reply to Shawn Guo

From: Shawn Guo <[email protected]>

Add myself as the maintainer of ZTE ZX DRM driver.

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index 1cd38a7e0064..907dbd3261c5 100644
@@ -4281,6 +4281,13 @@ S:	Maintained
 F:	drivers/gpu/drm/tilcdc/
 F:	Documentation/devicetree/bindings/display/tilcdc/
 
+DRM DRIVERS FOR ZTE ZX
+M:	Shawn Guo <[email protected]>
+L:	dri-devel at lists.freedesktop.org
+S:	Maintained
+F:	drivers/gpu/drm/zte/
+F:	Documentation/devicetree/bindings/display/zte,vou.txt
+
 DSBR100 USB FM RADIO DRIVER
 M:	Alexey Klimov <[email protected]>
 L:	linux-media at vger.kernel.org
Signature · 1 line
1.9.1
author
#4 lore raw
In reply to Shawn Guo

Hi David, Daniel,

Quoted 6 lines · Shawn Guo

From: Shawn Guo <[email protected]>

The series adds the initial ZTE VOU display controller DRM/KMS driver. There are still some features to be added, like overlay plane, scaling, and more output devices support. But it's already useful with dual CRTCs and HDMI display working.

After a few rounds of reviewing (thanks to all reviewers), it seems that the series is ready for merging, I guess? If so, could you suggest how we proceed? I can prepare a pull request if you like. Thanks.

Shawn

Quoted 92 lines

Changes for v4:
- Move the hardware setup done in zx_hdmi_hw_init() and clock enable into .enable hook of drm_encoder_helper_funcs.
- Compare pipe to crtc->index instead of using our own index counter.
- Save the pipe check in zx_vou_enable[disable]_vblank by putting frame interrupt bit into zx_crtc_bits.
- Use DRM_DEV_* for log messages instead of old dev_* functions
- Return directly in case of -ETIMEDOUT in zx_hdmi_i2c_read to simplify the code for error condition.
- Shuffle things around to make the crtc and plane state check in zx_gl_plane_atomic_check a bit clearer
- Move hardware register definitions into headers instead of disturbing C file reading.
- Save the call to drm_connector_unregister(), so that drm_connector_cleanup can directly be used as drm_connector_funcs .destroy hook.
- Move vblank notification from .atomic_begin hook to .atomic_flush, so that vblank event is sent to user space after planes are committed rather than before.

Changes for v3:
- Rebase to v4.9-rc1
- Update bindings doc to use 'ranges' for address translation between parent and child devices.
- Call drm_dev_register() last in bind function and drm_dev_unregister() first in unbind, so that drm_connector_regiser() can be saved from HDMI driver.
- Instead of using open-coded drm_do_get_edid(), add an I2C adapter for HDMI DDC read and use drm_get_edid().
- Improve the plane .atomic_check implementation by calling helper function drm_plane_helper_check_state().
- Rename zx_crtc.c to zx_vou.c to avoid the confusion that the file implements crtc instance.
- Store vou pointer in zx_crtc, so that we do not need to embed the pointer in zx_drm_private.
- Create zx_readl/zx_writel/zx_writel_mask for register access.
- Define a few macro helpers to ease the register bit setting, like SYNC_WIDE, BACK_PORCH and FRONT_PORCH.
- Define main/aux channel specific register offset and bits in zx_crtc to save the use of is_main check
- Sort include headers alphabetically
- Removing encoder pointer out of the structure and constify struct vou_inf
- Add log message for error conditions
- Make the function calls in teardown path asymmetrical
- A few coding style improvements like defining macro for sub-module address and changing code to save indentation level
- Add a MAINTAINERS entry for ZTE ZX DRM driver

Changes for v2:
- Change device tree bindings to kill the virtual display-subsystem node make VOU the parent node.

Shawn Guo (3):
dt-bindings: add bindings doc for ZTE VOU display controller
drm: zte: add initial vou drm driver
MAINTAINERS: add an entry for ZTE ZX DRM driver

 .../devicetree/bindings/display/zte,vou.txt        |  84 +++
 MAINTAINERS                                        |   7 +
 drivers/gpu/drm/Kconfig                            |   2 +
 drivers/gpu/drm/Makefile                           |   1 +
 drivers/gpu/drm/zte/Kconfig                        |   8 +
 drivers/gpu/drm/zte/Makefile                       |   7 +
 drivers/gpu/drm/zte/zx_drm_drv.c                   | 267 +++++++++
 drivers/gpu/drm/zte/zx_drm_drv.h                   |  36 ++
 drivers/gpu/drm/zte/zx_hdmi.c                      | 624 +++++++++++++++++++
 drivers/gpu/drm/zte/zx_hdmi_regs.h                 |  56 ++
 drivers/gpu/drm/zte/zx_plane.c                     | 299 ++++++++++
 drivers/gpu/drm/zte/zx_plane.h                     |  26 +
 drivers/gpu/drm/zte/zx_plane_regs.h                |  91 +++
 drivers/gpu/drm/zte/zx_vou.c                       | 661 +++++++++++++++++++++
 drivers/gpu/drm/zte/zx_vou.h                       |  46 ++
 drivers/gpu/drm/zte/zx_vou_regs.h                  | 157 +++++
 16 files changed, 2372 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/zte,vou.txt
 create mode 100644 drivers/gpu/drm/zte/Kconfig
 create mode 100644 drivers/gpu/drm/zte/Makefile
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.c
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.h
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi.c
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane.c
 create mode 100644 drivers/gpu/drm/zte/zx_plane.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou.c
 create mode 100644 drivers/gpu/drm/zte/zx_vou.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou_regs.h
Signature · 1 line
1.9.1
maintainer
#5 lore raw
Quoted 6 lines · Shawn Guo

Hi David, Daniel,

Quoted 2 lines · Shawn Guo

From: Shawn Guo <[email protected]>

Quoted 8 lines
Quoted 4 lines

The series adds the initial ZTE VOU display controller DRM/KMS driver. There are still some features to be added, like overlay plane, scaling, and more output devices support. But it's already useful with dual CRTCs and HDMI display working.

After a few rounds of reviewing (thanks to all reviewers), it seems that the series is ready for merging, I guess? If so, could you suggest how we proceed? I can prepare a pull request if you like. Thanks.

Yes at this stage a pull request is probably a good idea.

Dave.

Quoted 28 lines

Shawn

Quoted 25 lines

Changes for v4:
- Move the hardware setup done in zx_hdmi_hw_init() and clock enable into .enable hook of drm_encoder_helper_funcs.
- Compare pipe to crtc->index instead of using our own index counter.
- Save the pipe check in zx_vou_enable[disable]_vblank by putting frame interrupt bit into zx_crtc_bits.
- Use DRM_DEV_* for log messages instead of old dev_* functions
- Return directly in case of -ETIMEDOUT in zx_hdmi_i2c_read to simplify the code for error condition.
- Shuffle things around to make the crtc and plane state check in zx_gl_plane_atomic_check a bit clearer
- Move hardware register definitions into headers instead of disturbing C file reading.
- Save the call to drm_connector_unregister(), so that drm_connector_cleanup can directly be used as drm_connector_funcs .destroy hook.
- Move vblank notification from .atomic_begin hook to .atomic_flush, so that vblank event is sent to user space after planes are committed rather than before.

Changes for v3:
- Rebase to v4.9-rc1
- Update bindings doc to use 'ranges' for address translation between parent and child devices.
- Call drm_dev_register() last in bind function and

drm_dev_unregister()

Quoted 33 lines
Quoted 33 lines

first in unbind, so that drm_connector_regiser() can be saved from HDMI driver.
- Instead of using open-coded drm_do_get_edid(), add an I2C adapter for HDMI DDC read and use drm_get_edid().
- Improve the plane .atomic_check implementation by calling helper function drm_plane_helper_check_state().
- Rename zx_crtc.c to zx_vou.c to avoid the confusion that the file implements crtc instance.
- Store vou pointer in zx_crtc, so that we do not need to embed the pointer in zx_drm_private.
- Create zx_readl/zx_writel/zx_writel_mask for register access.
- Define a few macro helpers to ease the register bit setting, like SYNC_WIDE, BACK_PORCH and FRONT_PORCH.
- Define main/aux channel specific register offset and bits in zx_crtc to save the use of is_main check
- Sort include headers alphabetically
- Removing encoder pointer out of the structure and constify struct vou_inf
- Add log message for error conditions
- Make the function calls in teardown path asymmetrical
- A few coding style improvements like defining macro for sub-module address and changing code to save indentation level
- Add a MAINTAINERS entry for ZTE ZX DRM driver

Changes for v2:
- Change device tree bindings to kill the virtual display-subsystem node make VOU the parent node.

Shawn Guo (3):
dt-bindings: add bindings doc for ZTE VOU display controller
drm: zte: add initial vou drm driver
MAINTAINERS: add an entry for ZTE ZX DRM driver

Quoted 9 lines
Quoted 9 lines
 .../devicetree/bindings/display/zte,vou.txt        |  84 +++
 MAINTAINERS                                        |   7 +
 drivers/gpu/drm/Kconfig                            |   2 +
 drivers/gpu/drm/Makefile                           |   1 +
 drivers/gpu/drm/zte/Kconfig                        |   8 +
 drivers/gpu/drm/zte/Makefile                       |   7 +
 drivers/gpu/drm/zte/zx_drm_drv.c                   | 267 +++++++++
 drivers/gpu/drm/zte/zx_drm_drv.h                   |  36 ++
 drivers/gpu/drm/zte/zx_hdmi.c                      | 624

+++++++++++++++++++

Quoted 5 lines
Quoted 5 lines
 drivers/gpu/drm/zte/zx_hdmi_regs.h                 |  56 ++
 drivers/gpu/drm/zte/zx_plane.c                     | 299 ++++++++++
 drivers/gpu/drm/zte/zx_plane.h                     |  26 +
 drivers/gpu/drm/zte/zx_plane_regs.h                |  91 +++
 drivers/gpu/drm/zte/zx_vou.c                       | 661

+++++++++++++++++++++

Quoted 4 lines
Quoted 4 lines
 drivers/gpu/drm/zte/zx_vou.h                       |  46 ++
 drivers/gpu/drm/zte/zx_vou_regs.h                  | 157 +++++
 16 files changed, 2372 insertions(+)
 create mode 100644

Documentation/devicetree/bindings/display/zte,vou.txt

Quoted 13 lines
Quoted 13 lines
 create mode 100644 drivers/gpu/drm/zte/Kconfig
 create mode 100644 drivers/gpu/drm/zte/Makefile
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.c
 create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.h
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi.c
 create mode 100644 drivers/gpu/drm/zte/zx_hdmi_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane.c
 create mode 100644 drivers/gpu/drm/zte/zx_plane.h
 create mode 100644 drivers/gpu/drm/zte/zx_plane_regs.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou.c
 create mode 100644 drivers/gpu/drm/zte/zx_vou.h
 create mode 100644 drivers/gpu/drm/zte/zx_vou_regs.h
Quoted 7 lines
Quoted 3 lines

--
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel