From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3BE29CD13DA for ; Tue, 5 May 2026 07:12:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9D1910E96D; Tue, 5 May 2026 07:12:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mV6jLkw3"; dkim-atps=neutral Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FAFC10E0B1 for ; Mon, 4 May 2026 02:14:23 +0000 (UTC) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-c802196bd32so30275a12.1 for ; Sun, 03 May 2026 19:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777860862; x=1778465662; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OSw7bxIHIV1P5OerjJyAkdF5p1j1kfhvLlHpMyBu4HE=; b=mV6jLkw3D8kC0I3dBi7+RopKCvsa+Q7SLPFWLN9+zCA99JHs+gLTGAqgJZQLhIfLCW ruYnHs95Ny/bjHFLc0kLaXbUoYC3oHEYAN6L0D9A1q5+Q3jHZBRG6+JWa9HpEatxBS5y IksUGhv/FJfwneJRbpa+Yes3af4roAIJduXxOKmuiBnEWmuSjBDYl3iPvZmbWOGLxSKk o6yc91SUYS5eFgPUCS8A4KGxcFKkw9wClU65BDKmq3ORKfBUeDuFR7n8l3CyW03yEALZ lIy5Z7zM3w6kSaNmcZrdBDTMibgcYdFqIsNucu3kHexxRyW98nLZAUztQjsLHnqfFm9U 4FPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777860862; x=1778465662; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=OSw7bxIHIV1P5OerjJyAkdF5p1j1kfhvLlHpMyBu4HE=; b=QoJWh45Vkf6EGtStIz9CZfl+VewyOfBMTJPEkS4ayWacvWd2c7JPoeAJFA05EAKNjW 1lptOi+t99Cv3z3INqJC30NJiLnDf1BMsunZDJblBk0BJr24i884AzcneoEZEbL6kPCe gHyJwmcAxtoG/0b+eZ+H3TKAZ7mifnfvwX0HIDyQqKPfOkXca4j1ugTjb232aeLvrfjI Ni2iIKrd1HMCr0QGc2qLHi8uVTfpTmFSBo6+9ekUnislHgKEB0WukvtKwI7iRBrjkPJY 1ywTCQ9VN7Y4ZlgVcAZD0uUWlHxOPjy7IwEMJHwXmCF19Kj0XM4U/i3kdtnhH7LK1rRi 043A== X-Gm-Message-State: AOJu0YyhOKI4n51Hb7ofpPUMLRlFB7BE4wVvanWy8qDIPWqK8Q5ADXNk Hshoq81Ll/g3CKwJjpFLqeFP8NYJo19EseeBOEWFMh8NKddOiVhbyRdD X-Gm-Gg: AeBDiesdBdK1iML8L9SNynuiEMMXD7KVbhvQSCVCYjBRD+Xghri3ztzTD2fABGpLl+Q pIHC1IZlSctX/FZtKmRLu/xvCerP/kDDzYBYvRsDJXMisdvTJRrYTXPQ/VdlstoroJjncHRMIvm mmbDSWO4464csUAeOwINqjui+KXuflgLgZgtwVyBaLTWtiZcJsc7SoxBhDPJmT4APfjoLT+9XDG PnSOjh1dyl6DjeJdD6uW3Tpg529EH2PYrZR3qyPjGnkDy0sxRtst7VePM0rl9nDiLEYnCMJQQJ1 vlnmav+HVx3y4ZfzLn7Zgnst+bJ78ev794urQWf4DoDlIwg4wdt7+PiEaPCrQhpjDeNFjVqQiIB cjXQsGoU7Y1/vkpfLq5iIdwS1JHZNQCuRWyf4XyZV350qVfxTFNUqt4O+7qUJj5VrzotTfaRsUT cTgVfJDsLqBE45sbuXfDPIfTj7Bnj4u73V X-Received: by 2002:a05:6a00:a803:b0:837:95fc:148d with SMTP id d2e1a72fcca58-83795fc19aamr959116b3a.0.1777860862323; Sun, 03 May 2026 19:14:22 -0700 (PDT) Received: from marchy ([2405:3800:95f:677d:ee8e:77ff:fed4:d18b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83515b543b0sm9191138b3a.53.2026.05.03.19.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 19:14:21 -0700 (PDT) From: Adam Azuddin To: dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, Adam Azuddin , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Liam Girdwood , Mark Brown , LiangCheng Wang , Javier Martinez Canillas , Marcus Folkesson , linux-kernel@vger.kernel.org Subject: [RFC PATCH v1 2/2] drm/tiny: Add RAiO RA8875 display controller driver Date: Mon, 4 May 2026 10:13:51 +0800 Message-ID: <20260504021355.72128-3-azuddinadam@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260504021355.72128-1-azuddinadam@gmail.com> References: <20260504021355.72128-1-azuddinadam@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Tue, 05 May 2026 07:12:26 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a DRM tiny driver for the RAiO RA8875 SPI-connected TFT display controller. The driver supports display resolutions up to 800x480 and uses the GEM shmem helper for buffer management. Signed-off-by: Adam Azuddin --- MAINTAINERS | 6 + drivers/gpu/drm/tiny/Kconfig | 14 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ra8875.c | 681 ++++++++++++++++++++++++++++++++++ 4 files changed, 702 insertions(+) create mode 100644 drivers/gpu/drm/tiny/ra8875.c diff --git a/MAINTAINERS b/MAINTAINERS index 54b941d6e8b2..962fdbdbccf3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8268,6 +8268,12 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/raydium,rm67191.yaml F: drivers/gpu/drm/panel/panel-raydium-rm67191.c +DRM DRIVER FOR RAIO RA8875 PANELS +M: Adam Azuddin +S: Maintained +F: Documentation/devicetree/bindings/display/panel/raio,ra8875.yaml +F: drivers/gpu/drm/tiny/ra8875.c + DRM DRIVER FOR SAMSUNG DB7430 PANELS M: Linus Walleij S: Maintained diff --git a/drivers/gpu/drm/tiny/Kconfig b/drivers/gpu/drm/tiny/Kconfig index f0e72d4b6a47..519f0f6e3bb4 100644 --- a/drivers/gpu/drm/tiny/Kconfig +++ b/drivers/gpu/drm/tiny/Kconfig @@ -195,6 +195,20 @@ config TINYDRM_REPAPER If M is selected the module will be called repaper. +config TINYDRM_RA8875 + tristate "DRM support for RA8875 display panels" + depends on DRM && SPI + select DRM_CLIENT_SELECTION + select DRM_KMS_HELPER + select DRM_GEM_SHMEM_HELPER + select BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + DRM driver for the following RAiO RA8875 based LCD panels: + * East Rising 5.00" TFT LCD (ER-TFTM070-5V4) + + If M is selected the module will be called ra8875. + config TINYDRM_SHARP_MEMORY tristate "DRM support for Sharp Memory LCD panels" depends on DRM && SPI diff --git a/drivers/gpu/drm/tiny/Makefile b/drivers/gpu/drm/tiny/Makefile index 48d30bf6152f..17e5e7766309 100644 --- a/drivers/gpu/drm/tiny/Makefile +++ b/drivers/gpu/drm/tiny/Makefile @@ -14,4 +14,5 @@ obj-$(CONFIG_TINYDRM_ILI9341) += ili9341.o obj-$(CONFIG_TINYDRM_ILI9486) += ili9486.o obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o +obj-$(CONFIG_TINYDRM_RA8875) += ra8875.o obj-$(CONFIG_TINYDRM_SHARP_MEMORY) += sharp-memory.o diff --git a/drivers/gpu/drm/tiny/ra8875.c b/drivers/gpu/drm/tiny/ra8875.c new file mode 100644 index 000000000000..632343197250 --- /dev/null +++ b/drivers/gpu/drm/tiny/ra8875.c @@ -0,0 +1,681 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * DRM driver for RAiO ra8875 controller + * + * Copyright 2026 Adam Azuddin + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include