Skip to contentSkip to conversation

video: Add drivers for Samsung's Tegra phones

PATCH In review Ion Agorria 2 participants 11 messages Jul 31, 2025 – Aug 2, 2025

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

cover video: Add drivers for Samsung's Tegra phones

This patchset adds support for panels and bridge used in samsung-n1 and samsung-bose devices powered by Tegra 2.

Ion Agorria (4):
video: panel: add Sony L4F00430T01 panel driver
video: panel: add Samsung S6E63M0 panel driver
video: bridge: add Samsung CMC623 image converter driver
video: backlight: add Samsung CMC623 backlight PWM driver

Svyatoslav Ryhel (1):
video: tegra: parametrize PCLK and DE polarity

 arch/arm/include/asm/arch-tegra/dc.h |   3 +
 drivers/video/Kconfig                |  24 ++
 drivers/video/Makefile               |   3 +
 drivers/video/bridge/Kconfig         |   8 +
 drivers/video/bridge/Makefile        |   1 +
 drivers/video/bridge/cmc623.c        | 234 ++++++++++++++++
 drivers/video/cmc623_backlight.c     | 124 +++++++++
 drivers/video/samsung-s6e63m0.c      | 393 +++++++++++++++++++++++++++
 drivers/video/sony-l4f00430t01.c     | 210 ++++++++++++++
 drivers/video/tegra/dc.c             |  16 ++
 10 files changed, 1016 insertions(+)
 create mode 100644 drivers/video/bridge/cmc623.c
 create mode 100644 drivers/video/cmc623_backlight.c
 create mode 100644 drivers/video/samsung-s6e63m0.c
 create mode 100644 drivers/video/sony-l4f00430t01.c
Signature · 1 line
2.50.0
#1 lore raw

PATCH 1/5 video: tegra: parametrize PCLK and DE polarity

From: Svyatoslav Ryhel <[email protected]>

Configure pixel clock and data enable polarity according to panel flags.

---
 arch/arm/include/asm/arch-tegra/dc.h |  3 +++
 drivers/video/tegra/dc.c             | 16 ++++++++++++++++
 2 files changed, 19 insertions(+)
arch/arm/include/asm/arch-tegra/dc.h +3 -0
index ab12cc9c7d0..22f8f977cc6 100644
@@ -448,6 +448,9 @@ enum win_color_depth_id {
 #define LVS_OUTPUT_POLARITY_LOW		BIT(28)
 #define LSC0_OUTPUT_POLARITY_LOW	BIT(24)
 
+/* DC_COM_PIN_OUTPUT_POLARITY3 0x309 */
+#define LSPI_OUTPUT_POLARITY_LOW	BIT(8)
+
 /* DC_COM_PIN_OUTPUT_SELECT6 0x31a */
 #define LDC_OUTPUT_SELECT_V_PULSE1	BIT(14) /* 100b */
 
drivers/video/tegra/dc.c +16 -0
index f0e3d2c993f..ced49718834 100644
@@ -238,8 +238,24 @@ static void rgb_enable(struct tegra_lcd_priv *priv)
 	else
 		value &= ~LVS_OUTPUT_POLARITY_LOW;
 
+	/* configure pixel data signal polarity */
+	if (dt->flags & DISPLAY_FLAGS_PIXDATA_POSEDGE)
+		value &= ~LSC0_OUTPUT_POLARITY_LOW;
+	else
+		value |= LSC0_OUTPUT_POLARITY_LOW;
+
 	writel(value, &com->pin_output_polarity[1]);
 
+	/* configure data enable signal polarity */
+	value = readl(&com->pin_output_polarity[3]);
+
+	if (dt->flags & DISPLAY_FLAGS_DE_LOW)
+		value |= LSPI_OUTPUT_POLARITY_LOW;
+	else
+		value &= ~LSPI_OUTPUT_POLARITY_LOW;
+
+	writel(value, &com->pin_output_polarity[3]);
+
 	for (i = 0; i < PIN_OUTPUT_SEL_COUNT; i++)
 		writel(rgb_sel_tab[i], &com->pin_output_sel[i]);
 }
Signature · 1 line
2.50.0
#2 lore raw

PATCH 2/5 video: panel: add Sony L4F00430T01 panel driver

In reply to Ion Agorria

Sony L4F00430T01 LCD module is found in Samsung Galaxy R. The panel has a WVGA resolution (480x800) and is setup over SPI, video data comes from RGB.

---
 drivers/video/Kconfig            |   9 ++
 drivers/video/Makefile           |   1 +
 drivers/video/sony-l4f00430t01.c | 210 +++++++++++++++++++++++++++++++
 3 files changed, 220 insertions(+)
 create mode 100644 drivers/video/sony-l4f00430t01.c
drivers/video/Kconfig +9 -0
index dfe4b3b8a02..1e405e743ae 100644
@@ -691,6 +691,15 @@ config VIDEO_LCD_HITACHI_TX18D42VM
 	lcd controller which needs to be initialized over SPI, once that is
 	done they work like a regular LVDS panel.
 
+config VIDEO_LCD_SONY_L4F00430T01
+	tristate "Sony L4F00430T01 480x800 LCD panel support"
+	depends on PANEL
+	help
+	  Say Y here if you want to enable support for Sony L4F00430T01
+	  LCD module found in Samsung Galaxy R. The panel has a
+	  WVGA resolution (480x800) and is setup over SPI, video
+	  data comes from RGB.
+
 config VIDEO_LCD_SPI_CS
 	string "SPI CS pin for LCD related config job"
 	depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
drivers/video/Makefile +1 -0
index ebe4a3961fc..2151353551d 100644
@@ -74,6 +74,7 @@ obj-$(CONFIG_VIDEO_LCD_SHARP_LQ079L1SX01) += sharp-lq079l1sx01.o
 obj-$(CONFIG_VIDEO_LCD_SHARP_LQ101R1SX01) += sharp-lq101r1sx01.o
 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_MCDE_SIMPLE) += mcde_simple.o
 obj-${CONFIG_VIDEO_MESON} += meson/
 obj-${CONFIG_VIDEO_MIPI_DSI} += mipi_dsi.o
drivers/video/sony-l4f00430t01.c new file +210 -0

210 lines not on this page · raw message

Signature · 1 line
2.50.0
Reviewed-by on v1 2/5
#3 lore raw

Re: [PATCH v1 2/5] video: panel: add Sony L4F00430T01 panel driver

чт, 31 лип. 2025 р. о 22:37 Ion Agorria <[email protected]> пише:

Quoted 4 lines

Sony L4F00430T01 LCD module is found in Samsung Galaxy R. The panel has a WVGA resolution (480x800) and is setup over SPI, video data comes from RGB.

Quoted 8 lines
---
 drivers/video/Kconfig            |   9 ++
 drivers/video/Makefile           |   1 +
 drivers/video/sony-l4f00430t01.c | 210 +++++++++++++++++++++++++++++++
 3 files changed, 220 insertions(+)
 create mode 100644 drivers/video/sony-l4f00430t01.c
#4 lore raw

PATCH 3/5 video: panel: add Samsung S6E63M0 panel driver

In reply to Ion Agorria

Samsung S6E63M0 controller is found in some OLED panels like one used in the Samsung Captivate Glide. Currently only DBI C panel is implemented.

---
 drivers/video/Kconfig           |   8 +
 drivers/video/Makefile          |   1 +
 drivers/video/samsung-s6e63m0.c | 393 ++++++++++++++++++++++++++++++++
 3 files changed, 402 insertions(+)
 create mode 100644 drivers/video/samsung-s6e63m0.c
drivers/video/Kconfig +8 -0
index 1e405e743ae..a02501583eb 100644
@@ -700,6 +700,14 @@ config VIDEO_LCD_SONY_L4F00430T01
 	  WVGA resolution (480x800) and is setup over SPI, video
 	  data comes from RGB.
 
+config VIDEO_LCD_SAMSUNG_S6E63M0
+	tristate "Samsung S6E63M0 controller based panel support"
+	depends on PANEL && BACKLIGHT
+	help
+	  Say Y here if you want to enable support for Samsung S6E63M0
+	  controller found in some panels like on Samsung Captivate Glide.
+	  Currently only DBI C panel is implemented.
+
 config VIDEO_LCD_SPI_CS
 	string "SPI CS pin for LCD related config job"
 	depends on VIDEO_LCD_SSD2828 || VIDEO_LCD_HITACHI_TX18D42VM
