Skip to contentSkip to conversation

Add video drivers for endeavoru and p880/p895

PATCH Superseded Svyatoslav Ryhel 1 participant 7 messages Apr 20, 2023

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add video drivers for endeavoru and p880/p895

This patchset contains mostly generic drivers used by endeavoru and p895/p880 (which are currently in the process of merging). Drivers do not contain any device specific parts and mostly can be used by any device with supported hardware.

LG P880\P895 related drivers:
- lm3533 backlight driver implements only backlight part for bank A. Unfortunately, I can not test and set up bank B since my device does not use it.
- Solomon ssd2825 bridge is fully implemented for 3wire-9bit mode. It uses SPI interface and is wrapped into panel DM for wider compatibility.
- 2 DSI panels which use Renesas R61307 and R69328 controllers are fully implemented as well.

HTC One X (endeavoru) related drivers:
- backlight driver which uses a PWM source provided by the display controller.
- endeavoru uses panels made by 3 different vendors but the command sequence seems to be generally the same. Endeavoru panel driver is set to support all 3 variants of this panel.

---

Changes from v1:
- used lower-case hex for command sequences
- ssd2825 switched to dm_spi_xfer
- used log_* instead of printf
- tweaked lm3533 help description

---

Svyatoslav Ryhel (6):
video: add lm3533 backlight driver
video: bridge: add Solomon SSD2825 DSI/LVDS driver
video: panel: add Renesas R61307 MIPI DSI panel driver
video: panel: add Renesas R69328 MIPI DSI panel driver
video: tegra: add DC based PWM backlight driver
video: panel: add generic endeavoru panel

 drivers/video/Kconfig                       |  38 ++
 drivers/video/Makefile                      |   4 +
 drivers/video/bridge/Kconfig                |   7 +
 drivers/video/bridge/Makefile               |   1 +
 drivers/video/bridge/ssd2825.c              | 520 ++++++++++++++++++++
 drivers/video/endeavoru-panel.c             | 252 ++++++++++
 drivers/video/lm3533_backlight.c            | 134 +++++
 drivers/video/renesas-r61307.c              | 296 +++++++++++
 drivers/video/renesas-r69328.c              | 232 +++++++++
 drivers/video/tegra20/Kconfig               |   7 +
 drivers/video/tegra20/Makefile              |   1 +
 drivers/video/tegra20/tegra-pwm-backlight.c | 155 ++++++
 12 files changed, 1647 insertions(+)
 create mode 100644 drivers/video/bridge/ssd2825.c
 create mode 100644 drivers/video/endeavoru-panel.c
 create mode 100644 drivers/video/lm3533_backlight.c
 create mode 100644 drivers/video/renesas-r61307.c
 create mode 100644 drivers/video/renesas-r69328.c
 create mode 100644 drivers/video/tegra20/tegra-pwm-backlight.c
Signature · 1 line
2.37.2
#1 lore raw

PATCH v2 1/6 video: add lm3533 backlight driver

This is basic lm3533 driver only with bank A and backlight cell support.

---
 drivers/video/Kconfig            |   9 +++
 drivers/video/Makefile           |   1 +
 drivers/video/lm3533_backlight.c | 134 +++++++++++++++++++++++++++++++
 3 files changed, 144 insertions(+)
 create mode 100644 drivers/video/lm3533_backlight.c
drivers/video/Kconfig +9 -0
index 334d64c948..60048ad86a 100644
@@ -606,6 +606,15 @@ config ATMEL_HLCD
 	help
 	   HLCDC supports video output to an attached LCD panel.
 
+config BACKLIGHT_LM3533
+	bool "Backlight Driver for LM3533"
+	depends on BACKLIGHT
+	select DM_I2C
+	help
+	  Say Y to enable the backlight driver for National Semiconductor / TI
+	  LM3533 Lighting Power chip. Only Bank A is supported as for now.
+	  Supported backlight level range is from 2 to 255 with step of 1.
+
 source "drivers/video/ti/Kconfig"
 
 source "drivers/video/exynos/Kconfig"
drivers/video/Makefile +1 -0
index 4d75771745..05fb063105 100644
@@ -28,6 +28,7 @@ obj-$(CONFIG_VIDEO_LOGO) += u_boot_logo.o
 
 endif
 
