From 03384ed4b30f9488d2653baa7871cacb7cdd99c5 Mon Sep 17 00:00:00 2001 From: spycat88 Date: Thu, 22 Jan 2026 22:57:15 +0000 Subject: [PATCH] drm/panel: Add Retroid Pocket 6 panel --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-retroid-pocket-6.c | 384 ++++++++++++++++++ 3 files changed, 394 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-retroid-pocket-6.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 7a83804fedca..9878d078d83a 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -709,6 +709,15 @@ config DRM_PANEL_RENESAS_R69328 This panel controller can be found in LG Optimus 4X P895 smartphone in combination with LCD panel. +config DRM_PANEL_RETROID_POCKET_6 + tristate "Retroid Pocket 6 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for Retroid Pocket 6 + panel. + config DRM_PANEL_RONBO_RB070D30 tristate "Ronbo Electronics RB070D30 panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index b9562a6fdcb3..b18e2251761e 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -70,6 +70,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) += panel-renesas-r61307.o obj-$(CONFIG_DRM_PANEL_RENESAS_R69328) += panel-renesas-r69328.o +obj-$(CONFIG_DRM_PANEL_RETROID_POCKET_6) += panel-retroid-pocket-6.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) += panel-samsung-ams581vf01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) += panel-samsung-ams639rq08.o diff --git a/drivers/gpu/drm/panel/panel-retroid-pocket-6.c b/drivers/gpu/drm/panel/panel-retroid-pocket-6.c new file mode 100644 index 000000000000..49f78afd85d5 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-retroid-pocket-6.c @@ -0,0 +1,384 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2026 ROCKNIX Team + * Generated based on vendor device tree. + */ + +#include +#include +#include +#include +#include +#include + +#include