drivers/video/Makefile +1 -0
index 2151353551d..040333fb3a6 100644
@@ -75,6 +75,7 @@ obj-$(CONFIG_VIDEO_LCD_SHARP_LQ101R1SX01) += sharp-lq101r1sx01.o
 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_MCDE_SIMPLE) += mcde_simple.o
 obj-${CONFIG_VIDEO_MESON} += meson/
 obj-${CONFIG_VIDEO_MIPI_DSI} += mipi_dsi.o
drivers/video/samsung-s6e63m0.c new file +393 -0

393 lines not on this page · raw message

Signature · 1 line
2.50.0
Reviewed-by on v1 3/5
#5 lore raw

Re: [PATCH v1 3/5] video: panel: add Samsung S6E63M0 panel driver

чт, 31 лип. 2025 р. о 22:37 Ion Agorria <[email protected]> пише:

Quoted 4 lines

Samsung S6E63M0 controller is found in some OLED panels like one used in the Samsung Captivate Glide. Currently only DBI C panel is implemented.

Quoted 8 lines
---
 drivers/video/Kconfig           |   8 +
 drivers/video/Makefile          |   1 +
 drivers/video/samsung-s6e63m0.c | 393 ++++++++++++++++++++++++++++++++
 3 files changed, 402 insertions(+)
 create mode 100644 drivers/video/samsung-s6e63m0.c
#6 lore raw

PATCH 4/5 video: bridge: add Samsung CMC623 image converter driver

In reply to Ion Agorria

Add support for a Samsung CMC623 image converter chip found in several Samsung devices such as Samsung Galaxy R (I9103) and Samsung Galaxy Tab 10.1 (GT-P75xx).

---
 drivers/video/bridge/Kconfig  |   8 ++
 drivers/video/bridge/Makefile |   1 +
 drivers/video/bridge/cmc623.c | 234 ++++++++++++++++++++++++++++++++++
 3 files changed, 243 insertions(+)
 create mode 100644 drivers/video/bridge/cmc623.c
drivers/video/bridge/Kconfig +8 -0
index be53034bd3d..a48cec7a138 100644
@@ -66,3 +66,11 @@ config VIDEO_BRIDGE_LVDS_CODEC
 	help
 	  Support for transparent LVDS encoders and decoders that don't
 	  require any configuration.
+
+config VIDEO_BRIDGE_SAMSUNG_CMC623
+	bool "Samsung CMC623 Image Converter driver"
+	depends on VIDEO_BRIDGE && DM_GPIO
+	select DM_I2C
+	help
+	  Samsung CMC623 image converter chip driver.
+	  Found in several Samsung devices such as N1
drivers/video/bridge/Makefile +1 -0
index 63dc6e62c49..520f36a7a6f 100644
@@ -11,3 +11,4 @@ obj-$(CONFIG_VIDEO_BRIDGE_ANALOGIX_ANX6345) += anx6345.o
 obj-$(CONFIG_VIDEO_BRIDGE_SOLOMON_SSD2825) += ssd2825.o
 obj-$(CONFIG_VIDEO_BRIDGE_TOSHIBA_TC358768) += tc358768.o
 obj-$(CONFIG_VIDEO_BRIDGE_LVDS_CODEC) += lvds-codec.o
+obj-$(CONFIG_VIDEO_BRIDGE_SAMSUNG_CMC623) += cmc623.o
drivers/video/bridge/cmc623.c new file +234 -0

234 lines not on this page · raw message

Signature · 1 line
2.50.0
Reviewed-by on v1 4/5
#7 lore raw

Re: [PATCH v1 4/5] video: bridge: add Samsung CMC623 image converter driver

чт, 31 лип. 2025 р. о 22:37 Ion Agorria <[email protected]> пише:

Quoted 5 lines

Add support for a Samsung CMC623 image converter chip found in several Samsung devices such as Samsung Galaxy R (I9103) and Samsung Galaxy Tab 10.1 (GT-P75xx).

Quoted 8 lines
---
 drivers/video/bridge/Kconfig  |   8 ++
 drivers/video/bridge/Makefile |   1 +
 drivers/video/bridge/cmc623.c | 234 ++++++++++++++++++++++++++++++++++
 3 files changed, 243 insertions(+)
 create mode 100644 drivers/video/bridge/cmc623.c
#8 lore raw

PATCH 5/5 video: backlight: add Samsung CMC623 backlight PWM driver

In reply to Ion Agorria

Add support for PWM backlight found in Samsung CMC623 image converter.

