Skip to contentSkip to conversation

xilinx: video: add skeleton drivers for zynqmp DP

PATCH Applied Michal Simek 2 participants 4 messages Feb 23, 2022 – Mar 9, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover xilinx: video: add skeleton drivers for zynqmp DP

Hi,

add skeleton drivers for display port and display port DMA. The purpose of having sketon drivers is to use the whole power domain infrastructure is used. Without driver power domain driver is not asking for enabling power for these devices. That's why having simple driver is necessary because OS doesn't need to have a way to ask for enabling power for these devices.

Thanks,
Michal

Michal Simek (2):
video: Add skeleton driver for ZynqMP Display port driver
dma: xilinx: Add Display Port DMA driver

 drivers/dma/Kconfig          |  7 ++++
 drivers/dma/Makefile         |  1 +
 drivers/dma/xilinx_dpdma.c   | 43 +++++++++++++++++++++++
 drivers/video/Kconfig        |  8 +++++
 drivers/video/Makefile       |  1 +
 drivers/video/zynqmp_dpsub.c | 66 ++++++++++++++++++++++++++++++++++++
 6 files changed, 126 insertions(+)
 create mode 100644 drivers/dma/xilinx_dpdma.c
 create mode 100644 drivers/video/zynqmp_dpsub.c
Signature · 1 line
2.35.1
#1 lore raw

PATCH 1/2 video: Add skeleton driver for ZynqMP Display port driver

The reason for this driver is to use call power management driver to enable it in PMUFW. There is missing functionality now but should be added in near future.

---

 drivers/video/Kconfig        |  8 +++++
 drivers/video/Makefile       |  1 +
 drivers/video/zynqmp_dpsub.c | 66 ++++++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+)
 create mode 100644 drivers/video/zynqmp_dpsub.c
drivers/video/Kconfig +8 -0
index ff8e11f6489d..646fec70262c 100644
@@ -680,6 +680,14 @@ config VIDEO_SEPS525
 	  Enable support for the Syncoam PM-OLED display driver (RGB 160x128).
 	  Currently driver is supporting only SPI interface.
 
+config VIDEO_ZYNQMP_DPSUB
+	bool "Enable video support for ZynqMP Display Port"
+	depends on DM_VIDEO && ZYNQMP_POWER_DOMAIN
+	help
+	  Enable support for Xilinx ZynqMP Display Port. Currently this file
+	  is used as placeholder for driver. The main reason is to record
+	  compatible string and calling power domain driver.
+
 source "drivers/video/nexell/Kconfig"
 
 config VIDEO
drivers/video/Makefile +1 -0
index 4038395b1289..2530791eb43a 100644
@@ -74,6 +74,7 @@ obj-$(CONFIG_VIDEO_TEGRA20) += tegra.o
 obj-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
 obj-$(CONFIG_VIDEO_VESA) += vesa.o
 obj-$(CONFIG_VIDEO_SEPS525) += seps525.o
+obj-$(CONFIG_VIDEO_ZYNQMP_DPSUB) += zynqmp_dpsub.o
 
 obj-y += bridge/
 obj-y += sunxi/
drivers/video/zynqmp_dpsub.c new file +66 -0

66 lines not on this page · raw message

Signature · 1 line
2.35.1
#2 lore raw

PATCH 2/2 dma: xilinx: Add Display Port DMA driver

In reply to Michal Simek

Display Port (DP) has own dma driver that's why add this skeleton driver only for handling power domain setting and send configuration object to PMUFW to enable it.

---

 drivers/dma/Kconfig        |  7 +++++++
 drivers/dma/Makefile       |  1 +
 drivers/dma/xilinx_dpdma.c | 43 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+)
 create mode 100644 drivers/dma/xilinx_dpdma.c
drivers/dma/Kconfig +7 -0
index 9cacea88d0cb..0af546042119 100644
@@ -68,6 +68,13 @@ config APBH_DMA
 	help
 	  Enable APBH DMA driver.
 
+config XILINX_DPDMA
+	bool "Enable ZynqMP Display Port DMA driver"
+	depends on DMA && ZYNQMP_POWER_DOMAIN
+	help
+	  Enable support for Xilinx ZynqMP Display DMA driver. Currently
+	  this file is used as placeholder for driver. The main reason is
+	  to record compatible string and calling power domain driver.
 
 if APBH_DMA
 config APBH_DMA_BURST
drivers/dma/Makefile +1 -0
index afab324461b9..a75572fe5dec 100644
@@ -13,5 +13,6 @@ obj-$(CONFIG_SANDBOX_DMA) += sandbox-dma-test.o
 obj-$(CONFIG_TI_KSNAV) += keystone_nav.o keystone_nav_cfg.o
 obj-$(CONFIG_TI_EDMA3) += ti-edma3.o
 obj-$(CONFIG_DMA_LPC32XX) += lpc32xx_dma.o
+obj-$(CONFIG_XILINX_DPDMA) += xilinx_dpdma.o
 
 obj-y += ti/
drivers/dma/xilinx_dpdma.c new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
2.35.1
Applied
#3 lore raw
In reply to Michal Simek

st 23. 2. 2022 v 15:52 odesílatel Michal Simek <[email protected]> napsal:

Quoted 27 lines

Hi,

add skeleton drivers for display port and display port DMA. The purpose of having sketon drivers is to use the whole power domain infrastructure is used. Without driver power domain driver is not asking for enabling power for these devices. That's why having simple driver is necessary because OS doesn't need to have a way to ask for enabling power for these devices.

Thanks,
Michal

Michal Simek (2):
video: Add skeleton driver for ZynqMP Display port driver
dma: xilinx: Add Display Port DMA driver

 drivers/dma/Kconfig          |  7 ++++
 drivers/dma/Makefile         |  1 +
 drivers/dma/xilinx_dpdma.c   | 43 +++++++++++++++++++++++
 drivers/video/Kconfig        |  8 +++++
 drivers/video/Makefile       |  1 +
 drivers/video/zynqmp_dpsub.c | 66 ++++++++++++++++++++++++++++++++++++
 6 files changed, 126 insertions(+)
 create mode 100644 drivers/dma/xilinx_dpdma.c
 create mode 100644 drivers/video/zynqmp_dpsub.c
Quoted 3 lines

--
2.35.1

applied.
M

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs