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 CA871CD3427 for ; Tue, 5 May 2026 12:28:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 168B910E422; Tue, 5 May 2026 12:28:06 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="VxZhvpGC"; dkim-atps=neutral Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85C5F10E45A for ; Tue, 5 May 2026 12:28:03 +0000 (UTC) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-8385cbaab7bso195638b3a.1 for ; Tue, 05 May 2026 05:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777984083; x=1778588883; 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=VxZhvpGC2tQZJHUaNGGjhZIHAU4LMNIEfQ8XlrMbNbokruha9M1lowtvYDlgqbxXrq DivZRXyyZfAAZjyBkSo/7ozRQuIbbpcJ+talEaGIrOo0yx9jUerONBqkpdYBwCdqXagY 6+WmzNvo3aT2lHds2iZvJFU/gKcWPGZQnGTjWPq50LAHxsaX6LatZE4y4U2BVaob+O97 PvpP7HbJLQ78KPVFZjWmi5EUqAUB7rSOtagoAbBRxtUrtv5J4DO3be95RcpyrjOUvhX8 FxsQMMSS8IPrXvHmkK8wFPEV2X3Ye852d4W9fIi5S8VXPN48REp1six84RWHbuGfpia0 XuvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777984083; x=1778588883; 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=OZsGWm0Iofa7S0XBTFxErXqZLTQbNZge3xonX7e04nduZsmWYLaY5tD1aoqleoeRiH Bu9L4gdROWypINpxOeOaEBaPFDQGrm9BYjB1iLxnk7WN9Lfs/OGx7OPP6L1bEP1+AE6t OiF64PLRO46vwXix9RaNI5MjOJi1BxWfaE86/7pJBzUXJH0uvGXxl9msW9VR3Th96L0s +0VCltp923pubnoM8AQ88P0XIAEwkgPSH375pt3TKjG/HLnbkbxBffyg7zL2iWs3sLZi 7lQcApQkrSgZoK3Ij/fROMX740JyqLipCdwYa9Rz5opmSmAYxvh6NJeaMpF/kY3BidKg jZ7w== X-Gm-Message-State: AOJu0YwRJcUzmFx99yNxXZOksX7OzRsdAHcxQ461QsTtEgicrFGR28A5 Sp/rN+vGKPxj/bKpIhER0dhP2Cmgke/qT2DN4gyUGC9t8/Xsa2BVVAYm X-Gm-Gg: AeBDiesoJ0ir5IrjrJEnB9iLbW9K6FPznIjUFToxe6NERUk4sq/ZW9HiH3oEMjazWtn b8qccfMrNCuyq9kdO5q08a30X0mdlRXwCHqbVl4plc38z2ypPZwFiqYAxTvAWi5rGQfepARyW3q Xpc8HJaVLYL79N/Rmjw+bS9hFVYjsF0VbuzQlP56GWfWxz/V+cLXFOVtox85q+cKg/YyKTp+NEA GBnpFv4d+ZGAkTzfAZbNfR/Dq98BcqOkWkY2W7oAIVtHVIB6hcuAbIS3kLhq668z6/jXwR3CvaQ E8Xs2FHq+ukJ+z7t6L2VZDn918v4kwkHtOeE7AhUCAstLOfJl/6efWtwdP36rB2Tu7cQ1+OF24F f1kObll8f+UpFcexNjjgwMGwywFoOcx0DflDSlvcfHZUDksRXjnd2/pfMYAl2IJ0bLOGFkY6pgy PHX5ziLQYA9wC8PMlqrg59durocH4D3k6M X-Received: by 2002:a05:6a00:2346:b0:838:d607:b4cf with SMTP id d2e1a72fcca58-838d607bc64mr2134946b3a.5.1777984082872; Tue, 05 May 2026 05:28:02 -0700 (PDT) Received: from marchy ([2405:3800:88c:d085:ee8e:77ff:fed4:d18b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-839685a8125sm2247312b3a.61.2026.05.05.05.28.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 May 2026 05:28:02 -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: Tue, 5 May 2026 20:26:30 +0800 Message-ID: <20260505122636.11859-3-azuddinadam@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260505122636.11859-1-azuddinadam@gmail.com> References: <20260505122636.11859-1-azuddinadam@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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