From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 C9012426EC8 for ; Tue, 5 May 2026 12:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777984085; cv=none; b=oJjdkBN6D/7eqO3bEqe8s2gih9+HhfHFvdAbWnUo2iJ0x1dxu1h1y1WOY1kJr6+nr7hoh1yAd94dOZ+CAIhC4mX00GQGH+pggSo5/psUjxduiyY55eKnowOZsMEWr4NZUN/MM11afJtsSiNIc5sZjuTKwVQi7mcmVoyD3WLLxMY= 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.174 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-f174.google.com with SMTP id d2e1a72fcca58-823be54d49cso322244b3a.3 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=nNtVI8rMAjSwWHBZayJiodHYLa14vzsyK783jG/ua55spaChAtcmOSVP1MRkOYtRmI qO/lsBI3T/z+VBBpyP/VQMZsYrUxOs/BwSlDBrx3bHsc7FslRoZg/+m/aOfT9QI4SAjS j7aWudu6Y2POVr453EvH7M5LzYqSG+yGu/aUgumxvnGsy1R0gR+898NPYogchvTIKdEt C18rXdSSIv7PTZKmFfm4zXp2VCD7EUeNmfPO4dz4pHl1R2FzyLnRwp5o4J+vErFsqNC+ j+a0tU2UxUEPvp73NTMPgT9ntOr5mDztPmgzaKX9A0xOIk5udZ8aCE/Lst0qCgwGg7AN bshw== X-Forwarded-Encrypted: i=1; AFNElJ/Mi0j1MOj+6LZHeA1h1tc27lB1/o2b+QFH1lniP69fhVIcdtjbE9/fRRTMuoV2SGkUrIUoDD9dLhaNs94=@vger.kernel.org X-Gm-Message-State: AOJu0YxxNuemuoLItLm9xM3e9EthDInQ9FTFtlpadQsCE4Kp/JBYb5+Y tVj2T2LzvcL0iWdHmq4vCuII37kQ+bzaapwvmq9TYeNjrwBBNjkQMHhjPQz1V/rp X-Gm-Gg: AeBDievI9T/EsP7cR4D3QPMvgAtBc9DgWjM1mrEOZKWxAjmmazs3eZUFvIMWpg6/x8c KouiGVeoK5YHq7z003l765BWmGR7dVYzuVztzfXv40zjRM+Bp5O+JbgIgEiTrckw99eP2gcIQdV UE2h//oLjL9VPUHSQyZWgF2CxusVVlZs/zt1w8gRtLMYvzgYrO20Psox5dKJr6uSEO1ygXY+VXN tOPlXDUnXC/2e7mj5+tD3Df+DRMLRhrfOb3oJy4MCacE9K/NoEbicStqqKNFugJW2Otx+bfPcLQ k+buNEWXhB9rDPgj6m/ZTgww7LtmGXH7beoYw5IIiNW9CgMF2XDzwij96jJRvfMxcXXawvwIGys OJW/NR5XpvN3PZ+ZQkuBQkW9Nx1uJmUz2hCgP0/3gWqaQdqX5p+UBnmC6R0GVLvh5eocmq5/+xA MzXZjlOGzM8Ab/TWbxhrRDra8i4wADIrAZ 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: 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. 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