Skip to contentSkip to conversation

video: add ChipWealth CH13726A AMOLED panel driver

PATCH New Advait Dhamorikar 1 participant 1 message Oct 24 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 video: add ChipWealth CH13726A AMOLED panel driver

Add support for AMOLED panels based on the ChipWealth CH13726A MIPI DSI display driver IC.

The driver configures the MIPI DSI interface for 4 data lanes in RGB888 video mode, performs the panel reset sequence, sends the vendor-specific initialization commands required by the controller, and enables the panel using the standard MIPI DCS Sleep Out and Display On commands.

This driver is based on an earlier implementation by Pratham Malaviya.

---

v1 -> v2
- Expand CC list based on get_maintainer.pl output.

v2 -> v3
Link to v2: https://lore.kernel.org/all/[email protected]/
- Add regulator support using the U-Boot regulator framework.
- Minor code cleanup.

v3 -> v4
Link to v3: https://lore.kernel.org/all/[email protected]/
- Remove unused struct variables

v4 -> v5
Link to v4: https://lore.kernel.org/all/[email protected]/
- Invert GPIO toggle polarity to match the recently merged upstream Linux driver
- Use MIPI DCS command enum members instead of DSI command values
- Update copyright info and Pratham's mail address

v5 -> v6
Link to v5: https://lore.kernel.org/all/[email protected]/
- Add missing header for regulators
- Rebased on latest main and fixed conflicts

 drivers/video/Kconfig               |   8 +
 drivers/video/Makefile              |   1 +
 drivers/video/chipwealth-ch13726a.c | 221 ++++++++++++++++++++++++++++
 3 files changed, 230 insertions(+)
 create mode 100644 drivers/video/chipwealth-ch13726a.c
drivers/video/Kconfig +8 -0
index de0197b21cd..f7a66aa3d2a 100644
@@ -790,6 +790,14 @@ config VIDEO_LCD_SPI_MISO
 	  option takes a string in the format understood by 'sunxi_name_to_gpio'
 	  function, e.g. PH1 for pin 1 of port H.
 
+config VIDEO_PANEL_CHIPWEALTH_CH13726A
+	bool "ChipWealth CH13726A AMOLED panel support"
+	depends on PANEL && BACKLIGHT
+	select VIDEO_MIPI_DSI
+	help
+	  Say Y here if you want to enable support for AMOLED panels
+	  based on the ChipWealth CH13726A MIPI DSI display driver IC.
+
 source "drivers/video/mediatek/Kconfig"
 source "drivers/video/meson/Kconfig"
 
drivers/video/Makefile +1 -0
index 7a7b54e6b53..d97c2181968 100644
@@ -86,6 +86,7 @@ obj-$(CONFIG_VIDEO_MVEBU) += mvebu_lcd.o
 obj-$(CONFIG_VIDEO_MXS) += mxsfb.o videomodes.o
 obj-$(CONFIG_VIDEO_NX) += nexell_display.o videomodes.o nexell/
 obj-$(CONFIG_VIDEO_OMAP3) += omap3_dss.o
+obj-$(CONFIG_VIDEO_PANEL_CHIPWEALTH_CH13726A) += chipwealth-ch13726a.o
 obj-$(CONFIG_VIDEO_DSI_HOST_SANDBOX) += sandbox_dsi_host.o
 obj-$(CONFIG_VIDEO_SANDBOX_SDL) += sandbox_sdl.o
 obj-$(CONFIG_VIDEO_SIMPLE) += simplefb.o
drivers/video/chipwealth-ch13726a.c new file +221 -0

221 lines not on this page · raw message

Signature · 1 line
2.56.0