From patchwork Sat May 21 05:31:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Junhao Xie X-Patchwork-Id: 12857688 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC855C433EF for ; Sat, 21 May 2022 05:40:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354593AbiEUFkB (ORCPT ); Sat, 21 May 2022 01:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354537AbiEUFj7 (ORCPT ); Sat, 21 May 2022 01:39:59 -0400 X-Greylist: delayed 461 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 20 May 2022 22:39:55 PDT Received: from bigfoot-server-node4.server.classfun.cn (unknown [124.72.161.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F81617EC35; Fri, 20 May 2022 22:39:54 -0700 (PDT) Received: by bigfoot-server-node4.server.classfun.cn (Postfix, from userid 0) id 952D62129A; Sat, 21 May 2022 13:32:11 +0800 (CST) From: Junhao Xie To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, angelogioacchino.delregno@somainline.org, konrad.dybcio@somainline.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bigfoot@classfun.cn Subject: [PATCH 1/2] drm: panel: Add samsung fhd-ea8076 panel driver Date: Sat, 21 May 2022 13:31:55 +0800 Message-Id: <20220521053156.1374185-1-bigfoot@classfun.cn> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add Samsung Full HD EA8076 panel with a resolution of 2340x1080@60Hz Xiaomi MIX 3 smartphone uses this panel Signed-off-by: Junhao Xie Acked-by: Rob Herring --- .../display/panel/panel-simple-dsi.yaml | 2 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-samsung-fhd-ea8076.c | 339 ++++++++++++++++++ 4 files changed, 352 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-fhd-ea8076.c diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index 2c00813f5d20..baa0e8f6de3c 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -57,6 +57,8 @@ properties: - samsung,sofef00 # Shangai Top Display Optoelectronics 7" TL070WSH30 1024x600 TFT LCD panel - tdo,tl070wsh30 + # Samsung ea8076 1080x2340 FullHD AMOLED panel + - samsung,fhd-ea8076 reg: maxItems: 1 diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ddf5f38e8731..1e533576f691 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -526,6 +526,16 @@ config DRM_PANEL_SAMSUNG_SOFEF00 The panels are 2280x1080@60Hz and 2340x1080@60Hz respectively +config DRM_PANEL_SAMSUNG_FHD_EA8076 + tristate "Samsung EA8076 DSI cmd mode panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + Say Y or M here if you want to enable support for the Samsung AMOLED + 2340x1080 command mode panel found in the Xiaomi MIX3 smartphone. + config DRM_PANEL_SEIKO_43WVF1G tristate "Seiko 43WVF1G panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 5740911f637c..bacc1196f32a 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -53,6 +53,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_DSI) += panel-samsung-s6e63m0-dsi.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) += panel-samsung-s6e88a0-ams452ef01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) += panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) += panel-samsung-sofef00.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_FHD_EA8076) += panel-samsung-fhd-ea8076.o obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) += panel-seiko-43wvf1g.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) += panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01) += panel-sharp-ls037v7dw01.o diff --git a/drivers/gpu/drm/panel/panel-samsung-fhd-ea8076.c b/drivers/gpu/drm/panel/panel-samsung-fhd-ea8076.c new file mode 100644 index 000000000000..f793b025bd6d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-fhd-ea8076.c @@ -0,0 +1,339 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* Copyright (c) 2022 Junhao Xie + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: + * Copyright (c) 2022, The Linux Foundation. All rights reserved. + */ + +#include +#include +#include +#include +#include +#include + +#include