From patchwork Fri Feb 9 00:16:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13550783 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 89A9BC4828F for ; Fri, 9 Feb 2024 00:17:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0AE2010EA8D; Fri, 9 Feb 2024 00:17:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="alBPcwmm"; dkim-atps=neutral Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5C9D810EAAF for ; Fri, 9 Feb 2024 00:17:35 +0000 (UTC) Received: by mail-ua1-f42.google.com with SMTP id a1e0cc1a2514c-7d2e007751eso175471241.1 for ; Thu, 08 Feb 2024 16:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707437854; x=1708042654; 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=zGPCYfl6jkizLcJNy3cF1Tzjj2+VVbxR8rofDxR90Kw=; b=alBPcwmmmQ5rFcrg1/LqHnjN4msML5YOMIOPqosmOBRu20VMJ9jbDYiaP7Dk4frcHj 9tux2BDDiyofwqAaEN2XrB+hfzWrZLeyWpOt1A77tYNIAluDtvORM+ThnF/UbMal6zD8 k0ASda2DfDIEognJ1fnpQQzy4OvmnIcDtdTiQU2w0gM4Qf/5L6qYrhu1aXoMLvNIO1eh 51jstGgjn6/vXuwMZdAFB9AI1htL/PpL18shrXy/jZRKP9xqNl+FWmKOlNR5KMXSkKf0 QiHF3LwnNtXOnZ9VQPIsEBsgGb/31ogBhSZxgRd3lDoa6MBb2y2O8Nvl5iotKHoE1UQF LA1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707437854; x=1708042654; 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=zGPCYfl6jkizLcJNy3cF1Tzjj2+VVbxR8rofDxR90Kw=; b=CAyGenVJD1pCXdeR/6RN3jf7gbViHg1biR0WpGM7nM/aB7JyaXxQMS+zhUjMaSK4O+ vcRjMlM1N8GN7OLGrYeCI78rJtcGkXkKEuBGHD2PF2rgss39snHwJSLOwJb1XjwRioEp 1EESi5tEjdOgUEPv5TDvqEInP+fZkJ43OJ64pd4hdWFhiuO0s60aH2AHkyminAr5HJIY yN+OHfQiOfyLMId5yHPkB0ft2w3Gy/QjB1kITyOUx5woyRs2UMtNInoJ4K4qGIzXNfmy D3yJwn+Zb2lTtXInmYYsGknucBdyjzZX8zNdKd1q4ZpAaV9ti0elAHo0KDKgaefY1WIO nZ0g== X-Gm-Message-State: AOJu0YwaEujSoXTuKfxp5YYM2Y/cFpoP64iEuzpL/tpaEDukykkWjH3w IXs9deR9d5yGfTD5mlBrZbK/DM5yGiEae72UMmpW2pz41JUxs8J5 X-Google-Smtp-Source: AGHT+IFQLJIJJYHAosyjO/LKhn9BM1hYHw9cGKBoo4dKEQeGaxZAwSv0pHA/+6SsjUQ5jkLcnh+UCA== X-Received: by 2002:a05:6102:32d1:b0:46d:606e:6323 with SMTP id o17-20020a05610232d100b0046d606e6323mr1147551vss.2.1707437854421; Thu, 08 Feb 2024 16:17:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXaG+0KPNKYwMBnfTafKLbOXco7l5jk14UkfdoUmWkFNv1s2BK0jO1hpo2hPxs7cdfZn+kuIVs7tzRkkSvGk2X/8+R6QtNFjIMK7wecD7SPPPDozRkcusqQ9LQrDIyF39qH77hGHhcrUOgHD0coAjfjMU2TU8STy4s27BVf0LamXUiIcJTfMaLL3MD7GAOKcFVh/fkIiKclRyTcXrkSLP6afSQUI3ZSWUTsizAMWG2mEtsvNo0E0gJF1o1uMSJSprUH8mFggE3lwhaaj1t64k0TW93zE84nrr/FSGslcvXXhHs48V0t5y1/5gW7TItpXgonWucgQyBgrJPBtI08BSalSPDM+FVPJ56joZjt4EK7T2Hri0erRpe6/kJ2WPIL2aQpNyYIvvNH5vYsWmDJDzlXKi3N4XqorpfnDGwldpy6KpolhhkkYdy9lzzcaz9QFG3cZRolQoBIuSA1R84tVGFLbQVO1ealOoLGbSAliGI2HCLYmwbUAhHwiFCDKjpqMdykelO9V0M+eV5i04LZb3yHYHXwexuoagxjbKARCjdWUDggDRSycwOFz5U+/6zflGrSR0SfpcHpEVpV Received: from localhost ([2607:fea8:52a3:d200::42b6]) by smtp.gmail.com with ESMTPSA id ks23-20020a056214311700b0068c87402da6sm291099qvb.14.2024.02.08.16.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 16:17:33 -0800 (PST) From: Richard Acayan To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Thierry Reding , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Richard Acayan Subject: [PATCH 1/3] dt-bindings: display: panel-simple-dsi: add s6e3fa7 ams559nk06 compat Date: Thu, 8 Feb 2024 19:16:42 -0500 Message-ID: <20240209001639.387374-7-mailingradian@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240209001639.387374-6-mailingradian@gmail.com> References: <20240209001639.387374-6-mailingradian@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" The Samsung S6E3FA7 display controller and AMS559NK06 panel are used for the display in Pixel 3a devices. Add the compatible for it. Signed-off-by: Richard Acayan Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/display/panel/panel-simple-dsi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml index f9160d7bac3c..d3abd7f4ebcd 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml @@ -50,6 +50,8 @@ properties: - panasonic,vvx10f004b00 # Panasonic 10" WUXGA TFT LCD panel - panasonic,vvx10f034n00 + # Samsung s6e3fa7 1080x2220 based AMS559NK06 AMOLED panel + - samsung,s6e3fa7-ams559nk06 # Samsung s6e3fc2x01 1080x2340 AMOLED panel - samsung,s6e3fc2x01 # Samsung sofef00 1080x2280 AMOLED panel From patchwork Fri Feb 9 00:16:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Acayan X-Patchwork-Id: 13550784 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 BBD76C4828F for ; Fri, 9 Feb 2024 00:17:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A434110EAE6; Fri, 9 Feb 2024 00:17:39 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iAmc5StY"; dkim-atps=neutral Received: from mail-ua1-f48.google.com (mail-ua1-f48.google.com [209.85.222.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6857610EAE6 for ; Fri, 9 Feb 2024 00:17:37 +0000 (UTC) Received: by mail-ua1-f48.google.com with SMTP id a1e0cc1a2514c-7d130979108so155057241.1 for ; Thu, 08 Feb 2024 16:17:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707437856; x=1708042656; 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=VI7NpR04woqFKKrNWS8b1ZeprL2xaI24KbMlS56T7F4=; b=iAmc5StYICWqy6JRUozuYsJe3P8lfaPHWjb/ZwE8w/dNwBpiKSY+3UA10mvddTCjsa WsrY6cUSliXKf0AWovstA4mfB0PMvFk/XaujmSkSCYq+jCac8tEMBTdqbALjeuxNBoaK pzmWY4Em2OR2pN7zFhIykooEaUvbk0a/mGLlG9gVU+cxEl0+Gx7S0IYNfPjv6ytEam5f G5sdcv0Xh2B/GanGDVnmtB2zl2+2nK9nRd4pr2/NH90szrhkyI1jKFrsrQK3rpT48gr0 HLQN4FX5sCTX7bd6ue5faXXg6Tn5RTKzRFFL5cGaCvZZotLwfHRVFV5+33BEx7rr0Zhc eHfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707437856; x=1708042656; 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=VI7NpR04woqFKKrNWS8b1ZeprL2xaI24KbMlS56T7F4=; b=iW5hZ73mfB9JMQ68YWBEQCgh2c1fKE7wJIDVoEQNm4PQZjzA4C0wEoahepd9oTbLyE AUhvdSN+/7woAFdtdbbk9x/e1uJbMVce8CpQRjomYh09hh7q1Tu9DXz0paxX2KIvun8K czxvnnmTv4Y+2fEp7nFdIYKBigoCTEWhJ0JPgYnf0yNkDkUQ5z94mtP4fG3YjlYtN5Va KhqqiaQ3NHZEsOlOaiYC2vwtUnnI7meZPd8aq588HFGbffuzbyP5DnN4gw6idnE1lldt Tx9Qh4OFymhXO+qfc0zV8JUmYZnWmg5rFGN6Tyin2/iu4qRIAiJ4x3jxG2iD694JCZD0 ZyKQ== X-Gm-Message-State: AOJu0Ywz/91nDp6A3zQYtlHR4wPGSRKw90kmK+SOxDtL4tVsX2FerYpI meptpH9TPspj87qGDv9LQz/dEE3Ypey4iCpjJdFYAg1vXl9TzN2I X-Google-Smtp-Source: AGHT+IE5Kw5KF0spQtmujydZo9Y0rXig4TwMpeXg5Dwl9dxKkZSYnycWrI5Gzq58YQiXIAWql+gXIg== X-Received: by 2002:a67:ec09:0:b0:46d:63c0:d589 with SMTP id d9-20020a67ec09000000b0046d63c0d589mr976218vso.33.1707437856287; Thu, 08 Feb 2024 16:17:36 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUJnPpLBpxwq03RDuqDhQbTWSFQDl7khtGxhaRz/rJjQHuVBQp9dZSsSpiZYFdE7rKqdexXhpvA0PC5gmeu39SgL5qVs4nmvTwyXi7LWY0y3sh8ZJifCCX42jiYBTh7FVLdaOU7xPGZZzs3uyFuPsRooXrR5Qv0hU4XlGapgl7V7w34G41O0zYVR1VviHH9D5zeuj2Mg7EA+dnrW34EWdb/6fPMf4E/IhEwexZfhFPqJGipxUJCqt1Un1f/YsvqJXy4AyagTV1xlquwLbg53qEeGX+xZZgOvGaayxLVZoig1L4WL6WfDcKqabzyFYov9Z8gd3jYVJ/T4ZLVZ00oQcuoZt4P00v0yAzMrxdmmIn/2lGJI/BdD7ZJEFBjQCKg4svaVMTefatJTKRdEFGLVoCLSe2+ROhXXK/iqetsJcXdGnj1tfXqJTOIleh+uo2r1BYGrAbIlPd8Pm+3EWbkjQOdY9SnfYBSbD7+B/mI+rvo6YYFB1mZ/7S0/WZh6m2beT9XE4Y1ZoJ7QBOlSZhPMlMc4WwY3J8tbuNsXTBXHzxmTPy2W092dJMj9e+f5Q9N/epcQMJ1vxrK6RrO Received: from localhost ([2607:fea8:52a3:d200::42b6]) by smtp.gmail.com with ESMTPSA id pg9-20020a0562144a0900b006819bb31533sm282399qvb.99.2024.02.08.16.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 16:17:35 -0800 (PST) From: Richard Acayan To: Neil Armstrong , Jessica Zhang , Sam Ravnborg , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Thierry Reding , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Richard Acayan Subject: [PATCH 2/3] drm/panel: add samsung s6e3fa7 panel driver Date: Thu, 8 Feb 2024 19:16:43 -0500 Message-ID: <20240209001639.387374-8-mailingradian@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240209001639.387374-6-mailingradian@gmail.com> References: <20240209001639.387374-6-mailingradian@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" The S6E3FA7 display controller is enabled in every Pixel 3a (non-XL) variant. Add the driver for it, generated by linux-mdss-dsi-panel-driver-generator. There are other panels connected to the same S6E3FA7 display controller, such as the AMS604NL01 panel, which are incompatible with this driver. Name the device tree compatible after the panel model according to iFixit. Link: https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator Link: https://android.googlesource.com/kernel/msm/+/7fda1cd7b64710dafac5f34899611c6d35eb4cd2/arch/arm64/boot/dts/google/dsi-panel-s6e3fa7-1080p-cmd.dtsi Link: https://github.com/msm8953-mainline/linux/blob/v6.6.12-r0/drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c Link: https://www.ifixit.com/Guide/Image/meta/muyjtLQTHu6MDkhK Signed-off-by: Richard Acayan Reviewed-by: Jessica Zhang Reviewed-by: Caleb Connolly --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c | 285 ++++++++++++++++++ 3 files changed, 295 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 8f3783742208..a693b03f680e 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -577,6 +577,15 @@ config DRM_PANEL_SAMSUNG_DB7430 DB7430 DPI display controller used in such devices as the LMS397KF04 480x800 DPI panel. +config DRM_PANEL_SAMSUNG_S6E3FA7 + tristate "Samsung S6E3FA7 panel driver" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the Samsung S6E3FA7 + 1920x2220 panel. + config DRM_PANEL_SAMSUNG_S6D16D0 tristate "Samsung S6D16D0 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index d94a644d0a6c..560b62129f68 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -59,6 +59,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_LD9040) += panel-samsung-ld9040.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) += panel-samsung-s6d16d0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D27A1) += panel-samsung-s6d27a1.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0) += panel-samsung-s6d7aa0.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FA7) += panel-samsung-s6e3fa7.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) += panel-samsung-s6e3ha2.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.o diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c b/drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c new file mode 100644 index 000000000000..10bc8fb5f1f9 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fa7.c @@ -0,0 +1,285 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Driver for the Samsung S6E3FA7 panel. + * + * Copyright (c) 2022-2024, The Linux Foundation. All rights reserved. + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + */ + +#include +#include +#include +#include +#include + +#include