From patchwork Tue Oct 22 21:33:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13846194 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 48978CDD0FA for ; Tue, 22 Oct 2024 21:33:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 84FF110E215; Tue, 22 Oct 2024 21:33:47 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="D3nkxIwj"; dkim-atps=neutral Received: from sonic313-21.consmr.mail.ir2.yahoo.com (sonic313-21.consmr.mail.ir2.yahoo.com [77.238.179.188]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6A6A010E19D for ; Tue, 22 Oct 2024 21:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1729632824; bh=JMNlRzCgDYxTAmHWxKRK/+FCIfeMeIE1yrfGOvvhnxA=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=D3nkxIwjRYeL1I4/a7L+GaOM9EZFZK12kvsr8GLpqyj3aUj8UdA4AFfE4WrDM4u4QGPxqqiOWyNSd+mlPURhH0T5BZl6OlxZToUxdX8kqivfkUYCkn4g0aVMuOsonGJTrNyl9GgPhWziq+TGwVQvnH/sY2XxzsLl9Vgbpw4fW2YSWA87GMqk7bnpvG/+RbpvlIO4ckoqyQ6tE6yI/zo1FAQJEoOQI3wi7wwl37IFREtoBC3cUw88YhKczY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YgOONdeTXn7li_xcutifJBZWhUq IeQCy3_SYdAYgfSWR5VS13WGpD5tzeP3dC2f2U_m5Sdw.K9ZDMDnQlWamR87La2sBopZGQxMqRp7 fmEicC0ULssYMKsIugx5HU6NJuy8K8SppsA3cG9G.nkCrorz.hmSqiGrg2kyjJErBdC09qFL0Ebp twlRFk_110_mUDqpEEOLwJAMecsXgm2bsxR_N3b4VXOZ3_j9biH.X5gErMpDpikt8xm41YY2xR9n cfswIX4hcNATSGud7fKlp7l4Zzf9L690VKd2OJnxxjacYT4SC63mfMSuLBU1uTYdQO6An4NYdDiB 9y4W8d3X0faQbM7AkdPSVvUvNUOlyd4pDRR7UNlRuVXWdxbGFbpiJsXjlOMa8Wt2nw.apysPONZX B1g1zaqcx_o9fgMnm2mefAimiOVano272X8MvNqliKmwfmoxwbD0vDeu4NmAX5jEiPQzW2lwWjZE _p2YYXDdfRzziO69qwi928YpTgDw83n4qr76dw.w2..NR_VpXXyzW1aSAC10Yo3Nyc.OpA6JyvXv fGEfTUw63JrtNrIuw1O5X95uhZlM6kV_Hgzogc2CW1A1hCBkNu6iegp20O2Zkj2eV_MszKxNU0Qk iiUvJ7bke4YLmQX60W1j7LzQTmbbpC4sEBu7WTEVi1gie3KExmUOyUUtUyESUJgfn0rWkuAUbRZE oGxhGolO2TUNLO_DF5575r0R9QabEHvbGQaLsQcdRyq5Sg9ln.nlaLxw4XAMNDPZAP3cwl.sr2aH zPik1dVOvujlFSTXPbVBKrAL5VnIn7oHaYbL5zS7wBC4- X-Sonic-MF: X-Sonic-ID: e7b7f317-ac75-45cd-b523-e90f89216074 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Tue, 22 Oct 2024 21:33:44 +0000 Received: by hermes--production-ir2-c694d79d9-qjs6q (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 00a5d0a4af66107c7c1614b6d685cac8; Tue, 22 Oct 2024 21:33:43 +0000 (UTC) From: Jakob Hauser To: Neil Armstrong , Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Thierry Reding , Laurent Pinchart , Andrzej Hajda , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH v2 0/5] Add new panel driver Samsung S6E88A0-AMS427AP24 Date: Tue, 22 Oct 2024 23:33:34 +0200 Message-Id: X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 References: 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 patchset adds a new driver for Samsung AMS427AP24 panel with S6E88A0 controller. Patches are based on current branch drm-misc-next. Changes in v2: - Patch 1: New patch to move the bt-bindings properties "flip-horizontal" and "flip-vertical" to "panel-common.yaml". File "samsung,s6e8aa0.yaml" needs to be changed accordingly. - Patch 2: Adapted property "flip-horizontal" to being moved to "panel-common.yaml". - Patch 3: Removed bool "prepared" from struct s6e88a0_ams427ap24 and instead used framework-provided "panel->prepared" in functions s6e88a0_ams427ap24_prepare() and s6e88a0_ams427ap24_unprepare(). Mentioned this in the commit message. - Patch 3: In commit message removed comment "Coulnd't read out RAW EDID..." and put it below the '---' line. - Patch 4: In the table "s6e88a0_ams427ap24_aid" in comment of the second-last line changed the format of "40,00 %" to "40.0%" like all others. v1: https://lore.kernel.org/dri-devel/cover.1728582727.git.jahau@rocketmail.com/T/#t Jakob Hauser (5): dt-bindings: display: panel: Move flip properties to panel-common dt-bindings: display: panel: Add Samsung S6E88A0-AMS427AP24 bindings drm/panel: samsung-s6e88a0-ams427ap24: Add initial driver drm/panel: samsung-s6e88a0-ams427ap24: Add brightness control drm/panel: samsung-s6e88a0-ams427ap24: Add flip option .../bindings/display/panel/panel-common.yaml | 8 + .../panel/samsung,s6e88a0-ams427ap24.yaml | 65 ++ .../display/panel/samsung,s6e8aa0.yaml | 10 +- drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + .../panel/panel-samsung-s6e88a0-ams427ap24.c | 771 ++++++++++++++++++ 6 files changed, 857 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams427ap24.yaml create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c