video: add ChipWealth CH13726A AMOLED panel driver
PATCH RESEND v5 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
drivers/video/Kconfig | 8 + drivers/video/Makefile | 1 + drivers/video/chipwealth-ch13726a.c | 220 ++++++++++++++++++++++++++++ 3 files changed, 229 insertions(+) create mode 100644 drivers/video/chipwealth-ch13726a.c
drivers/video/Kconfig +8 -0
@@ -762,6 +762,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/meson/Kconfig" config VIDEO_MVEBU
drivers/video/Makefile +1 -0
@@ -77,6 +77,7 @@ obj-$(CONFIG_VIDEO_LCD_SSD2828) += ssd2828.o obj-$(CONFIG_VIDEO_LCD_TDO_TL070WSH30) += tdo-tl070wsh30.o obj-$(CONFIG_VIDEO_LCD_SONY_L4F00430T01) += sony-l4f00430t01.o obj-$(CONFIG_VIDEO_LCD_SAMSUNG_S6E63M0) += samsung-s6e63m0.o +obj-$(CONFIG_VIDEO_PANEL_CHIPWEALTH_CH13726A) += chipwealth-ch13726a.o obj-$(CONFIG_VIDEO_MCDE_SIMPLE) += mcde_simple.o obj-${CONFIG_VIDEO_MESON} += meson/ obj-${CONFIG_VIDEO_MIPI_DSI} += mipi_dsi.o
drivers/video/chipwealth-ch13726a.c new file +220 -0
220 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 11 lines · Advait Dhamorikar
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.
Signed-off-by Advait Dhamorikar <[email protected]>
Sorry for the delay on this. Please rebase to current main and make sure
this compiles when built for sandbox, it does not currently:drivers/video/chipwealth-ch13726a.c: In function 'ch13726a_panel_of_to_plat':drivers/video/chipwealth-ch13726a.c:153:23: error: implicit declaration of function 'device_get_supply_regulator' [-Werror=implicit-function-declaration]
153 | ret = device_get_supply_regulator(dev, "vdd-supply",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Signature · 1 line
Tom