+obj-$(CONFIG_BACKLIGHT_LM3533) += lm3533_backlight.o
 obj-${CONFIG_EXYNOS_FB} += exynos/
 obj-${CONFIG_VIDEO_ROCKCHIP} += rockchip/
 obj-${CONFIG_VIDEO_STM32} += stm32/
drivers/video/lm3533_backlight.c new file +134 -0

134 lines not on this page · raw message

Signature · 1 line
2.37.2
#2 lore raw

PATCH v2 2/6 video: bridge: add Solomon SSD2825 DSI/LVDS driver

In reply to Svyatoslav Ryhel

SSD2825 is an innovative and cost-effective MIPI Bridge Chip solution targeting high resolution smartphones. It can convert 24bit RGB interface into 4-lane MIPI-DSI interface to drive extremely high resolution display modules of up to 800 x 1366, while supporting AMOLED, a-si LCD or LTPS advanced panel technologies for smartphone applications.

Bridge is wrapped in panel uClass model for wider compatibility.

---
 drivers/video/bridge/Kconfig   |   7 +
 drivers/video/bridge/Makefile  |   1 +
 drivers/video/bridge/ssd2825.c | 520 +++++++++++++++++++++++++++++++++
 3 files changed, 528 insertions(+)
 create mode 100644 drivers/video/bridge/ssd2825.c
drivers/video/bridge/Kconfig +7 -0
index 765f7380b8..2311ca2d1a 100644
@@ -33,3 +33,10 @@ config VIDEO_BRIDGE_ANALOGIX_ANX6345
 	help
 	 The Analogix ANX6345 is RGB-to-DP converter. It enables an eDP LCD
 	 panel to be connected to an parallel LCD interface.
+
+config VIDEO_BRIDGE_SOLOMON_SSD2825
+	bool "Solomon SSD2825 bridge driver"
+	depends on PANEL && DM_GPIO
+	select VIDEO_MIPI_DSI
+	help
+	  Solomon SSD2824 SPI RGB-DSI bridge driver wrapped into panel uClass.
drivers/video/bridge/Makefile +1 -0
index 45e54ac176..22625c8bc6 100644
@@ -7,3 +7,4 @@ obj-$(CONFIG_VIDEO_BRIDGE) += video-bridge-uclass.o
 obj-$(CONFIG_VIDEO_BRIDGE_PARADE_PS862X) += ps862x.o
 obj-$(CONFIG_VIDEO_BRIDGE_NXP_PTN3460) += ptn3460.o
 obj-$(CONFIG_VIDEO_BRIDGE_ANALOGIX_ANX6345) += anx6345.o
+obj-$(CONFIG_VIDEO_BRIDGE_SOLOMON_SSD2825) += ssd2825.o
drivers/video/bridge/ssd2825.c new file +520 -0

520 lines not on this page · raw message

Signature · 1 line
2.37.2
#3 lore raw

PATCH v2 3/6 video: panel: add Renesas R61307 MIPI DSI panel driver

In reply to Svyatoslav Ryhel

R61307 is liquid crystal driver for high-definition amorphous silicon (a-Si) panels and is ideal for tablets and smartphones.

Supported compatibles are:
- koe,tx13d100vm0eaa
- hitachi,tx13d100vm0eaa

---
 drivers/video/Kconfig          |   9 +
 drivers/video/Makefile         |   1 +
 drivers/video/renesas-r61307.c | 296 +++++++++++++++++++++++++++++++++
 3 files changed, 306 insertions(+)
 create mode 100644 drivers/video/renesas-r61307.c
drivers/video/Kconfig +9 -0
index 60048ad86a..44f21be166 100644
@@ -480,6 +480,15 @@ config VIDEO_LCD_RAYDIUM_RM68200
 	Say Y here if you want to enable support for Raydium RM68200
 	720x1280 DSI video mode panel.
 
+config VIDEO_LCD_RENESAS_R61307
+	tristate "Renesas R61307 DSI video mode panel"
+	depends on PANEL && BACKLIGHT
+	select VIDEO_MIPI_DSI
+	help
+	  Say Y here if you want to enable support for KOE tx13d100vm0eaa
+	  IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
+	  resolution and uses 24 bit RGB per pixel.
+
 config VIDEO_LCD_SSD2828
 	bool "SSD2828 bridge chip"
 	---help---
