From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99D57426D31 for ; Tue, 5 May 2026 12:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984085; cv=none; b=YKOZxNDEhnJr0A1sZw8sXROct6n9qe26khmzgZynm0z2a/TUpgbqMQcEbvj9DdLeR0SehawrKnSJOCJILw1wg38tbISXKxijigJ7o0TA8I0KVo27lXcJDCF8439F2470cq8//iK1xVJs5JmTLdcAy0ptmTkp7ooTL/8erEz6yck= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984085; c=relaxed/simple; bh=d77DDmzgnmcHx3cTaNtpA9lUv2zQrDoXlqbrem3EQEo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T+YXm9FT93JTmWpGUSODrX2s4Ck5K8wr/vWAfkvLT4l/yfnpKHDdVevTtgyvLqm5RNUSAsisfeyPZAcgCCVfcdLm4GR/9wmdavyQqGjrT7D7+OcvbKi9qfhl5P9zW8C46BDTVTTqCTsmYvgi+i8DRMfKCLM1b9aleR4w/giS664= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gmAGs33x; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gmAGs33x" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-826c4c6d95dso249474b3a.0 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=vger.kernel.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=gmAGs33xXGjJLxsP/zpv4/pGLxSx+xedB2kO4KDi8xqHrt4fjrEL0eIuYl+ap/Ofd3 FuLKvB1ZdJnk4dA12gPdscMc3uRUXH86l1MxQbRUwDEsk8BmGMnr8ZyoJNDxjud6WBQ1 rO1by+uj66b+d2i15ZlgpnfUVrHpcipZIlhuXUIFxRDmYQwGKLBddQjN633YKBV+aBcb 06T25a+8tIP0g+y3GsLrfn8GVjp7e0bVgCj3+2Z8PSFbYQkFysOtrhjgIzT6ml32e4Mb CvHHqvmNo0/2IgFJIrSCXyC7vX6ikPo5W4huPCJD9veMiXr6Pbk2G/HnH9CrPCW0csi6 Kl8g== 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=h4A6WFx7fMmoskKqFQ04La1tJPPbavp68h2MO2CRgRKtYXxEN8xlbJ7r7abaCYCSjZ n1Hhy5awN+8xI7ngd5V6A5dpvU6hkjtsmO5ahTyL0+Ao7Oxa1JX7aovDtJ/NAb4M4y0V mQaAYtCIAC5Gq4OyVSi5KxNEip8iEbck/FewIAI4FV8HjRaVp8ROp7YmUvjojzn9A20u kimepjAMDuNSFvjiwYljwBGQKADzRKSGTKBvT3/Zjcyi+pg9LFB3G1WGgPKlrHcgFTIW iDwMCTyJI7FVD5EbHet9L7dUTwlJryE3tjV1w0Hn81Naks+20YyCuA7PcwyboAZiV9OS cjcg== X-Gm-Message-State: AOJu0YyU5VOIgDOglPFN4CB1KXsy1w9WTr1U/K2jn2nF94GY1k9a+vo2 KOdGi9UGKxZg/4fM3/gmYiBk2jr+UwbiicArgPWFz5BakwYk3Uj7xrdz X-Gm-Gg: AeBDiet8jwKs8iBKF7fB40iVX+4fZxIJooTux5D7/UyXWVu0LAxITjUwkNeXQeHmZ/A XsCtE+Quk/QE8GtDsdn7KSLu7LfCEhNVBQZ6KnfmX3LSoauqla01/vdIjxoP0ZKihCacHKUhNkz 8/xxkxld4AHYhIiv4rwjo8f90B4Ft2dvPY1eKk2UjRaN03QNIYyXBICCyB7b9+PfOw4g2UmwRn0 /20QGp3xu5QQwBu5HzpuIvPQZg37FZiN1Z1wkucVx8kqsHOB1gnGJjhoA8NHfyA/1mnMOBBxMJA mfpNNI2qL69bdzhNPTIDBAO9c26LutF0EKdJUA35qgsIh5/Ge4ItFFR4XLIZCc2RMdLrXGqSF7j WaBGfJaTj/CRSZKQxrBuMeM324ibLKHjy1qBwIp82v7vxDZLdZQ2cH3S/HoF/2SkYlgndcv72bx XsmTMuYv6UcxjKmZcI831lc5QGNXv7n+Bo 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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