From patchwork Sun Apr 13 11:24:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 14049314 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 938BEC3601E for ; Sun, 13 Apr 2025 11:24:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6A5710E1DA; Sun, 13 Apr 2025 11:24:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="A1vHcJ9q"; dkim-atps=neutral Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0377410E1DA for ; Sun, 13 Apr 2025 11:24:16 +0000 (UTC) Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-5e60cfef9cfso5655390a12.2 for ; Sun, 13 Apr 2025 04:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744543455; x=1745148255; 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=pV5pvhlP3z9/i9gZ7xkKad5WjQ7amsdYTRJcK6GrCe8=; b=A1vHcJ9qE3qQ+Dd8/9S+me9cBR24bbCQvyOvw3WBZeD3P1a9YFmr2PCTtbxvm9Pv0w aGL4ZXr4eyYOYhFctfaILkCVAnG0yFHvZyMAV8p7wyjRHJMFYHuft5mM8wSRMyvsH0sK iU8SlPw6xhW09xonTS6QOepeQ96dDZFsVyJm27UAzUTYFLSctFGsjqAXBsHXAKKG9uXt nQhvqDM8KCPNvt5kGIWuEFdVUngzi5cOIreQGetjnq7m3g5zCyam9tFmU+tehXYs6vE+ WHgBeTATCq0epgggcDEl76Vgs1Fm8p9paD3ASWBgQ1FoY/1JBDw7LHbjgtQf1Of5ezVN OaBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744543455; x=1745148255; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pV5pvhlP3z9/i9gZ7xkKad5WjQ7amsdYTRJcK6GrCe8=; b=f5vGG8NhLUh/LiPeZbMEhOsX3DPDC1VvtL9mm3aSCWazfCE0SxJEHYCfSekmdo9u+B PUb4LH7aIs01bt5D6Uo/WWN9Aqta1cirIPpnfY1+3O95nseBwA6kmJRxwQZRFpAMHLM+ +WGV2j4g6NEK0OurjLNGbsQCSEsHhJA2Vgkgj0ZU3vUwuVU2pbMIFS0jRhjgcRXlLOHt 2FJ8fMdRfnsRT7rGI/wCD+FtQEyBQaj3Li+Y255MyoSJNEqcmckqfD9iYhEyKJT8OTDw 1hs2xavZgqz1CNRJ3vr9MAfYw667FQbbgDD3r1KGqEgrIjlBUdCPexk9KCHH4Z+6sjSy ++sw== X-Gm-Message-State: AOJu0YxktqFfXNN+2dmIYajr88z553/qn0wOn0Bza5SVjf//5+o057zq nb3RhqyGHDOSe+3afJLAnQoySLMvcM5ZcpjL2+UQXJG6Ee0ohvH3 X-Gm-Gg: ASbGnct84SBVCddK9e0p79tdJehamM8HcHcoL1B6/CQkb4AS8YkXF7GUroQ/Cs1m0Pw VHh2jRlmOjrcOiS1fJHym3i+EnW5MPlW6HroA1owKCSPC+VaW3Qo36k8GDfBIbgtbatwUxe61CD ueaVoB/yjJ/rjV0+Xzkk+AXNm75+0Z8xYoFhZVuEC60M2B4uTkFT6myw2FlMdy9bGsfIhZ2lh13 1y/gwtwQZJjIao+V33NQDVN69ogB7UU5xtduhY5Zx1ai7hj8Jj2oH7U0+tLNZwpDh4YWEySObl4 oKUla686saloYjqieLAD0wa3P1KOLcGRXbhf5NrBybM= X-Google-Smtp-Source: AGHT+IG5dOnzb/UohUJfAgEwg/4nxH/vXRYsX6u1LpLZ0wyeDwcIBNO0TUyxGqk3oKRJ8lOF+E5H+Q== X-Received: by 2002:a17:907:86a7:b0:ac7:b47d:ca0e with SMTP id a640c23a62f3a-acad36daab0mr963247466b.57.1744543455266; Sun, 13 Apr 2025 04:24:15 -0700 (PDT) Received: from xeon.. ([188.163.112.51]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acaa1cb4110sm733529766b.91.2025.04.13.04.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Apr 2025 04:24:14 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/4] drm: panel: Add support for Renesas R69328 based MIPI DSI panel Date: Sun, 13 Apr 2025 14:24:01 +0300 Message-ID: <20250413112401.12543-5-clamor95@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250413112401.12543-1-clamor95@gmail.com> References: <20250413112401.12543-1-clamor95@gmail.com> MIME-Version: 1.0 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" From: Maxim Schwalm Driver adds support for panels with Renesas R69328 IC Currently supported compatible is: - jdi,dx12d100vm0eaa Co-developed-by: Svyatoslav Ryhel Signed-off-by: Svyatoslav Ryhel Signed-off-by: Maxim Schwalm --- drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-renesas-r69328.c | 282 +++++++++++++++++++ 3 files changed, 296 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-renesas-r69328.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index e8723f42cafb..86c66f818a11 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -618,6 +618,19 @@ config DRM_PANEL_RENESAS_R61307 This panel controller can be found in LG Optimus Vu P895 smartphone in combination with LCD panel. +config DRM_PANEL_RENESAS_R69328 + tristate "Renesas R69328 720x1280 DSI video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for JDI dx12d100vm0eaa + IPS-LCD module with Renesas R69328 IC. The panel has a 720x1280 + resolution and uses 24 bit RGB per pixel. + + This panel controller can be found in LG Optimus 4X P895 smartphone + in combination with LCD panel. + config DRM_PANEL_RONBO_RB070D30 tristate "Ronbo Electronics RB070D30 panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 61d8853df1a7..37e4e13165a9 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -62,6 +62,7 @@ obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM68200) += panel-raydium-rm68200.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM692E5) += panel-raydium-rm692e5.o obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM69380) += panel-raydium-rm69380.o obj-$(CONFIG_DRM_PANEL_RENESAS_R61307) += panel-renesas-r61307.o +obj-$(CONFIG_DRM_PANEL_RENESAS_R69328) += panel-renesas-r69328.o obj-$(CONFIG_DRM_PANEL_RONBO_RB070D30) += panel-ronbo-rb070d30.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS581VF01) += panel-samsung-ams581vf01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_AMS639RQ08) += panel-samsung-ams639rq08.o diff --git a/drivers/gpu/drm/panel/panel-renesas-r69328.c b/drivers/gpu/drm/panel/panel-renesas-r69328.c new file mode 100644 index 000000000000..207067b29473 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-renesas-r69328.c @@ -0,0 +1,282 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include +#include +#include +#include +#include +#include +#include + +#include