drivers/video/Makefile +1 -0
index 05fb063105..9ab5de8858 100644
@@ -56,6 +56,7 @@ obj-$(CONFIG_VIDEO_LCD_ANX9804) += anx9804.o
 obj-$(CONFIG_VIDEO_LCD_HITACHI_TX18D42VM) += hitachi_tx18d42vm_lcd.o
 obj-$(CONFIG_VIDEO_LCD_ORISETECH_OTM8009A) += orisetech_otm8009a.o
 obj-$(CONFIG_VIDEO_LCD_RAYDIUM_RM68200) += raydium-rm68200.o
+obj-$(CONFIG_VIDEO_LCD_RENESAS_R61307) += renesas-r61307.o
 obj-$(CONFIG_VIDEO_LCD_SSD2828) += ssd2828.o
 obj-$(CONFIG_VIDEO_LCD_TDO_TL070WSH30) += tdo-tl070wsh30.o
 obj-$(CONFIG_VIDEO_MCDE_SIMPLE) += mcde_simple.o
drivers/video/renesas-r61307.c new file +296 -0

296 lines not on this page · raw message

Signature · 1 line
2.37.2
#4 lore raw

PATCH v2 4/6 video: panel: add Renesas R69328 MIPI DSI panel driver

In reply to Svyatoslav Ryhel

Driver adds support for panels with Renesas R69328 IC

Currently supported compatible is:
- jdi,dx12d100vm0eaa

---
 drivers/video/Kconfig          |   9 ++
 drivers/video/Makefile         |   1 +
 drivers/video/renesas-r69328.c | 232 +++++++++++++++++++++++++++++++++
 3 files changed, 242 insertions(+)
 create mode 100644 drivers/video/renesas-r69328.c
drivers/video/Kconfig +9 -0
index 44f21be166..f5e3c713e5 100644
@@ -489,6 +489,15 @@ config VIDEO_LCD_RENESAS_R61307
 	  IPS-LCD module with Renesas R69328 IC. The panel has a 1024x768
 	  resolution and uses 24 bit RGB per pixel.
 
+config VIDEO_LCD_RENESAS_R69328
+	tristate "Renesas R69328 720x1280 DSI video mode panel"
+	depends on PANEL && BACKLIGHT
+	select VIDEO_MIPI_DSI
+	help
+	  Say Y here if you want to enable support for JDI dx12d100vm0eaa
+	  IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280
+	  resolution and uses 24 bit RGB per pixel.
+
 config VIDEO_LCD_SSD2828
 	bool "SSD2828 bridge chip"
 	---help---
drivers/video/Makefile +1 -0
index 9ab5de8858..cddfc8fd33 100644
@@ -57,6 +57,7 @@ obj-$(CONFIG_VIDEO_LCD_HITACHI_TX18D42VM) += hitachi_tx18d42vm_lcd.o
 obj-$(CONFIG_VIDEO_LCD_ORISETECH_OTM8009A) += orisetech_otm8009a.o
 obj-$(CONFIG_VIDEO_LCD_RAYDIUM_RM68200) += raydium-rm68200.o
 obj-$(CONFIG_VIDEO_LCD_RENESAS_R61307) += renesas-r61307.o
+obj-$(CONFIG_VIDEO_LCD_RENESAS_R69328) += renesas-r69328.o
 obj-$(CONFIG_VIDEO_LCD_SSD2828) += ssd2828.o
 obj-$(CONFIG_VIDEO_LCD_TDO_TL070WSH30) += tdo-tl070wsh30.o
 obj-$(CONFIG_VIDEO_MCDE_SIMPLE) += mcde_simple.o
drivers/video/renesas-r69328.c new file +232 -0

232 lines not on this page · raw message

Signature · 1 line
2.37.2
#5 lore raw

PATCH v2 5/6 video: tegra: add DC based PWM backlight driver

In reply to Svyatoslav Ryhel

DC based PWM backlight is found on some T20 and T30 devices (HTC One X). This backlight is controlled by Tegra DC and is adjustable by the DC PM0 or PM1 signal.

