From patchwork Tue Oct 22 21:33:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13846196 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 12781CDD0EA for ; Tue, 22 Oct 2024 21:33:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D486210E233; Tue, 22 Oct 2024 21:33:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="Z6YXdbNq"; dkim-atps=neutral Received: from sonic304-23.consmr.mail.ir2.yahoo.com (sonic304-23.consmr.mail.ir2.yahoo.com [77.238.179.148]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E09B10E225 for ; Tue, 22 Oct 2024 21:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1729632825; bh=d3PSEJTlHbO4B5aoyFLEaPY5Crw8mhVYCvAnnHlRSn8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=Z6YXdbNqUb2wj0clYXrSl6IQWIEMdgTZN2rWEiJEKJEq69+Q3S3eoQEpAgsPRa3XzeTF6dI3hxcQ/c5jKtaZAYGwCyLHk4XngXC2sZFgDVV/ScWvY/OIkfc5nQp2C8uS4Em2g43GgEPMLgk+HGdwxd+zwka83lRtIM3hwhERyA5YflQQnrBzSa9FxKNegGZ5mDqB4raghy7bRgfGKwRFJxjLUN4EYdJWBWcU4nCblx7wCatPvtVuFeD8wp/e0N/ZRT1TGlNzR3wgmINYr0Xor3qFFNtdrsSx6R/2zlL1XKCOS/dktu7KmYiFD7wNXu5DtheUucDfvXOkWnReyXMm0Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1729632825; bh=OdncCgM/6kC0IYV5KHOncg9HN5JrhBIkwb+Ru/IT760=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=hnt4CGwvxoPw1Tbt2BRQvx34xODS1I+zfsSvYWfL6+mHInhJlo8r+962bQLgQgD0YPHBbaKWyPddqdJD5Gi5WR2Z91NBGenODfIPWRGoyQlc088UbZsuccairehMAX3v/1gFnbBbiELm3ISMQX7UpHas8j84qrHvGZZqLhzhie5tr4hTVfPCd2FASaR7YYTI5ywpy8ZkLOK9jxw5zCrBqnXNx4j52mL0fD74WUjBcKdMzcRCfFX8FVjyketF6IFyg2+gGLDy2frY7gb3CwjRqlS9OhOKOIHuIeUwwc44jo4sG6t//yvw1Zgebj04Nw6z0HNdBEVq+BvMMAEdx2myMg== X-YMail-OSG: GLsio1IVM1mKs4yXXBRW3KPsMmqnPkjezU.SxLtA_aeZLg_qwVKLRv.Z9sWuOgD f.0DMgZBiDjtzCe7N7xuvcZYPu1._HK7E8NPUhzHI_Gx0P2f_pgdUsitPeD3.YvXfskm71C20QNy C9.N1cM6rPvpIcH3KX6oLS0oS6gh_lInSKTx5fZzk6KSu6CDNdmuB7slHsLaCWjsNCM14p6mNxpd wBph03h98eyOrme7_2190WhuqpgxbEFrhrBcOCZZA81cGB.gW_.fvKzbYTYPEKD5NETIji4UaBq. dxcdcI3MA5H.sTsqfCYt597zjd53Buh5WrT1chAfo1walXQg88FGw0Cl3BwJgJSmy3EPjcZBu_a. BVDDFydACk0NGD78LHeG0YuKonrqaoozGY13oYdqqJxQ7haQC7meOrxeGwxRohOlESLnN3X5xPZ5 fFwE0z31oTdbnhz..OTrYFqCpY.sFlLSe8ArrcVsJxylc.4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_PAPaN1Z7MHu4_mZ 21JlmzvPsuxq1qD66r1_mxwNotNZsUizBZip4Bw9TwbQu_Ju58CqEGHQeN20SO5QcBFynxuVkLYS SLWMlyIlYw.KiLQHsHhE58_K8dL1wnEDnlczBUKGJpPtGD8gwVaV3tC96dxaz1bWMl1WuUxEswXD 18wrPe8m2lvTJfs0qGlWY1AkFxbDDp3pWXes.qAKDt70rDzGxIPLKddk7B2fxqnNRJQ265Gzt8Q. Z_uS_PI4yww0vo841HJx1CiEE2Y8RYZm4hpNYmcdPhXx4GayOpKQu73jWcx5GkCKfXbA27vdyU2R K6lyO7s2BwURIZ4pL3cuUoXqEjz40Q5d4S_ZGANcychzJZvfuAv4L95p0wVOjuWXvv9NI.a7wcK2 vjPnozKRD5TeyHDxWFCwi9jJu1VczDxVt0_a7YC3AtNKBbnFuXDDe40zRkI5Hh9d25levDDFbDkZ bd7ldJv97LJq0NxcoqqPiFRoPG3yjOQqt1AbdUgau6gDWXn.pm_REoVp.ryUY51fW7MTHPBScP0V F5QD5jq.Lkv3bhYzH1BSNtTN91tvCrCY7oqvGZfjYxuZBWtPzm1E0w5OINGN5Y0G6khH8Qbqysp8 8kd2GE32d2jW9Ndr0Y7ynUI.CNkXtbrhPjo2WQiCNNIhPF4lyCmzXguyRjBy4kb_Q1lcQa9OaCXy V0MGlUvJMhySUjJ59g1qVFsqI_88An8SxrCVUiOx6tHEuNCT83TNKZ.ju4X58W.nOrt300lK_GUG y3HL8Gmd2lO.WI_Q_XUY3I96XHqjPxnSzFbywV2RHk0kY9jMh X-Sonic-MF: X-Sonic-ID: 393e00c1-eac6-48ce-a59e-5499b218adc1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Tue, 22 Oct 2024 21:33:45 +0000 Received: by hermes--production-ir2-c694d79d9-qjs6q (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 00a5d0a4af66107c7c1614b6d685cac8; Tue, 22 Oct 2024 21:33:44 +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 1/5] dt-bindings: display: panel: Move flip properties to panel-common Date: Tue, 22 Oct 2024 23:33:35 +0200 Message-Id: <18a0d8787b5714633a574f2e15f0cec1addddcfc.1729630039.git.jahau@rocketmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: 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 flip properties were used by "samsung,s6e8aa0.yaml" only so far. By introducing "samsung,s6e88a0-ams427ap24.yaml" they become more common. Signed-off-by: Jakob Hauser Reviewed-by: Krzysztof Kozlowski --- Patch is based on current branch drm-misc-next. --- .../bindings/display/panel/panel-common.yaml | 8 ++++++++ .../bindings/display/panel/samsung,s6e8aa0.yaml | 10 ++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-common.yaml b/Documentation/devicetree/bindings/display/panel/panel-common.yaml index 0a57a31f4f3d..087415753d60 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-common.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-common.yaml @@ -51,6 +51,14 @@ properties: $ref: /schemas/types.yaml#/definitions/uint32 enum: [0, 90, 180, 270] + flip-horizontal: + description: boolean to flip image horizontally + type: boolean + + flip-vertical: + description: boolean to flip image vertically + type: boolean + # Display Timings panel-timing: description: diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml index 4601fa460680..19c8cc83db97 100644 --- a/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e8aa0.yaml @@ -21,6 +21,8 @@ properties: reset-gpios: true display-timings: true + flip-horizontal: true + flip-vertical: true vdd3-supply: description: core voltage supply @@ -46,14 +48,6 @@ properties: panel-height-mm: description: physical panel height [mm] - flip-horizontal: - description: boolean to flip image horizontally - type: boolean - - flip-vertical: - description: boolean to flip image vertically - type: boolean - required: - compatible - reg From patchwork Tue Oct 22 21:33:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13846195 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 4CCA4CDD0FA for ; Tue, 22 Oct 2024 21:33:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CEEBE10E19D; Tue, 22 Oct 2024 21:33:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="pvhyOJW8"; dkim-atps=neutral Received: from sonic305-21.consmr.mail.ir2.yahoo.com (sonic305-21.consmr.mail.ir2.yahoo.com [77.238.177.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7A68E10E19D for ; Tue, 22 Oct 2024 21:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1729632826; bh=h1lCgSE/gU2KPLaP5RWKCCeTWknmeiwR4F3guZcmDrA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=pvhyOJW8r6pGyAiaSVSXk/xJ2MnA0opx3a6Z8KcfKV0GbSi+sBrSI/vgE4cxIuWGNt57dTXQ1JERh0KD5oIzyKLcMJZi19iI0gAFCSTrua51RszNWIORVcbTodlEd+ytShypV6+FnUijO3be84KcQFb6uxZBBTRu6t0lEZiESa7ud+jEFsrUQKlgXXjmSfQfQ1Wb5VookjPNjgmOjRCZuNmbvEYU2yE0xUGpPz5D1vR8sP+/CXu2nm1G0AYDW7+s16tS1ug3WFvonMnrX66zvObDhkEvLBkh8yRlFgWQZeBmmampbUGWfwQDrdronGLkIOCUnvIJAZYxDzxlX+f1Ag== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1729632826; bh=X2uZdgF4fTV/joQRbapj2GYfAJ/NDlExMoKiPg862n5=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=kpsyfzhMyZhZW6+6VD5gRPw+fFltvwiSSalNQLDhhEAjNyYdVQvCM8JRh5B7VRKzcqgx2oRRJ7uXftOeVAPkYD8I9xMsNNcpbCJXzttHdJRinGDQ1wNdxltV2Wdhk/xbpL28LjIwhpzuOyfssyTzO1gKjgki5sdP5U7gm9exr05dtpor5h6eqxU4RONpli9y0iTKy4TCVtqDmSlFM4NBJcvlCC74xGEaI2bDVxZrAbrjA/Ks7SdfgxDQOwW08tsom4V+hlD6IPqiNpC5Q4WlwUTxHgQ7v5W47VxS3ogw98dbD4gzTBSqCUDQPs8UDna4jaFHCpx65PBudfDBKsDdvQ== X-YMail-OSG: uYbzB0QVM1mf1dkM1r4zs7YmR3EcQvTldkkAyoGCJ1L6tw9eLrGuzDyeRmFUpWr HVDrPj2_hGi2YdbM_LxPpapgAoQhc6HFt8ZMzEpc_o.fJeQUQqVjBRQbUsGaBdNg176DcLWV8u9A FjcjqOBgyHD173eSN41njm_ys_2Xyh_BfGzoPE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.jF h_yIV4Dp9G0ee2NHDDc1TxuLl8Rc0QOjJv7HhOSdH2GHUVrvK X-Sonic-MF: X-Sonic-ID: eb9a8438-892f-4e82-aa11-b6e2c1ab0dcb Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Tue, 22 Oct 2024 21:33:46 +0000 Received: by hermes--production-ir2-c694d79d9-qjs6q (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 00a5d0a4af66107c7c1614b6d685cac8; Tue, 22 Oct 2024 21:33:45 +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 2/5] dt-bindings: display: panel: Add Samsung S6E88A0-AMS427AP24 bindings Date: Tue, 22 Oct 2024 23:33:36 +0200 Message-Id: <25370285451d9c22204dfbaa368d48c22efd1eef.1729630039.git.jahau@rocketmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: 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" Add bindings for Samsung AMS427AP24 panel with S6E88A0 controller. Signed-off-by: Jakob Hauser Reviewed-by: Krzysztof Kozlowski --- Patch is based on current branch drm-misc-next. Changes in v2: - Adapted property "flip-horizontal" to being moved to "panel-common.yaml". --- .../panel/samsung,s6e88a0-ams427ap24.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams427ap24.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams427ap24.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams427ap24.yaml new file mode 100644 index 000000000000..2677bc578dde --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams427ap24.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6e88a0-ams427ap24.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung AMS427AP24 panel with S6E88A0 controller + +maintainers: + - Jakob Hauser + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: samsung,s6e88a0-ams427ap24 + + reg: + maxItems: 1 + + port: true + reset-gpios: true + flip-horizontal: true + + vdd3-supply: + description: core voltage supply + + vci-supply: + description: voltage supply for analog circuits + +required: + - compatible + - reg + - port + - reset-gpios + - vdd3-supply + - vci-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "samsung,s6e88a0-ams427ap24"; + reg = <0>; + + vdd3-supply = <&pm8916_l17>; + vci-supply = <&pm8916_l6>; + reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; + flip-horizontal; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; + }; From patchwork Tue Oct 22 21:33:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13846199 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 22902CDD0FB for ; Tue, 22 Oct 2024 21:33:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A5CD410E225; Tue, 22 Oct 2024 21:33:57 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="U10E7peQ"; dkim-atps=neutral Received: from sonic305-21.consmr.mail.ir2.yahoo.com (sonic305-21.consmr.mail.ir2.yahoo.com [77.238.177.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59FFF10E6DE for ; Tue, 22 Oct 2024 21:33:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1729632831; bh=70QVeRtyDiMg9KxW5Djk0oZQv4ngnf+PlKtHAYt3mCU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=U10E7peQ1sG0nDCQwHqanS5scnk/0khfL9xFVrBeI9EO/t9F7Fu5hXOoj7lD4iM/nrxe+LALhE66uvIssh5ZjSB+ikDOhjUNoSTWf7zRo72+Mh44IlV5+NlII7wT8JeWk21BJ86sk3dgzHuL7fNX7VoMXQ51fi39INcXjgXBeveBw7sn3diDJtGfNb3YX3brhfvkTeCHpUoyu4F9IrhVOcrIRV+Oa4qClH7gsmo2/kKJBKd5/vLSkOBKWBXCFWNxiOEe5zqJuypfumBqzYCwBs8Fr90FzTPr5J8aPO74pGymHlC8vm5r/ryxbBbxBYzSa9FCu9iuTcpGDEcjDgPwEw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1729632831; bh=N+Y8fbwXRY/dpy15/Is41TB5/5vs5e6EQmG4PmjqMXl=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=faETbkP32kEvtwHyUQR0mgNCc3t8IQBpfIVHDt+9kV2amKmFd6g9HdqmWDZZiQWzIXR6flHtLbj35PjYY8Dt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ka4r12pZcRtC Ecb44JeBapoWqM.Thz4mpDluoEJXbq4U9NALuYexWCdQ5arcUX9p47vE.8gx6OJezzs7na5qgHc0 jxj_Cw0lB.b9Du4voT2Dy6E29mTC.k2e02lp4caYn0ZsdQV2DdUCy71vflrrd1DxXmrpLtBAxCok VHj1Pe8o6NjNeCe0V3DieLJgEv8o.OHeCyX.UHqJdNZ6FXnsqY7XlrV2_UzE5l0JFiZkqEOWq.gO wj9UuOmOSo9slv2RznGMbjTaFNvDvAZVqy1hEsgxJ1HOuVFIHgoVaWZ1lO7vau20JjosgZHQFSjp E4eA0FnWsDlgLKrAd40rL8Qb1DH3dSrUXP_OkE9XU4gjuYNTJ3kFbpjbzKSKfLIDZ_gteivwvfie yTis_nnbaV_jZvNd1PQFG_4dbvgxGj1udm5MgKZuaNdFqUjuC2SqEz0RScImWN1guop9qwYjCCHq 9ayF84bDUzPcMaEWUyObH2UHPLOjoQ_bJDs4Ty7u.4TAMNymGJA-- X-Sonic-MF: X-Sonic-ID: 35b9d1d3-400a-4fc6-b194-8a75753c9daf Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ir2.yahoo.com with HTTP; Tue, 22 Oct 2024 21:33:51 +0000 Received: by hermes--production-ir2-c694d79d9-qjs6q (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 00a5d0a4af66107c7c1614b6d685cac8; Tue, 22 Oct 2024 21:33:46 +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 3/5] drm/panel: samsung-s6e88a0-ams427ap24: Add initial driver Date: Tue, 22 Oct 2024 23:33:37 +0200 Message-Id: <3a7d3e17e37819fa0a198a37d0c2f54de7b93971.1729630039.git.jahau@rocketmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: 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" This initial part of the panel driver was mostly generated by the "linux-mdss-dsi-panel-driver-generator" tool [1], reading downstream Android kernel file "dsi_panel_S6E88A0_AMS427AP24_qhd_octa_video.dtsi" [2]. On top of the generic output of the tool, there were a couple of changes applied: - Added mipi_dsi_dcs_set_display_on() to function s6e88a0_ams427ap24_on(), otherwise the display does not show up. - In functions s6e88a0_ams427ap24_on() and s6e88a0_ams427ap24_off() changed DSI commands to multi context and used "accum_err" returns. - In functions s6e88a0_ams427ap24_on() and s6e88a0_ams427ap24_off() replaced msleep() by mipi_dsi_msleep(). - The function s6e88a0_ams427ap24_get_modes() was changed to make use of drm_connector_helper_get_modes_fixed(). This also required to include drm/drm_probe_helper.h. - In function s6e88a0_ams427ap24_probe() registring the regulators was changed to devm_regulator_bulk_get_const(). This required to change supplies in struct s6e88a0_ams427ap24 to a pointer. - Removed bool "prepared" from struct s6e88a0_ams427ap24 and instead used framework-provided "panel->prepared" in functions s6e88a0_ams427ap24_prepare() and s6e88a0_ams427ap24_unprepare(). [1] https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generator [2] https://github.com/msm8916-mainline/linux-downstream/blob/GT-I9195I/drivers/video/msm/mdss/samsung/S6E88A0_AMS427AP24/dsi_panel_S6E88A0_AMS427AP24_qhd_octa_video.dtsi Signed-off-by: Jakob Hauser --- Coulnd't read out RAW EDID, /sys/class/drm/card0-DSI-1/edid is empty. Changes in v2: - 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. --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../panel/panel-samsung-s6e88a0-ams427ap24.c | 260 ++++++++++++++++++ 3 files changed, 270 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index bce4cb64184a..f8adc38447fb 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -632,6 +632,15 @@ config DRM_PANEL_SAMSUNG_AMS639RQ08 Say Y or M here if you want to enable support for the Samsung AMS639RQ08 FHD Plus (2340x1080@60Hz) CMD mode panel. +config DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24 + tristate "Samsung AMS427AP24 panel with S6E88A0 controller" + depends on GPIOLIB && OF && REGULATOR + depends on DRM_MIPI_DSI + help + Say Y here if you want to enable support for Samsung AMS427AP24 panel + with S6E88A0 controller (found in Samsung Galaxy S4 Mini Value Edition + GT-I9195I). To compile this driver as a module, choose M here. + config DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01 tristate "Samsung AMS452EF01 panel with S6E88A0 DSI video mode controller" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 4db02c2411ae..7dcf72646cac 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -77,6 +77,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) += panel-samsung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) += panel-samsung-s6e63m0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_SPI) += panel-samsung-s6e63m0-spi.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_DSI) += panel-samsung-s6e63m0-dsi.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24) += panel-samsung-s6e88a0-ams427ap24.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 diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c new file mode 100644 index 000000000000..0ab2768e0e2b --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c @@ -0,0 +1,260 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Samsung AMS427AP24 panel with S6E88A0 controller + * Copyright (c) 2024 Jakob Hauser + */ + +#include +#include +#include +#include +#include + +#include