Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp255166pxb; Wed, 8 Sep 2021 23:36:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoZactslwtOQap02rkr717OjcJtdDjRgAHtBvmtTxQwz3WgcVQa+HibuH9bF4p1VpiOx8U X-Received: by 2002:a05:6402:3188:: with SMTP id di8mr1578294edb.300.1631169409532; Wed, 08 Sep 2021 23:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631169409; cv=none; d=google.com; s=arc-20160816; b=VlqGtmy6dtYlT+BckPPaReHBwpVsMfirlQLgV7pW/TCPmYrgjlsu2hEQtX+WKhU8AO ssYsQ5dheZzABaIe4RGB0/eO1vKkznk6tqmamZ6H+RCIyCl2RUJAwjUmKti4yl/QClQG 9HUodri8AWeqBbgEGHAnolkQNEgAM08t56N51etxMR/1SJg9F4wGMsOX9o6ZT3V1pSks DXHVaQ0Su/T3or/jiifyAYd2nCHcTH49XIofTJ93I8CcO1trPwMvW8v5vURnD0I+VIdd TUXXYJ5y5q/YoAmZ3Briz9tuemB3Gz3yeND1Va5seoN+Z54nHlyA9tKS+og8kBa8Wbhy aXVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=PZ6HBgkuXibr0gRzhr0DQAD1QhPhDCggyHpEpVtWVyw=; b=BADkcXioqlZDSrez7yf9L+H8jp0GxL0xpRLV5LPOuj1dKhz6aw/Vr4kMStJSyQ8QgD G2IdrOaRvxEiruHZu6msEM11DFVrwdabrLmuQ/H1risNzwKrO0k8TFBBQtFMc7ePmIyH g9fvIITDn4HuEGYJkauvNuYcj9kWEsTWodexbQX5IhfpbrBF/dgYQFhW1PJUfGPFcj7I uF013UZ8LtFaTFCoHBxv9Ve1n0RWvbZ2tNFdCZ8VqkEjiA8Q6Zzpaa6O+ZAqanafyntL DaLPAJdg6oOiT1pFw2BYPkvBh/aAECMBQLR6HuhiAZ+vujOy3bkbByYSgC9lVrWlbXYh XgeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=oHS0srMr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz21si949963ejb.539.2021.09.08.23.36.26; Wed, 08 Sep 2021 23:36:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=oHS0srMr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350330AbhIIElY (ORCPT + 99 others); Thu, 9 Sep 2021 00:41:24 -0400 Received: from mail-0301.mail-europe.com ([188.165.51.139]:38897 "EHLO mail-0301.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350305AbhIIElY (ORCPT ); Thu, 9 Sep 2021 00:41:24 -0400 Date: Thu, 09 Sep 2021 04:40:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1631162410; bh=PZ6HBgkuXibr0gRzhr0DQAD1QhPhDCggyHpEpVtWVyw=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=oHS0srMrivQME6VWgmFuKvFB3f5wEOzYe55+b5jwHK2thu3fEberN0KhgB+OMmUTV KPDSjTFurtQyM+zdyhNi4Wj32AIrRSqdAzvZ+5YPJu+QcT6bmKFPHKa2k1UNyKIAIw nBCBsr08Ut5qzoFlF2XFaSCm/PLnREkm+bw2GOK4= To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring From: Yassine Oudjana Cc: Yassine Oudjana , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-kernel@vger.kernel.org Reply-To: Yassine Oudjana Subject: [PATCH v2 1/2] drm/panel: Add driver for LG.Philips SW43101 DSI video mode panel Message-ID: <20210909043904.12982-2-y.oudjana@protonmail.com> In-Reply-To: <20210909043904.12982-1-y.oudjana@protonmail.com> References: <20210909043904.12982-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a driver for the LG.Philips SW43101 FHD (1080x1920) OLED DSI video mode= panel. This driver has been generated using linux-mdss-dsi-panel-driver-generator. Signed-off-by: Yassine Oudjana --- Changes since v1: - Add regulator support. - Add MAINTAINERS entry. MAINTAINERS | 5 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-lgphilips-sw43101.c | 363 ++++++++++++++++++ 4 files changed, 379 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-lgphilips-sw43101.c diff --git a/MAINTAINERS b/MAINTAINERS index f58dad1a1922..46431e8ad373 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5899,6 +5899,11 @@ S:=09Orphan / Obsolete F:=09drivers/gpu/drm/i810/ F:=09include/uapi/drm/i810_drm.h =20 +DRM DRIVER FOR LG.PHILIPS SW43101 PANEL +M:=09Yassine Oudjana +S:=09Maintained +F:=09drivers/gpu/drm/panel/panel-lgphilips-sw43101.c + DRM DRIVER FOR LVDS PANELS M:=09Laurent Pinchart L:=09dri-devel@lists.freedesktop.org diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index beb581b96ecd..d8741c35bbfc 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -226,6 +226,16 @@ config DRM_PANEL_SAMSUNG_LD9040 =09depends on OF && SPI =09select VIDEOMODE_HELPERS =20 +config DRM_PANEL_LGPHILIPS_SW43101 +=09tristate "LG.Philips SW43101 DSI video mode panel" +=09depends on OF +=09depends on DRM_MIPI_DSI +=09depends on BACKLIGHT_CLASS_DEVICE +=09help +=09 Say Y here if you want to enable support for the LG.Philips SW43101 F= HD +=09 (1080x1920) OLED DSI video mode panel found on the Xiaomi Mi Note 2. +=09 To compile this driver as a module, choose M here. + config DRM_PANEL_LG_LB035Q02 =09tristate "LG LB035Q024573 RGB panel" =09depends on GPIOLIB && OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefil= e index c8132050bcec..e79143ad14dd 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -20,6 +20,7 @@ obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) +=3D panel-khadas-ts= 050.o obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) +=3D panel-kingdisplay-kd097d= 04.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) +=3D panel-leadtek-ltk050h314= 6w.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) +=3D panel-leadtek-ltk500hd18= 29.o +obj-$(CONFIG_DRM_PANEL_LGPHILIPS_SW43101) +=3D panel-lgphilips-sw43101.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) +=3D panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) +=3D panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) +=3D panel-nec-nl8048hl11.o diff --git a/drivers/gpu/drm/panel/panel-lgphilips-sw43101.c b/drivers/gpu/= drm/panel/panel-lgphilips-sw43101.c new file mode 100644 index 000000000000..b7adf1d4a8ab --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lgphilips-sw43101.c @@ -0,0 +1,363 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * LG.Philips SW43101 OLED Panel driver + * Generated with linux-mdss-dsi-panel-driver-generator + * + * Copyright (c) 2020 Yassine Oudjana + */ + +#include +#include +#include +#include +#include +#include + +#include