---
 drivers/video/tegra20/Kconfig               |   7 +
 drivers/video/tegra20/Makefile              |   1 +
 drivers/video/tegra20/tegra-pwm-backlight.c | 155 ++++++++++++++++++++
 3 files changed, 163 insertions(+)
 create mode 100644 drivers/video/tegra20/tegra-pwm-backlight.c
drivers/video/tegra20/Kconfig +7 -0
index 5b1dfbfbbe..f5c4843e11 100644
@@ -15,3 +15,10 @@ config VIDEO_DSI_TEGRA30
 	help
 	   T30 has native support for DSI panels. This option enables support
 	   for such panels which can be used on endeavoru and tf600t.
+
+config TEGRA_BACKLIGHT_PWM
+	bool "Enable Tegra DC PWM backlight support"
+	depends on BACKLIGHT
+	select VIDEO_TEGRA20
+	help
+	   Tegra DC dependent backlight.
drivers/video/tegra20/Makefile +1 -0
index e82ee96962..f0b534c579 100644
@@ -2,3 +2,4 @@
 
 obj-$(CONFIG_VIDEO_TEGRA20) += tegra-dc.o
 obj-$(CONFIG_VIDEO_DSI_TEGRA30) += tegra-dsi.o mipi-phy.o
+obj-$(CONFIG_TEGRA_BACKLIGHT_PWM) += tegra-pwm-backlight.o
drivers/video/tegra20/tegra-pwm-backlight.c new file +155 -0

155 lines not on this page · raw message

Signature · 1 line
2.37.2
#6 lore raw

PATCH v2 6/6 video: panel: add generic endeavoru panel

In reply to Svyatoslav Ryhel

Family of panels used by HTC in One X. Though were used variants at least from 3 vendors, this driver provides generic support for all of them.

---
 drivers/video/Kconfig           |  11 ++
 drivers/video/Makefile          |   1 +
 drivers/video/endeavoru-panel.c | 252 ++++++++++++++++++++++++++++++++
 3 files changed, 264 insertions(+)
 create mode 100644 drivers/video/endeavoru-panel.c
drivers/video/Kconfig +11 -0
index f5e3c713e5..86603342a3 100644
@@ -466,6 +466,17 @@ config VIDEO_BCM2835
 	  that same resolution (or as near as possible) and 32bpp depth, so
 	  that U-Boot can access it with full colour depth.
 
+config VIDEO_LCD_ENDEAVORU
+	tristate "Endeavoru 720x1280 DSI video mode panel"
+	depends on PANEL && BACKLIGHT
+	select VIDEO_MIPI_DSI
+	help
+	  Say Y here if you want to enable support for the IPS-LCD panel
+	  module for HTC One X. Driver supports a family of panels,
+	  made at least by 3 vendors (Sharp, Sony and AUO), but set up
+	  using the same DSI command sequence. The panel has a 720x1280
+	  resolution and uses 24 bit RGB per pixel.
+
 config VIDEO_LCD_ORISETECH_OTM8009A
 	bool "OTM8009A DSI LCD panel support"
 	select VIDEO_MIPI_DSI
drivers/video/Makefile +1 -0
index cddfc8fd33..4aff7771a8 100644
@@ -53,6 +53,7 @@ obj-$(CONFIG_VIDEO_EFI) += efi.o
 obj-$(CONFIG_VIDEO_IPUV3) += imx/
 obj-$(CONFIG_VIDEO_IVYBRIDGE_IGD) += ivybridge_igd.o
 obj-$(CONFIG_VIDEO_LCD_ANX9804) += anx9804.o
+obj-$(CONFIG_VIDEO_LCD_ENDEAVORU) += endeavoru-panel.o
 obj-$(CONFIG_VIDEO_LCD_HITACHI_TX18D42VM) += hitachi_tx18d42vm_lcd.o
 obj-$(CONFIG_VIDEO_LCD_ORISETECH_OTM8009A) += orisetech_otm8009a.o
 obj-$(CONFIG_VIDEO_LCD_RAYDIUM_RM68200) += raydium-rm68200.o
drivers/video/endeavoru-panel.c new file +252 -0

252 lines not on this page · raw message

Signature · 1 line
2.37.2