---
 drivers/video/Kconfig            |   7 ++
 drivers/video/Makefile           |   1 +
 drivers/video/cmc623_backlight.c | 124 +++++++++++++++++++++++++++++++
 3 files changed, 132 insertions(+)
 create mode 100644 drivers/video/cmc623_backlight.c
drivers/video/Kconfig +7 -0
index a02501583eb..b5777da5218 100644
@@ -838,6 +838,13 @@ config BACKLIGHT_LP855x
 	  supported for now, PWM mode can be added if there will be any need in
 	  it. Supported backlight level range is from 0 to 255 with step of 1.
 
+config BACKLIGHT_SAMSUNG_CMC623
+	bool "Backlight Driver for Samsung CMC623"
+	depends on VIDEO_BRIDGE_SAMSUNG_CMC623
+	help
+	  Say Y to enable the backlight driver for Samsung CMC623 image converter
+	  chip's PWM output to control backlight brightness.
+
 source "drivers/video/ti/Kconfig"
 
 source "drivers/video/exynos/Kconfig"
drivers/video/Makefile +1 -0
index 040333fb3a6..96c7ce7bb09 100644
@@ -33,6 +33,7 @@ obj-$(CONFIG_BACKLIGHT_AAT2870) += aat2870_backlight.o
 obj-$(CONFIG_BACKLIGHT_LM3532) += lm3532_backlight.o
 obj-$(CONFIG_BACKLIGHT_LM3533) += lm3533_backlight.o
 obj-$(CONFIG_BACKLIGHT_LP855x) += lp855x_backlight.o
+obj-$(CONFIG_BACKLIGHT_SAMSUNG_CMC623) += cmc623_backlight.o
 obj-${CONFIG_EXYNOS_FB} += exynos/
 obj-${CONFIG_VIDEO_ROCKCHIP} += rockchip/
 obj-${CONFIG_VIDEO_STM32} += stm32/
drivers/video/cmc623_backlight.c new file +124 -0

124 lines not on this page · raw message

Signature · 1 line
2.50.0
Reviewed-by on v1 5/5
#9 lore raw

Re: [PATCH v1 5/5] video: backlight: add Samsung CMC623 backlight PWM driver

чт, 31 лип. 2025 р. о 22:37 Ion Agorria <[email protected]> пише:

Quoted 11 lines

Add support for PWM backlight found in Samsung CMC623 image converter.

---
 drivers/video/Kconfig            |   7 ++
 drivers/video/Makefile           |   1 +
 drivers/video/cmc623_backlight.c | 124 +++++++++++++++++++++++++++++++
 3 files changed, 132 insertions(+)
 create mode 100644 drivers/video/cmc623_backlight.c
#10 lore raw
In reply to Ion Agorria

чт, 31 лип. 2025 р. о 22:37 Ion Agorria <[email protected]> пише:

Quoted 29 lines

This patchset adds support for panels and bridge used in samsung-n1 and samsung-bose devices powered by Tegra 2.

Ion Agorria (4):
video: panel: add Sony L4F00430T01 panel driver
video: panel: add Samsung S6E63M0 panel driver
video: bridge: add Samsung CMC623 image converter driver
video: backlight: add Samsung CMC623 backlight PWM driver

Svyatoslav Ryhel (1):
video: tegra: parametrize PCLK and DE polarity

 arch/arm/include/asm/arch-tegra/dc.h |   3 +
 drivers/video/Kconfig                |  24 ++
 drivers/video/Makefile               |   3 +
 drivers/video/bridge/Kconfig         |   8 +
 drivers/video/bridge/Makefile        |   1 +
 drivers/video/bridge/cmc623.c        | 234 ++++++++++++++++
 drivers/video/cmc623_backlight.c     | 124 +++++++++
 drivers/video/samsung-s6e63m0.c      | 393 +++++++++++++++++++++++++++
 drivers/video/sony-l4f00430t01.c     | 210 ++++++++++++++
 drivers/video/tegra/dc.c             |  16 ++
 10 files changed, 1016 insertions(+)
 create mode 100644 drivers/video/bridge/cmc623.c
 create mode 100644 drivers/video/cmc623_backlight.c
 create mode 100644 drivers/video/samsung-s6e63m0.c
 create mode 100644 drivers/video/sony-l4f00430t01.c
Quoted 3 lines

--
2.50.0

Applied to u-boot-tegra/staging, thank you!