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 7A7F6CA5FCB for ; Thu, 1 Oct 2026 14:41:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D0F2310ED64; Thu, 1 Oct 2026 14:41:42 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mADkDgnN"; dkim-atps=neutral Received: from mail-pj2-f43.google.com (mail-pj2-f43.google.com [74.125.227.171]) by gabe.freedesktop.org (Postfix) with ESMTPS id EB53D10ED64 for ; Thu, 1 Oct 2026 14:41:40 +0000 (UTC) Received: by mail-pj2-f43.google.com with SMTP id d9443c01a7336-2d6ff23d81eso5133685ad.2 for ; Thu, 01 Oct 2026 07:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790865700; x=1791470500; 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:content-type; bh=axlNHfZzsUJ2jTlluF8xGyi9fyNGfB6yycE/A2l+NZw=; b=mADkDgnNZJffKVFh1JUWC42XwC6Ely1pzhKJO74RUlNj0E7iAJ0NxVBMUHsF3D7XV2 v7d0jlF5pWCnCnea76kcN257Ioj+Ymy0+2Bgba/LkQOUb5BAiVYb8yReTJ4PHE5/htRC Ja7/4T36dPFBHWYUWq2oiNHUK9VNZbTtVvcanqEFD2C2TWRPJQ90JcngJw64bB88VYGC M2Z+WtEsr+42AZoLxBpePo4kCB9RuYtnDBmiSou4nKxCngbrLfEa8MX5wcgWHcSwxhQF eKFrmR2wWkKIhoK0L7ZKffcRbOpq61qjIB3LJRMokvyGSLlBkjVAM2fXyJiFW/wgQCd3 rg4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790865700; x=1791470500; 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=axlNHfZzsUJ2jTlluF8xGyi9fyNGfB6yycE/A2l+NZw=; b=OcYs8pGBBIDdKmjQHdrKsewKHjcm66I1BbpMbONEP15ui0zhFZUwwm5qk+mETAV2h5 foB6NiHRiUIat5fymyhtMJkURVXkx/HVwQvUPMBkrAAA6CIx9eVqbV7EudX8Y1xxUvut XyCuP3LnE4DpurV8kumRnaMXadAk40IA0GgPfm0tNIDSzXD8OX2EvKN6IGRLZ2g+0agv Z7lbXgv285Y45fiWukfEs/46fA6TanIZboRu1xGk1A4lqS1LOZrMqHG4Ft0sCJUodcwx BejyUPRRMbMFofM6rYB7IKIOG6Ioh8bUBNVrcsAzKP72MsfOcFECmq+efRn8eoLH9OC5 n0wA== X-Forwarded-Encrypted: i=1; AKwUvBw3nvpODxThapIXR/Vhud4Pwvly1cU/Btn+us/Zc0zZyrsiney9rIS1ZoZ2vKe5DhPjAZ+YqFGp2CU=@lists.freedesktop.org X-Gm-Message-State: AFq9FYLmE3bQqweGEG8OuzfiULGd4bl4Q5Tu53wFd07SphbLNEouEFt/ vobSeu3r+RDslIZh9OdkaQlN8jR1n4VmannAgDX1clXBNU09oMSC1+5K X-Gm-Gg: AYBFou2E5SIbHONRJcKDQxqiHBSuP2wwwDkRq1/P7Ge2LwUeHVGatWls7qXX2LAyRhX wEPWUcMgdI7EzQ4ft2ewWZwuTbLCAi3L6OfwDSAT/1+CPIAi9ZayIdPfWjVOmhYs4fi3plNVFlY FcfL4X07fwrU41lKkVZJU649WgBNS0x6+c2hZGizVpFSmbo4UQPppqsuktsRJkiG5H93lADCLmY JLv66mvBwGldCMtiOkfrj7WrJd3Al5pp8mDkLPZ0xYcWCPa84cjJsJ0DDEIerIf6YFdzvHBCagc qJHhzlHaViuhCovMHW5fYTpo/Fg4uK4t6xOI53CPpkbkV6gS4chbMFJNdzH+QwvIv6GQpbss6Mo IxxJO5hBRt7c+u6pW+qFnIepk07moWtTLsQMxdAiywRy/KRBxJQ9/M4r64KOyB6XwylVUW776xz nERv3BoGCZNfYpbT9W7wqwKJMLskfvTcIvPG0oGvlw2lxBd3zL+NHHQLvVT//UQVbS+KO916iqI gXSC+w= X-Received: by 2002:a17:902:f690:b0:2e2:dbfe:8623 with SMTP id d9443c01a7336-2e2e49100acmr64405475ad.1.1790865700336; Thu, 01 Oct 2026 07:41:40 -0700 (PDT) Received: from marchy ([2405:3800:8e5:44e3:ee8e:77ff:fed4:d18b]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2e300ae77ccsm11886435ad.36.2026.10.01.07.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2026 07:41:39 -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, Adam Azuddin Subject: [PATCH v3 2/2] drm/tiny: Add RAiO RA8875 display controller driver Date: Thu, 1 Oct 2026 22:41:26 +0800 Message-ID: <20261001144128.2336301-3-azuddinadam@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261001144128.2336301-1-azuddinadam@gmail.com> References: <20261001144128.2336301-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. 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 | 713 ++++++++++++++++++++++++++++++++++ 4 files changed, 733 insertions(+) create mode 100644 drivers/gpu/drm/tiny/ra8875.c diff --git a/MAINTAINERS b/MAINTAINERS index 4d108339f44e..0dfe8bbea97e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8449,6 +8449,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..7901ffce490b 100644 --- a/drivers/gpu/drm/tiny/Kconfig +++ b/drivers/gpu/drm/tiny/Kconfig @@ -195,6 +195,19 @@ config TINYDRM_REPAPER If M is selected the module will be called repaper. +config DRM_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 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..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..d990d052e947 --- /dev/null +++ b/drivers/gpu/drm/tiny/ra8875.c @@ -0,0 +1,713 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * DRM driver for RAiO ra8875 controller + * + * Copyright 2026 Adam Azuddin + */ + +#include "linux/gfp_types.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include