From nobody Wed Nov 27 08:46:27 2024 Received: from sonic308-18.consmr.mail.ir2.yahoo.com (sonic308-18.consmr.mail.ir2.yahoo.com [77.238.178.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4A4D1E1C3A for ; Thu, 10 Oct 2024 18:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.238.178.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728585730; cv=none; b=ZN6U966oj5O3q27UzF0ZNGp1P7tF6KeUrloV9NpupwD+WXyiAo7a84lbGaaJMw4OMr6aVCGKAAWcwDFz77/4q8AWutX2Vw0s+OdrchPKHqhL66j/Okh2iDG+/83MmYctTW8jvHWc5AaTckgFV8S8GTieAAZ/X27uOcLgS/kYl6E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728585730; c=relaxed/simple; bh=VJR9NQ2efHzfRgQtDZzAeM5DxMMYp4vaiW6QZ3ZumyM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eNs4ibuEHqAFL671y8xYSYYOosb7WrKqgjr7UA8c+QPoY3txptHNRYmSc/xAFISIS4c4+YEkLdoFVZSdHfic900+1sNkxai5v8VBB61s+TzbUy9UFRqvK6mutqW9uYSo9LmnhbDpirkhYeFiai+tBjSdYLOIACdYGO+r/muGyMk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rocketmail.com; spf=pass smtp.mailfrom=rocketmail.com; dkim=pass (2048-bit key) header.d=rocketmail.com header.i=@rocketmail.com header.b=irECrK1L; arc=none smtp.client-ip=77.238.178.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rocketmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rocketmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rocketmail.com header.i=@rocketmail.com header.b="irECrK1L" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1728585727; bh=jGaLpCXi0hWPUJkD+IJdr0e4LX3vaWBC+o7fEAUZV0c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=irECrK1LTtkJgmH/The/0PykernJAz73iUN2Hatwb+q5M7IbJb6YKSvV1sJqR/juDxGRgM2/0n1dFH6KLtQXtm8/y7v4eO7OGwGzWnTeYcWgpl6AIKs6970ZSCBEwHGU1sQTtTucO/4sfgHn63UqVShDUUbVZP4W4om1uLTFYheOd15uUPvj90zC+o62QDPZmgM9hQE/J7xqQEzDxgW4GyfINdSi5o8gtQJ5PiLPOYgXaploLxhPCUUxTtoOGzSuwnAKdfQeHj9oP3i3U8WB0vfhcQAhudbkomi7Gm3qElAAVkU2RNlx/oJwHyWwdZ+nPl4NfBtCACcqCQf1rZHR1g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728585727; bh=9SDK7n2mMfvT2Qly67MUnaLKuNsPbefbsmNhrAuzuz+=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=k12ngCCE5L7xILPzLFvfoWc6BCrF0/EI0WZ6v4W6B+DU1wmmwtwgheQbyGApfp67i3ENpjgLRVU0519qN7zpzRodLHBIOWDNwnA5uK2MaJgldpx+XHEsfoCJECXLJO5qgp3cotfQv0nIWjqOORwdLM4IG3LaNsvdXcLUv7e2M2j5YoQOfFdL7kKe7jjYiWH4HsAbOr96mYRjj9ilRsrCGAmGvxHFyul6QmmsaXbPrWgYkPtYuiGvr8SXB7WaUJtudTAttKr+Ff5riFDgLKiJZzjc4nDUq0OVOu0ONEFM0Z/XLq0aNSXPMWqvWcwfS/iaiCskIAGnxTOkCezbQrCpDg== X-YMail-OSG: 0567Y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TzqOm7HY8EGh_T4dOdsQaKRuQdPprn.fiNoAE 72kyx4bCE7eho9qaVBiKfAxx1PVuTWioOM2Z01PqyhXBuLS1ZB8xSJCrgU6XW5CJNwcdWu5gD23k aukZC9YthHe8SuCXcb.Ec1loQ72872E_NQS3mp1EGRvRl2T_u0sggUA1mfGlYWieea7TRLMiiv4r eo.zd5mCPxUlbZcfU9Ozz8DGFJhOa5swe6OUbVuF6pvK8ITRHgOf.UvYd X-Sonic-MF: X-Sonic-ID: a791284e-38df-4ff6-a31a-4522ea5a0e80 Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ir2.yahoo.com with HTTP; Thu, 10 Oct 2024 18:42:07 +0000 Received: by hermes--production-ir2-6664f499fc-97g4x (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7a7b462d09211a1a6528a42ebeb90f61; Thu, 10 Oct 2024 18:31:57 +0000 (UTC) From: Jakob Hauser To: Neil Armstrong , Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH 1/4] dt-bindings: display: panel: Add Samsung S6E88A0-AMS427AP24 bindings Date: Thu, 10 Oct 2024 20:31:48 +0200 Message-Id: <3d754a2ee538d4c99ab71340706297d54b767c35.1728582727.git.jahau@rocketmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add bindings for Samsung AMS427AP24 panel with S6E88A0 controller. Signed-off-by: Jakob Hauser --- Patch is based on https://gitlab.freedesktop.org/drm/misc/kernel.git current branch drm-misc-next. --- .../panel/samsung,s6e88a0-ams427ap24.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung= ,s6e88a0-ams427ap24.yaml diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e88a= 0-ams427ap24.yaml b/Documentation/devicetree/bindings/display/panel/samsung= ,s6e88a0-ams427ap24.yaml new file mode 100644 index 000000000000..7010d3bbd07f --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams42= 7ap24.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6e88a0-ams427ap2= 4.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 + + vdd3-supply: + description: core voltage supply + + vci-supply: + description: voltage supply for analog circuits + + flip-horizontal: + description: boolean to flip image horizontally + type: boolean + +required: + - compatible + - reg + - port + - reset-gpios + - vdd3-supply + - vci-supply + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "samsung,s6e88a0-ams427ap24"; + reg =3D <0>; + + vdd3-supply =3D <&pm8916_l17>; + vci-supply =3D <&pm8916_l6>; + reset-gpios =3D <&tlmm 25 GPIO_ACTIVE_LOW>; + flip-horizontal; + + port { + panel_in: endpoint { + remote-endpoint =3D <&mdss_dsi0_out>; + }; + }; + }; + }; --=20 2.39.5 From nobody Wed Nov 27 08:46:27 2024 Received: from sonic313-21.consmr.mail.ir2.yahoo.com (sonic313-21.consmr.mail.ir2.yahoo.com [77.238.179.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81B541CEE85 for ; Thu, 10 Oct 2024 18:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=77.238.179.188 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728585730; cv=none; b=FE5RaMSgOLsM0AnfmXwPCinpJ4Y2RD7CC+W4Of3ojwJSY/xascoUxu+vpLmKRzY8TOtAVGehmzsZSxakOpkqYptTFN+Bxn+lM6TSAk0E1KvoUe8P+j+qklHVfIbTmSSizb4bC1lJFntJxEnjmMVXJqX0Mjo4DxHY3IOy4b93Ly4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728585730; c=relaxed/simple; bh=RLoASV0tuN6BS3Rlj7Ph0YGO3InAKCMnzst6WrMalQs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BClKFnB5kbC3wh8v86FS71D+fk6NkvdR5qehY94K2P6/XsgnRQSI8B1Fa/7AaMT/2mR4hiELYClRNbhFT9rsuoFSXiT3w1fj8RyBjfYI/t2Gl9wEJQ5ar0h3awVvSo3uj+kHWJ27gNp1T9Z9KDhv08zh4tI6A75TeeDFA/e74M4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rocketmail.com; spf=pass smtp.mailfrom=rocketmail.com; dkim=pass (2048-bit key) header.d=rocketmail.com header.i=@rocketmail.com header.b=YTNG6IR5; arc=none smtp.client-ip=77.238.179.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rocketmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rocketmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rocketmail.com header.i=@rocketmail.com header.b="YTNG6IR5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1728585726; bh=VQ4NzBF3TD+BrXUOBvpilZ2FzFEEeRSPx8VYOZUJm+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From:Subject:Reply-To; b=YTNG6IR58L+QoRX9ezQkkQglZ6ET+wn7C/O7lrLebzMvFkfOtzhD0+Rl13tTIUCypLZqwFnrxsynXdFIkB82iA9qkwTcx7Jv3ynVyZ5ImDkV+I7Z35bg+jxYYXvKJHOyN2vVEW/ofy6i0fGxebPcrgkj51Zskw5ygyoOPYGIbDYvj5UE8BD6CU/P6SAxCXeX9wwLGwJymUFcXJz5LInu7JtAGoiOqrgXlrrZRNnImnoljxUYVFXse50EhbY8CYI8b+akRP1clv8nb22TU3W1POVMMJ6vp3pZ8B9dIx4T243ieV5ONdrxMJOe1Okv6Q55k8lXbl48a4O4R6CybtOdNg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1728585726; bh=t+NKXkmDWLGOcZJhVj9mgI8IEtOm2dRGZfPUjB53vSM=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=I1+nJcwjF8PEqjM4T1BeSMvMxgXoirigJGSr8FE4QAWqGZbjHDPNwPg+JPy9MuLaia8B73WtMh1dJZNlrHvwDwLgqLdfe2+0jZ0se7E5GYy9WL5jLN9qydLsVi+U/zj4TahTfWr0gnXbWMYuFCypf8SXSMIGVxuaUjyI4rCgXTY7X3bl2QpwMXOodNfEGlVOIuM0Sezl+6roYE19NyGjYl98TEv9YfEKvk0CjUiv9xxiGYAMoxfKLCqxByDEOIqYia6GGZSHVKnzpOaUGpPCo08P/IyEbOW2rZb1uLOLeqkW2YKaqrNT2y7Mjd2OVGvtUm2r+ZXlci+mX6ePL45uPg== X-YMail-OSG: 3biwbCAVM1mlJm9aOwgaudQl_eL6hS4.hyv1B4KHFQJSm4uZSVzsPG1b0yv0BE. cJ0GXBSGPN4yhowR8EbDZSg5He3ro0ikTBf2q9TtbPymfUsn480CGgrwlmHU8oh6wtQ0WLQUxl_p yvO3BSy0pMsgkiwm9XZCpUnPs9eCwPW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Y2VOBD7IEdbobCd5wwRs.tndvMXK4yeits 4mj1SPDU8L67uSp3iLRZl.Y8EExK7MFIbbIUAtn7ZyHR58jz1lhhuPzle5Q-- X-Sonic-MF: X-Sonic-ID: c3365b06-8d82-45d8-b1b1-a24869898cf7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Thu, 10 Oct 2024 18:42:06 +0000 Received: by hermes--production-ir2-6664f499fc-97g4x (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7a7b462d09211a1a6528a42ebeb90f61; Thu, 10 Oct 2024 18:31:58 +0000 (UTC) From: Jakob Hauser To: Neil Armstrong , Jessica Zhang , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH 2/4] drm/panel: samsung-s6e88a0-ams427ap24: Add initial driver Date: Thu, 10 Oct 2024 20:31:49 +0200 Message-Id: X-Mailer: git-send-email 2.39.5 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 chan= ged to devm_regulator_bulk_get_const(). This required to change supplies in s= truct s6e88a0_ams427ap24 to a pointer. Coulnd't read out RAW EDID, /sys/class/drm/card0-DSI-1/edid is empty. [1] https://github.com/msm8916-mainline/linux-mdss-dsi-panel-driver-generat= or [2] https://github.com/msm8916-mainline/linux-downstream/blob/GT-I9195I/dri= vers/video/msm/mdss/samsung/S6E88A0_AMS427AP24/dsi_panel_S6E88A0_AMS427AP24= _qhd_octa_video.dtsi Signed-off-by: Jakob Hauser --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + .../panel/panel-samsung-s6e88a0-ams427ap24.c | 261 ++++++++++++++++++ 3 files changed, 271 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 ddfaa99ea9dd..fa6a8c6cac5b 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -623,6 +623,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. =20 +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 4b5eaf111676..3002087c26d1 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -76,6 +76,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) +=3D panel-sam= sung-s6e63j0x03.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0) +=3D panel-samsung-s6e63m0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_SPI) +=3D panel-samsung-s6e63m0-spi= .o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63M0_DSI) +=3D panel-samsung-s6e63m0-dsi= .o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS427AP24) +=3D panel-samsung-s6e8= 8a0-ams427ap24.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E88A0_AMS452EF01) +=3D panel-samsung-s6e8= 8a0-ams452ef01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) +=3D panel-samsung-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) +=3D panel-samsung-sofef00.o diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c b/dri= vers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c new file mode 100644 index 000000000000..182ba8c347e2 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c @@ -0,0 +1,261 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Samsung AMS427AP24 panel with S6E88A0 controller + * Copyright (c) 2024 Jakob Hauser + */ + +#include +#include +#include +#include +#include + +#include