From patchwork Sun Oct 27 23:42:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13852761 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 A3610D1358B for ; Sun, 27 Oct 2024 23:42:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E5A010E20A; Sun, 27 Oct 2024 23:42:24 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="O6ZmSXJo"; 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 08B2510E07E for ; Sun, 27 Oct 2024 23:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1730072539; bh=bEMEzlLeqTyqrTSC3aMnQ9DpUX57joNhMyQhW9NZGr8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=O6ZmSXJoJgHYINrD6zDe21/tOv60CNzjAbJ7o/crtb21xzsJGaxKbEG5bHuEoHfxTdiEIJzUwzkRIKjOuvtuB09ZlhAbyzr0fXI0jwIiFgKW3sQc3mxL7B4GEHYo2/VvDeXSPWrnrzRdD4UWwXxHbrNwFYBj6sim8MHjGxWJ7UiKP0acN2uAPGiqvsTGaeshN3CqzeQN9JquWu48p1hfZzmD0709DZEW75pDcTgvyVqO18XxhNZSoupuq32F19lDAT6POVw82jmmOosyL21ifFqrCqqMBGjVKY4DK9hRAz7Ariv/sn2JcoZ+Q3k11+zK4N59nl7XVbjPJbZJMDa0LA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730072539; bh=FCawKbN1H++h+BJ+ngu9VmLy+b1ZLPCLRMk7HCNyxB4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=IQIfInkCeIKgE36pBnZ0fmyluSimeXZptBBBv+GV+QXBJBJcc+QHF13CP2f16KKktsVrVk4nnq2ENEYQfUrA3MrBPfYHmaZOj0hUA/3WPSGWFjDAfpXbaHdBnV0/vB0NVTpeEOlaRQnaHpabQgTk6a0yxFAXC+4TaeSn8w7KawKfp+Ucyfz7tr1WyesqiPJPUukRsVPFhXU1Z1vNjloNz9iQhsSIk40HtjUWQB8mA6QBulbb+2AIdLSNOG91wulnE8XAy7sQTjntSabM0mj9IzbM4z9Hg0JrEe+epjGBBKTVLbcoP/ku4uPqLylk50fANU+GVTcIqFxbZNNvvJM40w== X-YMail-OSG: hypCiWUVM1mYgL.mkDqEhYFqOasE75GnN0kkLUKdW9m8gdhJzGwRTLGdRQUwll_ EIJzarx9nkMrK8SfK6jm5mpDrWfV3ScBPQJ5E3H_w.jXwMEkzBxSjdDWfiDREvGDT.7Bj8gsp3l1 U9Unx6mAYsi6kVO.RS.4H72JREe9DZVbJWMeHxkpXioQKASddmGk.2upYZxuCZy8fsQ2j4bCjA.j _2FOQURNE.zmcPT4FMIL7juj_JQTJSYMRYEmlFfVj8tJnAd3S_sVOLbMpq6qMGP4y1Ryb5qNb9GN ft4D3XMy1WVprpdgn18A3rFrQ8yP5zbNmUttKAJPmghZctxDczA2HYqrPl4zlDzuiOYk8wJC3gTc kPSIm7mZzECYqlqlMhFxUyfYaFvcMQJYx9exFA2wmFhUd5R6yFZhll6yVupfFWc1QH3Z9QOUPt0L 66CWl1E4YScWYRoFG.w351MLPZr2ZFu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uf9Kb3L1dtqHlMaU_mbXsBZMi4hyKAEnTZpRJ3jZWozSv2tLCs p4tBd4kfYZM2RN6ovx0mSyX8q3J54uKUEeM0PZsz5ztxua4CbU7_xye6PkJRm9czpcl4duzMRw.r HdPZqhCzYaetS6uN595E10gXKv.MO4x8MnZVJKW5tK_tR3RSNe4GbJykRGn8yNrl1pBJxPH3LStX 3eShFQM0YyerO0JOiVHwqjez7einz86AajPhZwP8nXmtvfvqOAI3XIrkwdui9ZYy3VUydZpkN3WW gG.1MRv1zh6w4RX5nHn_2ty3t27hZOCe9BWAYuMeDHdiFDxJn6KVpxK3uB1T4nr64XXeolyIkKoo fcNDav_V7YWg4bwNXMc9lCSfVEVDtEOOish4zLf7RI2Cx38Of0Pwz3B2IEJrZJfSuz2IpHCNFqHE 8YS0X1geCS80O2UdHUNqOTrGOqmqzsxnFvquPlasfIdQV81nesP9UhZ0Xo3Zy62aLKSzGmYp5.jA 3LPLfwLGb3ok9LLSRWXMwtdGQbG2rhuKHY5hQNVzz08y2mnyw9XnaObO6DD3KyNeJ72MONdt9eJe LVttuh0jJWMoeCSnjd1pimNa0IINiogASK5iA008RGCWn2XEqFp75l_UFdL4NjX20th6P5Vn1IuH hlq6GP6oPVhHWhW18CXYBE72hc_nzz3xgBnTESK6mho6vXSlG0aGg5SPcb0fppMbwf6Nf7dUEw6g Rk7W6.ZdW1DG2YdtnGKrkEHp3lCZOR2DGI0Bhuj6YlyNR6LVa7qr0p_1c.v9cBA9UpxW_qtUazTZ _LzonG6s6e3Fr6wf54bdBKF1DHpWD153oQyB79UQiAHFUp8TNNe0- X-Sonic-MF: X-Sonic-ID: c9d8d11e-8e8d-42e4-9c5b-d38efddee023 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Sun, 27 Oct 2024 23:42:19 +0000 Received: by hermes--production-ir2-c694d79d9-qzm27 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fc681596c483b48011d8a98a0d7203e6; Sun, 27 Oct 2024 23:42:18 +0000 (UTC) From: Jakob Hauser To: Neil Armstrong , Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Thierry Reding , Laurent Pinchart , Andrzej Hajda , Linus Walleij , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser , Krzysztof Kozlowski Subject: [PATCH v4 1/5] dt-bindings: display: panel: Move flip properties to panel-common Date: Mon, 28 Oct 2024 00:42:02 +0100 Message-Id: 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 Reviewed-by: Linus Walleij --- 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 Sun Oct 27 23:42:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13852764 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 96871D1358B for ; Sun, 27 Oct 2024 23:42:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5DBC110E221; Sun, 27 Oct 2024 23:42:27 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="HWahP+/M"; dkim-atps=neutral Received: from sonic302-21.consmr.mail.ir2.yahoo.com (sonic302-21.consmr.mail.ir2.yahoo.com [87.248.110.84]) by gabe.freedesktop.org (Postfix) with ESMTPS id 31F1D10E213 for ; Sun, 27 Oct 2024 23:42:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1730072544; bh=kM6i2o2nM6RchF+99bF35iyDd+PooEIpo890QP1+Q7I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=HWahP+/MtSUYbw3xFvT74ttA8slBRPIesULiBeqUw7i+0ZR1POEsoTqn7atM16qM43ryUyG11iPwSTTncL+m8X7QTgxYwFbwxjiFawJ4HY4mOHxs3zs+Q5wRipc3uDVyXVaZ1xOtViFS3snYtjZhxX7GWYZG7J9+iuTBLM/cTEcOuc1gaSLX4NK3Zuo66gGREsRIcDisGRV+ll3NKeit602OH8Ji1ivP7zFEsbOJ8LKUZwT6CmOnSoUONailuxq+p+J7XTyrOPCWqsLO8H4RL53SdDUiOFPNVM/8LoeAJyMyiTev8W7EuQsDegX8HbSCGy3kKDneA3X15MqWeRG1XQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730072544; bh=qQjTSUITOF4lNQEGQBBTh/UN+ZZBLNoQFZUleXxpbUn=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=A8h8RLRq1a+s3Cou6/Ac8r7liSrAL46QWk+YudyY9aoLzGVyScRmHzBEQYwUPybQ0ypHILcLi+AeZ+pYKFJfCj3e+uAwBe+ZjiNl7WMocG+NJReX5TAfY+BFffGviN+Hk8SnaF4lhILNvUiVoWb/nKnHA7Y5TaPy7+ynuHr/+X1trRa2Xuoi3HU2Uw/kR9wfWQgRsJrxrMMRRT0AinHXvv/FBhB7eqqy9wiW7pxQAbPL6PGT3EYcm0+Se00hCiarx7WghgsqXizxMsHPuJ2zurM3Ze1MVvLe1VYCtXC+dnAMXAHK78x0kcwXBCH2DTgdIB9fFC6M5WL2oAbr/XN/fQ== X-YMail-OSG: rVvfsI0VM1mC2RwJWLmQRa_oVtvIMGKQrbEjWU4lxCnbewuU31UWgZCu.IP23JD AudoLchvSsHE.VeLn4_xrD8uyGjiT3nyE_e2TDP.T8xfXwiVilnxeSGw0dAB7abu.wUsEMQ8nydK rlyF4CtNxt..b4p1.tdADMVwEXZIvP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ZODHzMCpYZaTZSribBFQlgf7XkWd44q7W TKxixtYL5xKk0xawM13cBRb9mx3QQvT6JU7P6BNowPw9HCnZfMA-- X-Sonic-MF: X-Sonic-ID: 1ed29228-5fc0-4434-84c9-220ddcf5fead Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ir2.yahoo.com with HTTP; Sun, 27 Oct 2024 23:42:24 +0000 Received: by hermes--production-ir2-c694d79d9-qzm27 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fc681596c483b48011d8a98a0d7203e6; Sun, 27 Oct 2024 23:42:19 +0000 (UTC) From: Jakob Hauser To: Neil Armstrong , Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Thierry Reding , Laurent Pinchart , Andrzej Hajda , Linus Walleij , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser , Krzysztof Kozlowski Subject: [PATCH v4 2/5] dt-bindings: display: panel: Add Samsung S6E88A0-AMS427AP24 Date: Mon, 28 Oct 2024 00:42:03 +0100 Message-Id: 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 Reviewed-by: Linus Walleij --- Patch is based on current branch drm-misc-next. --- .../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..db284ba5be20 --- /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 Sun Oct 27 23:42:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 13852766 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 EBF88D1358F for ; Sun, 27 Oct 2024 23:42:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5EFBF10E225; Sun, 27 Oct 2024 23:42:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=rocketmail.com header.i=@rocketmail.com header.b="G8gq/3Ue"; dkim-atps=neutral Received: from sonic306-21.consmr.mail.ir2.yahoo.com (sonic306-21.consmr.mail.ir2.yahoo.com [77.238.176.207]) by gabe.freedesktop.org (Postfix) with ESMTPS id 66A9F10E07E for ; Sun, 27 Oct 2024 23:42:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1730072542; bh=8XIBMPPJ42gdb5Y/4rMuxdsvD17E+KR1v4HtmxfGLTY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=G8gq/3UeSpd062yZ2kCFaa8ODQ0C0+WOjhJbvcgU46aueIomifbBQBsc96joFEe6IeuS2ZUOZ8sqTXa17ikj9cFtnEFab/wXuAsn/TWeHMEKRjTyZ/l9ux4xce0VrW2F/xo5GOkfzP/2HElZUHslov69+T7xT2mEGXY/9lkG5WEIEmQOae0ebFHP5jNcEVEtVoBPIBzchLdG6IkpEqM5f9DSpJtD4Umz9RVPNs0yldY4+9Om9/t07/JKfygGTAg240YBo9KmVn51t0Wo74c8mKyqogduD3WzkvW80KeKHhZbEp1eEK72bXQhXqH7R5wEF+3eBoLgo1OFkvJUyFLoTw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1730072542; bh=pUEGDzGQKxESuaOBAiC5fkjpdcuIXVxHR7QxIBzeSI6=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=MyUpYEH5S/xMu2mB+YoFzWrITjb/4+vbgFu/c/VsUqm7WjmriWoVGafAXzBPkQxxQO0l2Gor2uP0yf7ZNAXDAm6t8HjwVbEALDXy1rvdOacnJjwbru8g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p2qffHEDqDIN63vTk79az4a3FP2rHwcAHVd14npSJQSCAoiDlvpt1eJg4rPsVswVs Zouex65.PdyCSzI.1avwd7v07JpU_inRfkWtGExjftyP4TfUTMMmvBj7zV7cMAPaf3P8uSrGCN9q f4L472al3u6L.vnfBT_wmdm_CiCNPzsqf4nbqS6GG0k2pM0L2CJ4zHyOuPyHCE.4PNCJejfyqswr GFtjKZ.ZFZ6nEeuZQS3DIHQqWpG9qVeuR7D6pqtopcNSWjYuFedkjgRd.1sUnV991fGZ.UXMEL5D xjW9nw6VN99OT5U91Mb9DbgxCDKdEKIXrLe4UIeECFQWyKt7gGpvco8tUe5kW9H1Q5.2yXPiADrn dT2aYtvlk4iWtBfkL18mitmn_UElrFrAI9NU.5OIq4xMq5kU2_9CNPzAsTuIS.WJ4NkpmVsf97PD qcJWBkAMZ8TcnREqSC83GlxtP0LKQTyhTgiLVyRYih6iRzZFovQ-- X-Sonic-MF: X-Sonic-ID: 8aed8bf0-e626-496f-9a83-4ac2794e898c Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ir2.yahoo.com with HTTP; Sun, 27 Oct 2024 23:42:22 +0000 Received: by hermes--production-ir2-c694d79d9-qzm27 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fc681596c483b48011d8a98a0d7203e6; Sun, 27 Oct 2024 23:42:20 +0000 (UTC) From: Jakob Hauser To: Neil Armstrong , Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Thierry Reding , Laurent Pinchart , Andrzej Hajda , Linus Walleij , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH v4 3/5] drm/panel: samsung-s6e88a0-ams427ap24: Add initial driver Date: Mon, 28 Oct 2024 00:42:04 +0100 Message-Id: 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 according parts in functions s6e88a0_ams427ap24_prepare() and s6e88a0_ams427ap24_unprepare(). - Removed include , it's not needed. - Added comments to the mipi_dsi_dcs_write_seq_multi() lines in function s6e88a0_ams427ap24_on(). [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 Reviewed-by: Linus Walleij --- Changes in v4: - Removed include , it's not needed. - Added comments to the mipi_dsi_dcs_write_seq_multi() lines in function s6e88a0_ams427ap24_on(). --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../panel/panel-samsung-s6e88a0-ams427ap24.c | 251 ++++++++++++++++++ 3 files changed, 261 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..8e4d012667d7 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c @@ -0,0 +1,251 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Samsung AMS427AP24 panel with S6E88A0 controller + * Copyright (c) 2024 Jakob Hauser + */ + +#include +#include +#include +#include + +#include