From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 7C657443315 for ; Mon, 12 Oct 2026 06:45:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791787544; cv=none; b=QR0ZV/7NnHo874ZEfxSBHbek8O7Aw5qaoOiNm8Ev2s9egSQuCGcgLWEr5nAl38YteMaX4QyRz6RokJgOz8w5p0/iPgr9ROj9VXBitC44/BOpD5xprpr/ygcb9jTY+qLAWxmKhwa6caD2qa1Wq+P1owwAxvWiS2I8s+M25NGT02A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791787544; c=relaxed/simple; bh=BUF/QmO+h7UqCDchc4KllfR7nSwPOzliNHlmMVpOp+Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DoeiRH+iL8HxfPJcTrhMQfS2Abk4CSsr0EGPjEMuq0Ze/Kjk99edhuPtdwEvAXW6ODCiH+sJKtSDZdESOV1vdO6CbOdiN6Df+cYouLrbUA+Csb/YDtUoxzkLpwH5cPZ4QaMktkaSd1RwPhN53nNxdcNDR7U44cmJPOuEfvyvo5A= 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=kOuBOPzC; arc=none smtp.client-ip=209.85.214.182 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="kOuBOPzC" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2e74a32a07fso2017005ad.1 for ; Sun, 11 Oct 2026 23:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791787536; x=1792392336; 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:content-type; bh=eX12qW5zeFmIAJ7ikUHSssf9LBTcnc2zAuEF55LxJRI=; b=kOuBOPzCrhEHqsgLbNeQnLzkdpgDJPhRNGn14iannRqtkhHs1NvaWqNljzk//sMdoq QFrUTH8rIjDuyCKLdtdSPlHyQOzZlQpiCsjeNOQnLqXKGly0VuFTCAbUNiftoR0XvgLX KSfWzAXlvLVsVsdsJkdrGRNTvOdHVu1zlSwCK3pITOrdEN/TMfFsClkgdj+dHEIbODzM Zb0MfNoQc33afLxljKKvqty/sLXDduBuofS8htDgOVoIGXET1uR4bANUosdJdh6yfLo/ 1ENduzASvWVBIo82vR/GIrhWzW6rGo5yZFB54gyu2PaFbp9B2n+TDlktvJkutm76ipmt 2Vtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791787536; x=1792392336; 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:content-type; bh=eX12qW5zeFmIAJ7ikUHSssf9LBTcnc2zAuEF55LxJRI=; b=C8Wuw9C1uDFJVJOzsQzR9WoEjr5FNg2VGdiVImhsPaOTRJMOrbmmZBGeiZzkADZZyk lKRYI2Y5LBERnzsH6jTPo7y1MtNp/LU/JUWCER/BAOWA0eWdJcXQOA2+gnZFqZZXgfsL L9ubHwcM7ceH9DBjYB4uIMBQsx+GyB7L2H+82OoOKrP1E16WYgjTwfjSyjnZQNuz7CeA Sz9+J0kyIwYJug4RFMcqLy9NxQ3N/QQFouB4q3jXjDrlwNgdpJSguTGo5PYAnXv0KSgc vopnhcWUOI3lUzJS7v3YHrXZNRroY8pxVZhdk1JknbcKA7hZK0pDbJ3FsMev6FLUMOq8 jWIg== X-Forwarded-Encrypted: i=1; AKwUvByaELs+uiK7Lsv31bA/Y7/QB1GM0DdavciTuJ1lLatumDSVKisXRHS/NcGULwfGB/XJMY2vBpbzNlnfito=@vger.kernel.org X-Gm-Message-State: AFq9FYI5XobwSDfI55PQoDYsd2zC+Rv6KeUbgUCjpmLavIDpfV+FMp9q If4Ay3sBzRroNVZeEHbrurr+YwsNMZJWE0fR1jZN7zF3HRrwYDEYVxsK X-Gm-Gg: AYBFou1PG3GSaXf2FtDmETbPc/I8DCijGAOv70A/vJXKFEnip5TKvFx7yW4GpqkTHEb EzL7f+NL0zMbRFYqIOAzDAK8ltoejk/QU01NrnlEOKPYBEGmYyKONPjqAgGzpMLOnTVVC0xOxeh I9dCXcuh6hzicf4/ugSwRxce6kvjGi9usAEIki2eD81MjR9EUFcvQkHlHqDzocFqlqIH+Fi0y/9 w9Y57rH0pvfZ9VjGtpjc1v4aGecWACuVgT8LusnZKtds1H88Y2FqQd/76afU0Kq570Qa3FyUqZA MFO+ECVV5SUoCwPPZMLN/ZYlKGlDgkgs07nNVImCCmVm4pvLDPz4XyU6+SBkbckh4wXFKft/jov +RJIPfKMZRQzp0xwZCswbWG1uOroZLpv4ZQ6JaLAn7J6Xy3b6NNROepWZQqKUHjyfU6o22EU7xN /NFnIwsls4CDVWg6JtpnEOY3yQqK/d88RYnOiCalRnNWncO7CFrFq5zENc1Ar8YGjfmXCJsQ== X-Received: by 2002:a17:903:22ce:b0:2df:8fc8:6203 with SMTP id d9443c01a7336-2e84289cdf5mr115046735ad.2.1791787536391; Sun, 11 Oct 2026 23:45:36 -0700 (PDT) Received: from marchy ([2405:3800:8a8:86f0:ee8e:77ff:fed4:d18b]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e8422b5fd2sm39674625ad.50.2026.10.11.23.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2026 23:45:36 -0700 (PDT) From: Adam Azuddin To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de Cc: jesszhan0024@gmail.com, airlied@gmail.com, simona@ffwll.ch, andersson@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, azuddinadam@gmail.com Subject: [PATCH v4 2/2] drm/tiny: Add RAiO RA8875 display controller driver Date: Mon, 12 Oct 2026 14:45:05 +0800 Message-ID: <20261012064518.3497285-3-azuddinadam@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261012064518.3497285-1-azuddinadam@gmail.com> References: <20261012064518.3497285-1-azuddinadam@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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. Assisted-by: LLM Signed-off-by: Adam Azuddin --- MAINTAINERS | 6 + drivers/gpu/drm/tiny/Kconfig | 13 + drivers/gpu/drm/tiny/Makefile | 1 + drivers/gpu/drm/tiny/ra8875.c | 719 ++++++++++++++++++++++++++++++++++ 4 files changed, 739 insertions(+) create mode 100644 drivers/gpu/drm/tiny/ra8875.c diff --git a/MAINTAINERS b/MAINTAINERS index a08087fb6e67..ccc36f168e19 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8450,6 +8450,12 @@ T: git https://gitlab.freedesktop.org/drm/misc/kernel.git F: drivers/gpu/drm/qxl/ F: include/uapi/drm/qxl_drm.h +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 RAYDIUM RM67191 PANELS M: Robert Chiras S: Maintained diff --git a/drivers/gpu/drm/tiny/Kconfig b/drivers/gpu/drm/tiny/Kconfig index f0e72d4b6a47..2f1c49e31dd6 100644 --- a/drivers/gpu/drm/tiny/Kconfig +++ b/drivers/gpu/drm/tiny/Kconfig @@ -98,6 +98,19 @@ config DRM_PIXPAPER If M is selected, the module will be built as pixpaper.ko. +config DRM_RA8875 + tristate "DRM support for RA8875 display panels" + depends on DRM && SPI && OF + select DRM_CLIENT_SELECTION + select DRM_KMS_HELPER + select DRM_GEM_SHMEM_HELPER + select VIDEOMODE_HELPERS + help + DRM driver for the following RAiO RA8875 based LCD panels: + * East Rising 5.00" TFT LCD (ER-TFTM050-3) + + If M is selected the module will be called ra8875. + config TINYDRM_HX8357D tristate "DRM support for HX8357D display panels" depends on DRM && SPI diff --git a/drivers/gpu/drm/tiny/Makefile b/drivers/gpu/drm/tiny/Makefile index 48d30bf6152f..ed4602097fbb 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_DRM_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..4da789f2b085 --- /dev/null +++ b/drivers/gpu/drm/tiny/ra8875.c @@ -0,0 +1,719 @@ +// 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