Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp256603lqb; Tue, 16 Apr 2024 15:02:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQ2ZCONPMpIuN+SCB2pcOLbR4fOYb2dS0WOxvSYLVb8PAroDoE63/4wATQ3Q7DhiDdRvUrM/NzhIL2+1BrVw5ACK8PhoB2UVDmOTrUkQ== X-Google-Smtp-Source: AGHT+IFZqjiMwjZIvWcdiNJR4XfNkDZ2liVmA6s6mf4PtJIg6DesZt3pkN786CXWb+8h9TOk8i6h X-Received: by 2002:a05:6602:3f0b:b0:7d5:de7d:a920 with SMTP id em11-20020a0566023f0b00b007d5de7da920mr18218160iob.16.1713304923678; Tue, 16 Apr 2024 15:02:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713304923; cv=pass; d=google.com; s=arc-20160816; b=n4Dd5VFe68e8pLuSfAoeMBvYdhcZ7/BzJov11Mpj9vE9kWLWB0OzoA/P1SnTEgeApW CETR6WOOkE+Dxs1hirH/Td1JklonXcfqT8CULEF8OPGdS8SvoU4e+VgSRmpOQ2h2lN1T atFmTLwKgmMhLeZGriM8XZLq2q5WqyGQ7zJ5hgANS/hSeECB7UBeSvurx8tSp/Jgb9nH xl4wcfV7dKcTk6Mhdu5dtswNvgHy754sLCao5ZloxSU8VvZLuJQTEKL1ZT6ut2PSN+4Z olL/CzkgPwvikxdCrq1pLeLN/S+1T5XALf5WhUt89eihKlVe7JHew91QjnLbOgU050cO 3dzA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=dC0axLGPLQGPGH3I3r5mqHScs8bU+DmnnOi+Wx2Xkjg=; fh=2T9oUK0pCghLuQnaWWnpSMp2lwHtTmadg+lk3boDNQU=; b=LRZ09+fnQTRBTn2nQQJCTrPB+KAuulaZJkRVUm14UrQCUZOqRioILnlZxOT/YPBBIi C3j+8CIOBN08kerM6eIYjeaIlWETDWBUXiDRUeiIbgCN9Undt9laaIC/ylLHbW5VYk7c hXqzcnMSWZTo6O8FO1okXSxzpwDlE+stKCW0Rn2WVbt2HitY+qZU9X9LdXE5uBOROpv0 72uTMrJ2mzPFfMBgy2XkgKt8yGdYmiLJFf/Rp1PWVey//3HJjfcRgOakLnTegDz2qLDi X4uVEASIwn6hhqEBpbpYZ0SVGS0YmJJ5skt1Tmr/R6Uy4hoUgCYxCU1K7ka8zjwQQlfF r7sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=PxREm9Zu; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-147389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w3-20020a63fb43000000b005e4723dce6csi10150411pgj.291.2024.04.16.15.02.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 15:02:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mainlining.org header.s=psm header.b=PxREm9Zu; arc=pass (i=1 spf=pass spfdomain=mainlining.org dkim=pass dkdomain=mainlining.org dmarc=pass fromdomain=mainlining.org); spf=pass (google.com: domain of linux-kernel+bounces-147389-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mainlining.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AFB78B2217F for ; Tue, 16 Apr 2024 18:31:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF961137C2E; Tue, 16 Apr 2024 18:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b="PxREm9Zu" Received: from mail.mainlining.org (mainlining.org [94.241.141.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A9B5134406; Tue, 16 Apr 2024 18:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=94.241.141.152 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713292277; cv=none; b=K6HHJ2nFWs4oOWjCkQzl8Ygq7+FIR6o+/RwjpUbm2Wm0NDW15OA0mp8wvXBzXIPdwT8XGkTHz2a1jaK2IKvcrjjNOFSsdo+SyOEvjuCniDT+EB030TG12+vuYjFJEzaVpbm2qnBciNMjh/ERVSLPp3aXZpHgKyHkZAAeiRxpACU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713292277; c=relaxed/simple; bh=hV66KasErP66A0HeOCuVXIYZF2GvRJOI9XddzmFMwHg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qo+gpbRHLj9nS0iSKU00Q9yGrwmkZcknAXF03qL8QdBSAv2gpgFWB7kvkyWjLJNEoHKNvVYguHokSGJ6V14vtv/Kn4kdFUNd6TeIuHkt5tSfwocJnWSyW8lClgLnN9AlIBiKRm6kT83gqnJlYtJ8hwVv2OJuTCFzxCL6U606Mj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org; spf=pass smtp.mailfrom=mainlining.org; dkim=pass (2048-bit key) header.d=mainlining.org header.i=@mainlining.org header.b=PxREm9Zu; arc=none smtp.client-ip=94.241.141.152 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mainlining.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mainlining.org Received: from david-ryuzu.localdomain (ipbcc3a836.dynamic.kabel-deutschland.de [188.195.168.54]) by mail.mainlining.org (Postfix) with ESMTPSA id 9A48AE20ED; Tue, 16 Apr 2024 18:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mainlining.org; s=psm; t=1713292273; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dC0axLGPLQGPGH3I3r5mqHScs8bU+DmnnOi+Wx2Xkjg=; b=PxREm9Zuumoq87oUbb6Prd2bMsXl1unmC23CdcJZP6a62hi2WlwSLycazRzf9KDxZf56sf mX9QDwCXspj6pobdc+BltxueGkE1Dc6rS90d9k1i9z440CnE8YH5xigdK0a8DaHExCtbQw T7f32y+Rzu2u63aZ+L2weRmaWcgAHl7J1nRepBMwHyNjnlcfbYOLasjnpbJH2ZDNI0/zFh gxdAw89drwaNBNaP9OHOeVTIZxO82VPAjlJYe7SuOIQRYUaJ+/1I1LNZueNWnYhzHi1eRE 2N4c7SeuzZTAQRgOi/+29zAQ1MaXzm5oLITcQhFhfjt1dOJZcdXyIFVcRYjOTQ== From: David Wronek Date: Tue, 16 Apr 2024 20:30:49 +0200 Subject: [PATCH v3 2/2] drm/panel: Add driver for EDO RM69380 OLED panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240416-raydium-rm69380-driver-v3-2-21600ac4ce5f@mainlining.org> References: <20240416-raydium-rm69380-driver-v3-0-21600ac4ce5f@mainlining.org> In-Reply-To: <20240416-raydium-rm69380-driver-v3-0-21600ac4ce5f@mainlining.org> To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marijn Suijten , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, David Wronek X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713292268; l=12448; i=david@mainlining.org; s=20240121; h=from:subject:message-id; bh=hV66KasErP66A0HeOCuVXIYZF2GvRJOI9XddzmFMwHg=; b=z7IWPn/48HQ/sZA8MIiTaTCdBKciGbPJw0Bu60sp5eIaRypPfJkVr7vYhbH6/A1uKBbf/FEH9 XQrkiARUMDsAev6u34CL9CECfNa3Yg5pbRRyHMFGgjXzvx0WL0B8sh2 X-Developer-Key: i=david@mainlining.org; a=ed25519; pk=PJIYyFK3VrK6x+9W6ih8IGSJ5dxRXHiYay+gG1qQzqs= Add support for the 2560x1600@90Hz OLED panel by EDO bundled with a Raydium RM69380 controller, as found on the Lenovo Xiaoxin Pad Pro 2021. Signed-off-by: David Wronek --- drivers/gpu/drm/panel/Kconfig | 14 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-raydium-rm69380.c | 367 ++++++++++++++++++++++++++ 3 files changed, 382 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 154f5bf82980..5b3eeb93b1a2 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -542,6 +542,20 @@ config DRM_PANEL_RAYDIUM_RM692E5 Say Y here if you want to enable support for Raydium RM692E5-based display panels, such as the one found in the Fairphone 5 smartphone. +config DRM_PANEL_RAYDIUM_RM69380 + tristate "Raydium RM69380-based DSI panel" + depends on BACKLIGHT_CLASS_DEVICE + depends on DRM_DISPLAY_DP_HELPER + depends on DRM_DISPLAY_HELPER + depends on DRM_MIPI_DSI + depends on OF + help + Say Y here if you want to enable support for Raydium RM69380-based + display panels. + + This panel controller can be found in the Lenovo Xiaoxin Pad Pro 2021 + in combination with an EDO OLED 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 24a02655d726..e2a2807d4ef0 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -55,6 +55,7 @@ obj-$(CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN) += panel-raspberrypi-touchscreen obj-$(CONFIG_DRM_PANEL_RAYDIUM_RM67191) += panel-raydium-rm67191.o 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_RONBO_RB070D30) += panel-ronbo-rb070d30.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_ATNA33XC20) += panel-samsung-atna33xc20.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_DB7430) += panel-samsung-db7430.o diff --git a/drivers/gpu/drm/panel/panel-raydium-rm69380.c b/drivers/gpu/drm/panel/panel-raydium-rm69380.c new file mode 100644 index 000000000000..f89230c969b7 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-raydium-rm69380.c @@ -0,0 +1,367 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree. + * Copyright (c) 2024 David Wronek + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include