From nobody Mon Feb 9 06:05:06 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 369723469E6; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; cv=none; b=ZWkS/yfSt0W8yz4epnDBc6SdqWguFe3/zuQFFKAqOu/J3aLqXBQ+fazB0NMQ5LbvVaWf7e/PDN6Q5p9K9twsuCDMeISXhyOAyjeiVnHrWBjBrNoCUd46YmrbPB6iJSvo3/fOhZ1M0DU8r/sslV8tsHgyY3fWBZYwq1SAC4CzOIQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; c=relaxed/simple; bh=Qkiyvvuujfy0+hCv+b+iybEvtauHe7+M206ftVJiL6s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HYOr6P5rdDbkarZsQeFOWhExCHdTKnTi44SPASPDdJ3NRi4hyZIPjWE+jm3c5zc3GI1c6VQ/sYpzwV4xzxGS+Y3/UcOgLcDdPtokD/UC9qjtl5qGpdFC9RGavhE+8vPp1+HldrMjHi+9h5QshRwRqlgmzrQFscUNJwseRl8TrDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oY8we5aE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oY8we5aE" Received: by smtp.kernel.org (Postfix) with ESMTPS id AA534C4CEFE; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760631419; bh=Qkiyvvuujfy0+hCv+b+iybEvtauHe7+M206ftVJiL6s=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=oY8we5aEuM1Xab4vCXjBxoSVUbwTNoGd6+WX8pryWMoIy4cgsTDpti/QMOIetiV2+ /xWwYGlT3pvnrIP1/NQxFW1yTjsjKFnNYF2AxmIopfRwI7PFZ0lLfqbqH1ZrDC8sgg FGqMrTZ1ZuAztd0LU59t/uWgKZRF9wTKgA9fnLibnnBTdYkIvst25JrSDiKAUEXxys FhCMs0VEI43nhFqBMP5zAttnsL382rsf+WbZXpDcv84VgeEeQ7IYDZs+iNwDQl6qDn RGXcQUFKtNOQV9XG0OOCWLZ1XMSPie0Ca0RJglDpj5weh6bV4a2eXDXPXgWuUng+j/ UFkmutzM3Yi/g== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93588CCD199; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Thu, 16 Oct 2025 18:16:56 +0200 Subject: [PATCH v3 1/8] dt-bindings: panel: Add Samsung S6E3FC2X01 DDIC with panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251016-s6e3fc2x01-v3-1-ce0f3566b903@ixit.cz> References: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> In-Reply-To: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Sam Ravnborg , Bjorn Andersson , Konrad Dybcio , Casey Connolly , Jessica Zhang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=3282; i=david@ixit.cz; h=from:subject:message-id; bh=Sb4b37DxYW3GNWkR8ByZZP12N7nY3x9gmVU7fcdXF6o=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo8Rp50NSlifCBwThrfHb5PQbAS3p84TC/e56ri cTQ9h5m5CyJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaPEaeQAKCRBgAj/E00kg cqp7D/9kbCvdPNQOq5UcWkFNL38MMOk3pdCq0sNYeD7/7RkYutfvJYtW3C7y4Oo1EsC6XHliT9X dmPzaTOdXkr3wg3c0L01Ws1pQTgNqdeXWA20fzYjjOFzK0pvK+LDAwIpElMmSeq/N5kR4XTP8rZ Sjcp0PFd3NWgvLV5kv3pIG+J9U34K6XbasdNUZUSKRsehuKGXcR5yK7Kg44cukias7u6E/6IM5J TU2s2oiKrwSQ6V68Hrm1hpBAtcLqb3ULLlct1CI0zzVa2IStkGh9bQzjr3o/tEVv9GNQSI7Zkoe bRW70QEFELa8GRaO9AAVQJ5Nq3rJgI4xJpBDIIG9wT5h3ZHN+kwMCxHwtqZdhkckGksLWLJoo9S dcYuWYvR08fswaUqS6WEwSEXueyBcBu0fkSVQq2UeBclCugP5L2NJf+bUhbxZdwLVW6V1IziOF+ RrbUk3I3ecZGPOJ3hVI/H39g8VTHzKPDjJvyCjaXPwNRomCQPrdCeT6um7yOCsgN1+LZA/z1Yqq K5jWASmsNwP8/8nuR2RRmTe25qDUTYbZtzm6D576sW9p7rdPhEW++TZjMZ7zpCEhXcdjhKpoVcd hNLswPSRRtiBDYG8kpabvhz1WqtXeCxBAVp2BnVlfehUtpMiMB3rsp5FCO7aqR6ePUqL17WlLkC iqFWgE3LfY9UN4g== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Basic description for S6E3FC2X01 DDIC with attached panel AMS641RW. Samsung AMS641RW is 6.41 inch, 1080x2340 pixels, 19.5:9 ratio panel panel-simple-dsi cannot be used because it's limited to one power-supply, while we use three. Signed-off-by: David Heidelberg --- .../bindings/display/panel/samsung,s6e3fc2x01.yaml | 81 ++++++++++++++++++= ++++ MAINTAINERS | 5 ++ 2 files changed, 86 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc= 2x01.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc2= x01.yaml new file mode 100644 index 0000000000000..d48354fb52ea0 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e3fc2x01.ya= ml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/samsung,s6e3fc2x01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S6E3FC2X01 AMOLED DDIC + +description: The S6E3FC2X01 is display driver IC with connected panel. + +maintainers: + - David Heidelberg + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + # Samsung 6.41 inch, 1080x2340 pixels, 19.5:9 ratio + - samsung,s6e3fc2x01-ams641rw + - const: samsung,s6e3fc2x01 + + reg: + maxItems: 1 + + reset-gpios: true + + port: true + + vddio-supply: + description: VDD regulator + + vci-supply: + description: VCI regulator + + poc-supply: + description: POC regulator + +required: + - compatible + - reset-gpios + - vddio-supply + - vci-supply + - poc-supply + +unevaluatedProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "samsung,s6e3fc2x01-ams641rw", "samsung,s6e3fc2= x01"; + reg =3D <0>; + + vddio-supply =3D <&vreg_l14a_1p88>; + vci-supply =3D <&s2dos05_buck1>; + poc-supply =3D <&s2dos05_ldo1>; + + te-gpios =3D <&tlmm 10 GPIO_ACTIVE_HIGH>; + reset-gpios =3D <&tlmm 6 GPIO_ACTIVE_HIGH>; + + pinctrl-0 =3D <&sde_dsi_active &sde_te_active_sleep>; + pinctrl-1 =3D <&sde_dsi_suspend &sde_te_active_sleep>; + pinctrl-names =3D "default", "sleep"; + + port { + panel_in: endpoint { + remote-endpoint =3D <&mdss_dsi0_out>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 4250ceabf6ff4..d11dd6c7a6b27 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8056,6 +8056,11 @@ S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6d7aa0.yaml F: drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c =20 +DRM DRIVER FOR SAMSUNG S6E3FC2X01 DDIC +M: David Heidelberg +S: Maintained +F: Documentation/devicetree/bindings/display/panel/samsung,s6e3fc2x01.yaml + DRM DRIVER FOR SAMSUNG S6E3HA8 PANELS M: Dzmitry Sankouski S: Maintained --=20 2.51.0 From nobody Mon Feb 9 06:05:06 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 369FA34DCDD; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; cv=none; b=Xx6DDvtLp0iZoMat5jKXw9+W6UOGjNxLdOa6K20eQuY4Y2HkMrZvbpMiCdyBalbozMPofJGLfJzlmT7JmLmhrsc2rV0ZFyUo2G3dKNW6LkgwcLpkxiQxw0dLozzaryyaePrW64ItScmZ4BTXDNnPK089KFzdvc1ZrL5nMa5ZYwY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; c=relaxed/simple; bh=fAswzPV9nMqsv7sYEBsIdB1TES3apuonI/p0V1BpQPw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eY8AU2kiNuBBBuCjEHpGJ9TXHUj6yoZVmW67QYovDas77ZvkzsYeEbp/FyWQOu2hyQPnDC5DHU7BYDC4Hs/Rg6D5sKXqneM75Lp9zikHNMKxDLBzM4KPX+M+dc0xp3Ffgs9hWGyZ06nEuNKORvP6G9x9DwHsqSWp5EcAx0uo8Zs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FxEauyvC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FxEauyvC" Received: by smtp.kernel.org (Postfix) with ESMTPS id B8BA7C19421; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760631419; bh=fAswzPV9nMqsv7sYEBsIdB1TES3apuonI/p0V1BpQPw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=FxEauyvCPCLIvbOIMNPwGb/6S0P9gP8E2nnlJ3coNEU1qHbnCM7FpmEIdYSTc6a3b Pdmkj4NArjLZK9ERnnlXANxpDeE/mhpv4baWvTM4oYAtdAPA2OhGdPk1CXLIxTYhmO ZYoSXLh7f/o7A9ExZYgHg9yXSXHAmW4p/d9AzUgy5BYdERQSdLxtOXE+XrLhoCeGnJ A7pZWfJMlA67pQ0OwgFAtTKLGVSDubMjw49Re4uqL0mGMldijHLHsyMmBhcYIFhUC9 9o8om7cQLoEIj0+GPNLULp4cUH+m2hO3jEnQtlpYiI/n5Dn08RVn4dz1pW6rg+ts45 hj13ueyp8AgLQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7C2DCCD183; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Thu, 16 Oct 2025 18:16:57 +0200 Subject: [PATCH v3 2/8] arm64: dts: qcom: sdm845-oneplus: Describe panel vci and poc supplies Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251016-s6e3fc2x01-v3-2-ce0f3566b903@ixit.cz> References: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> In-Reply-To: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Sam Ravnborg , Bjorn Andersson , Konrad Dybcio , Casey Connolly , Jessica Zhang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2735; i=david@ixit.cz; h=from:subject:message-id; bh=wyoU9d3slp1a80oxXbHjL+liib53t7o67lGGsu4UofI=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo8Rp5dgtTSdWd75kUXSvsl9NH1ddgakNs5b3Hm GVrQwSW+V2JAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaPEaeQAKCRBgAj/E00kg cvS6D/9PVWcLp6Bfew4uYW7Eg4WK5udIZEyZEede5wK6aU9K07ZKULQw37rxybNuz+l+VFzgBFQ 1Yr2KW7tYYTctWiFqYO9V63N5HQdXYylB0ghCZiuApKmeiS7xIpVZLXuySZOTqR/FOz4Eo0/rhm VNlFUEHFUGMH4MXIiYej9gzL8KqmlFv78MU3ysbOkoPlBA5XiKgHJRtfj+oEOpe0Adqv+hoY7Xr Nj90X6fxFJoEymE7jw9WxuisFMi5armKEzmHwrJi0dHCb4+mqQJJ+yCvRH2dzV98fvvdk3knavX Omux62Z+pp0kFZi3lMqggnQ3RBOWvcLKXC4jSk+jxtC16OCx/xWNcJntslnwSXD8nEybUivQh8O fgw+0dWeKF0nZVtCJYjj6uQYgn8bn7gj51PzbwpYj4S8xQySLstcI6lflhgikTmo9LmbAiCf3Vu SWP9yoal62SMaOUnrM4VALHisfFgI7qziLGJKHlLnHAjJ9lz/LqiKDj9Jyr1srKe6LDeB5u8I7p xcRfI8QzfFrAgqYl2m2+gZhqWubB+cTZV7fdSiqi29lc+FSwaNzzuo1purULdwGpdi3s6wJQPtc mYPAsVSbCeN4DVnKhu1L22h8aLqytso//PdFNLap+wAQPnnPy2LTStT1aiBPzwjT+UaqsrsnIqo NllzFcReDRwI6Cg== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: Casey Connolly There are two additional supplies used by the panel, both are GPIO controlled and are left enabled by the bootloader for continuous splash. Previously these were (incorrectly) modelled as pinctrl. Describe them properly so that the panel can control them. Fixes: 288ef8a42612 ("arm64: dts: sdm845: add oneplus6/6t devices") Signed-off-by: Casey Connolly Co-developed-by: David Heidelberg Signed-off-by: David Heidelberg Reviewed-by: Dmitry Baryshkov --- .../arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 46 ++++++++++++++++++= +++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm= 64/boot/dts/qcom/sdm845-oneplus-common.dtsi index dcfffb271fcf3..1cf03047dd7ae 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi @@ -162,6 +162,34 @@ ts_1p8_supply: ts-1p8-regulator { enable-active-high; regulator-boot-on; }; + + panel_vci_3v3: panel-vci-3v3-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "LCD_VCI_3V"; + + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&tlmm 26 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 =3D <&panel_vci_default>; + pinctrl-names =3D "default"; + regulator-boot-on; + }; + + panel_vddi_poc_1p8: panel-vddi-poc-regulator { + compatible =3D "regulator-fixed"; + regulator-name =3D "VDDI_POC"; + + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + + gpio =3D <&tlmm 25 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-0 =3D <&panel_poc_default>; + pinctrl-names =3D "default"; + regulator-boot-on; + }; }; =20 &adsp_pas { @@ -429,6 +457,8 @@ display_panel: panel@0 { reg =3D <0>; =20 vddio-supply =3D <&vreg_l14a_1p88>; + vci-supply =3D <&panel_vci_3v3>; + poc-supply =3D <&panel_vddi_poc_1p8>; =20 reset-gpios =3D <&tlmm 6 GPIO_ACTIVE_LOW>; =20 @@ -803,6 +833,20 @@ hall_sensor_default: hall-sensor-default-state { bias-disable; }; =20 + panel_vci_default: vci-state { + pins =3D "gpio26"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; + + panel_poc_default: poc-state { + pins =3D "gpio25"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; + tri_state_key_default: tri-state-key-default-state { pins =3D "gpio40", "gpio42", "gpio26"; function =3D "gpio"; @@ -818,7 +862,7 @@ ts_default_pins: ts-int-state { }; =20 panel_reset_pins: panel-reset-state { - pins =3D "gpio6", "gpio25", "gpio26"; + pins =3D "gpio6"; function =3D "gpio"; drive-strength =3D <8>; bias-disable; --=20 2.51.0 From nobody Mon Feb 9 06:05:06 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05BC32E54B3; Thu, 16 Oct 2025 16:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; cv=none; b=K+sqMPt0dkJPivjKCAAHO4+14IEziMOQTl+jcShrtKPpZDfeVVRjc4MYtUheLM27NFcZLmEp324qgTTupv+kaBzASpeCUNJEuFn35+XG1thonoaoVAMDDgAcA2+vUt9QuoJRCV5HlDBCwlPBGt0ZF+cZHVJU/zwRpnOqruug9CU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; c=relaxed/simple; bh=bnBK6gQXArLuqQ7PsSO5Q8xoCk11qgz4xqMAxigrWp4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U04aA272u4xLG+uyb9S1oX4cNnTCgyGuq1IU/pTVGJshmG1mqFDYgAYL45O2vB2StJ35rQTl+WmHQMktpsgPKEjPFa6K+Hyt78t7HmtVFrnT3PgDh4qBbfWc3PuZhj4JLLzZrLbdGxdT8ROwJXQzJaiOgCOSbrOp3gicav+Un7Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WBfsoMsj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WBfsoMsj" Received: by smtp.kernel.org (Postfix) with ESMTPS id C4F26C16AAE; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760631419; bh=bnBK6gQXArLuqQ7PsSO5Q8xoCk11qgz4xqMAxigrWp4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WBfsoMsjYv8n54e9df80eI9HFjHyudKk7oJGQxwitlkpU+eo8SYnX1Sx/vt7hZtTE g2Aqw/oXeM2eHooc7rxHW+icwCv1E+toJQQ+8JfoaUD0gGhvNdXJFkyhuWFAYJg8lE O/HP1l9HEw6R1dHPtqLRFjmA4clI7F/t1mszwG2KCz+wJGHyZ8SfV2Doi7CPpmSbvy o1dFk3GvmgEKkCDb5wFPJUibKpk3UsGCFSp9th2nVROSPxa3oRZjOvStbWjNQHWbsw tY3U6BwBXlQKotwnqEz6xdf67caE9ayn1ikBrWYMZ5ddn2yzxAU/EFfPgol8BcPr9w oJWL47EusXdpw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9194CCD1A1; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Thu, 16 Oct 2025 18:16:58 +0200 Subject: [PATCH v3 3/8] arm64: dts: qcom: sdm845-oneplus-fajita: Compatible describing both DDIC and panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251016-s6e3fc2x01-v3-3-ce0f3566b903@ixit.cz> References: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> In-Reply-To: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Sam Ravnborg , Bjorn Andersson , Konrad Dybcio , Casey Connolly , Jessica Zhang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=860; i=david@ixit.cz; h=from:subject:message-id; bh=Mdaar2hgWJbOqSL6WtOcpPiawiVPmyRpa3cF3G5hBoI=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo8Rp57dX7ERbtZtzUrmaWGhO+aGlrVwvoenRp9 A1HmNyxuGiJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaPEaeQAKCRBgAj/E00kg cjYwD/43O/OAxwTC9/HG211kyEcuYIlgg7oCSb3+0B/WhuGKVrsmUHI6cJ+RN600JacTLU5NbeO t+w3U+GuuYRc9Lp22XmFaOBDtoUaawhILNdVZ6LBD0bYoVFGP6MB84FvQBesQcutUpFE4NuBXPG d6dw/Ke0SvQYQKuKmwn5+NoZgrdyQBL3oyIhM1ZPSCJrg/bzofPcd6zT50p7+2SDIgC0BcRQDT3 RVz/+smDnF520VbKvFxxgdd6kzzCYtEox52FGm41l+b9q9erplPpLHxJJvZys2z5aN/bRafxkNQ CUcHiZ20SS1Y6AFi8Dl+FpS+Tm6slPbtrr93I5gy98z7Hyfcra6HHTV3GZIXUsq8AL74NcJVbdB bXqbIU/B3mZ9TW5X9mkje9i8D20bwWK1XuHdqLyUqA65pOOxZgop74qAd3g8RsMEeA01KEqTv91 UIQ3ul1Tctg4FkiiWzqUSAiqWVywdy2Sb5JCnAfhEOYjWmbVBpDHL4/wiqapiK7xX3R7U96lOx7 HWHC9oQ8ic4o+6x8no/uIfE2UulfJCUbxK6cPOeYSiLqNr9sINupQ8o22sn97Fdiykm3niS2ZOt Bchyh99+Jv3itFzzcV0kMbgLpyTTvmsSP3/4CjipaDGezxBEE1jehByVFlSsYn5ktvRgHX2PF3d PE42kB15glEDjig== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Compatible should precisely describe the hardware used. Original compatible describing only the DDIC used, but omit describing the panel used (Samsung AMS641RW), which we have no way to detect. Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts b/arch/arm6= 4/boot/dts/qcom/sdm845-oneplus-fajita.dts index 7e75decfda052..d6cd873aef0de 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts @@ -32,7 +32,7 @@ battery: battery { &display_panel { status =3D "okay"; =20 - compatible =3D "samsung,s6e3fc2x01"; + compatible =3D "samsung,s6e3fc2x01-ams641rw", "samsung,s6e3fc2x01"; }; =20 &i2c4 { --=20 2.51.0 From nobody Mon Feb 9 06:05:06 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A4EC34F46B; Thu, 16 Oct 2025 16:17:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; cv=none; b=diIQfEkLoX6Can2+7IxSo+E3/GBJ31+uBbU6+daTbUj5XQP5Zu6Z3XTU772XSoZ0urXi2HfVx/SVA0qtBD5d43+oGh7q9Bm1zv2vt0mvaCgzNBkOGrz+zWL3UXzJfs0blvmPN6hRIn1aOxqlR3EPJ5SIPV99SeeVJ9bss989p1E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760631420; c=relaxed/simple; bh=4kxrh8lNYomQLHHWdaX5r8SkUlzAABJDEHVlYbahRBs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wmf3h0452M4nXnLDRSiIwYaS0Jj9lJA352CmdDMpt7s+hSjGJ/vI1otLqVWrG7M7xrUDqELLnpPMEfvHdP+dx1JXOY82nUg6eYvFfNHCzrP3G0TubyYDzwb/dyPbjnRPXa4epm5Tw0NiBmT3JBoKqSUQL+qvMX5wZoEZXV/x/Dw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sceyIGmR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sceyIGmR" Received: by smtp.kernel.org (Postfix) with ESMTPS id D6F49C116C6; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760631419; bh=4kxrh8lNYomQLHHWdaX5r8SkUlzAABJDEHVlYbahRBs=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sceyIGmR15EAcjd1njXAu3BJRRtdiKg7hCR1VbNsVPn6G2MfqoF4brj52FcaCV5VG OwG16irAPM3aFpSrDfoXk4w78WA2bqp2CEEpaZCcQtIVjZCGsrl8KNsGmzLVMDzjHQ oEkxxi2vynjmiCKys13wEqSBV9ylLCz3KTl276fg4ZenSEHd/8g5gN7U4TyuOLQ3TK YUrWTlTjWC6QhTC9R9vmnNo8n5yHesReoZZLHDLm1bzdZfv5y4Jxf/RLBoKX/HsY1R rHsCn6dNBwfwchEWShTGI9ZGytFSR7ZwNScqfxzIsbxMZYYMr9V4YT7jVmt2F+FCuO A8IBXOKhkPmnQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBA2ACCD195; Thu, 16 Oct 2025 16:16:59 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Thu, 16 Oct 2025 18:16:59 +0200 Subject: [PATCH v3 4/8] drm/panel: Add Samsung S6E3FC2X01 DDIC with AMS641RW panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251016-s6e3fc2x01-v3-4-ce0f3566b903@ixit.cz> References: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> In-Reply-To: <20251016-s6e3fc2x01-v3-0-ce0f3566b903@ixit.cz> To: Neil Armstrong , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Sam Ravnborg , Bjorn Andersson , Konrad Dybcio , Casey Connolly , Jessica Zhang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=15722; i=david@ixit.cz; h=from:subject:message-id; bh=hHuOninuip/7GLZ6Epila7GjYzxz0dHL4Hl4YTk5a/w=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBo8Rp5MMONnzc/IAyMzo9A6xnOGzUHJ8p+kkzlF XB5kzF+OgWJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaPEaeQAKCRBgAj/E00kg cq+/D/9ZWJ8Cj15B302shgw5hA4hd5s1BTiqlJPKT1/Bj/iJfPoCfsWzNKseW0swnwD7UzgjYuj y1EEQx924ICu/SOCD9nt13Ezk8KLuyk9k26j2pnJ7G4sAiz/j9RevhXP6a3FHk2W9NcCJXHsE+I vMJu83feoeAIGvYy1VMXp1VOMmv5g4sKqgN8RfDb8AJib3KEKhUOtOW37FiWT8z5R4wl2mL7tiX LyDGJCJf+fQfPH9QyqPc8tX7047r99Du4tuOMQ7EcANmzFdyxVEhWH68Q5QOedGNaG6IGlEKVH7 sNGQRf77xb2TgEghqNSvuip+4parMITHL/A2toOJT1lUvFLefwb2KvBNgfW0pFt/veQVFXaZDB0 wxPV4Dcs+Ki7tszgjS8S25KMmA4hU3J98gfYZTf+kHJrB22yXeaDCGJgAXyhb3n89j7OjxaioZA dJiEQdD32X66tTBi8vnvjVlFD+pVDKrXdWFk/Ssr9n0bD7XoDHxWwMr4PqvXDnAv3438DnoLyYn OHuGosWXuvMca7iRhhZFM9ryLaB7FoRvrQMgeTdyTub3cYnqTyP0U5xCqG6c20MG1LC+2H9QJx1 8tHXLB6Xrjbs4TANGq6capJrINr+4LKsjheIag6/0wCUet4VLHUE+ohWz5oVlzHTByH19d5dB92 F4Xq2vwiUbBR9gg== X-Developer-Key: i=david@ixit.cz; a=openpgp; fpr=D77A09CFEEDC2BBD53A7047460023FC4D3492072 X-Endpoint-Received: by B4 Relay for david@ixit.cz/default with auth_id=355 X-Original-From: David Heidelberg Reply-To: david@ixit.cz From: David Heidelberg Add panel driver used in the OnePlus 6T. No datasheet, based mostly on EDK2 init sequence and the downstream driver. Note: This driver doesn't use previously mentioned "samsung,s6e3fc2x01" by OnePlus 6T device-tree. The reason is because DDIC itself without knowing the panel type used with it will not give the driver enough information about the panel used, as the panel cannot be autodetected. While would be more practical to support the original compatible, I would like to avoid it, to prevent confusing devs upstreaming DDICs. Based on work of: Casey Connolly Joel Selvaraj Nia Espera Signed-off-by: David Heidelberg --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 13 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c | 399 +++++++++++++++++++= ++++ 4 files changed, 414 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d11dd6c7a6b27..ee715864e1f97 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8060,6 +8060,7 @@ DRM DRIVER FOR SAMSUNG S6E3FC2X01 DDIC M: David Heidelberg S: Maintained F: Documentation/devicetree/bindings/display/panel/samsung,s6e3fc2x01.yaml +F: drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c =20 DRM DRIVER FOR SAMSUNG S6E3HA8 PANELS M: Dzmitry Sankouski diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 045ffb2ccd0f0..fadb7f397837e 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -801,6 +801,19 @@ config DRM_PANEL_SAMSUNG_S6D7AA0 select DRM_MIPI_DSI select VIDEOMODE_HELPERS =20 +config DRM_PANEL_SAMSUNG_S6E3FC2X01 + tristate "Samsung S6E3FC2X01 DSI panel controller" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + Say Y or M here if you want to enable support for the + Samsung S6E3FC2 DDIC and connected MIPI DSI panel. + Currently supported panels: + + Samsung AMS641RW (found in the OnePlus 6T smartphone) + config DRM_PANEL_SAMSUNG_S6E3HA2 tristate "Samsung S6E3HA2 DSI video mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 0356775a443ad..ae56f64982cfb 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -79,6 +79,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D16D0) +=3D panel-samsun= g-s6d16d0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D27A1) +=3D panel-samsung-s6d27a1.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6D7AA0) +=3D panel-samsung-s6d7aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FA7) +=3D panel-samsung-s6e3fa7.o +obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3FC2X01) +=3D panel-samsung-s6e3fc2x01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA2) +=3D panel-samsung-s6e3ha2.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E3HA8) +=3D panel-samsung-s6e3ha8.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E63J0X03) +=3D panel-samsung-s6e63j0x03.o diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c b/drivers/gpu= /drm/panel/panel-samsung-s6e3fc2x01.c new file mode 100644 index 0000000000000..36e7cf1a3654a --- /dev/null +++ b/drivers/gpu/drm/panel/panel-samsung-s6e3fc2x01.c @@ -0,0 +1,399 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2022 Nia Espera + * Copyright (c) 2025 David Heidelberg + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include