From nobody Fri Dec 19 13:31:06 2025 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 5DD132FBDFF; Sat, 6 Dec 2025 13:34:44 +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=1765028084; cv=none; b=fhurn1yfLdUevn2NxF1INc0Gcr75LLTXYH30DIC65dm7/oR7bNuc4eecweQ+CC2KhQME9LnaCzKGVN6syVMMFDnbyvXKgXcjn5I5hJsgYnbq27/wvQ8sf2jx5a+iTzlmufwujSYFTgh414OahCig3YG4kP/RkoyXW7womYjt7b0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028084; c=relaxed/simple; bh=HjJDMUd9VNGNyS2sUGn4tel1CQSAz6Tp6zX5Z6lzkq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iAVVGScyjqTIaCdAFCkwWzdp5Hne2yJSET1BHyLtFbrxQwPpH0JJI9RyG0fLfFfsiIRIJyMFvnxAD84H0npjqdsorzqFs8sgQAmXd46rZbQCybDUSbLzWQhfrq31r1S9dkahhwA/rpIdYUfbF2ZJlRFas92ONAuQS/bUEMl77aY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Fc9TUIcp; 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="Fc9TUIcp" Received: by smtp.kernel.org (Postfix) with ESMTPS id EA53EC16AAE; Sat, 6 Dec 2025 13:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028084; bh=HjJDMUd9VNGNyS2sUGn4tel1CQSAz6Tp6zX5Z6lzkq8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Fc9TUIcp14ROVpX2bXITLBwgo/+wwuJuCQrXQcFrWllQnh7K1vzWzT7pvG6lz8S9o BCTX9TXpYAMgz/+l5QsPj3c9JPmec9gdxG3Udbh5Xrii1o50jGHJ9XSnYiPeV3yItI 99pgAehMAB6KDk+ghAnEZdK8+Lnt9rRPaW0025adiv1EcJzkm0U5eTYvRrj5iwBubT XALoCwJt5hVvVKifakVXrWrI7hdPqMnZ8aPMNBpzP5i69SSjkBqqM4ZJYfv2uoXpvw HEQ8buHcwSjvKUSowS6XuvhoRozXhDSURjYGIaegM3VhdAACH6AW+wSKW1L0+52Qkw qk39374fWej4A== 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 DB36DD3B7D5; Sat, 6 Dec 2025 13:34:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:18 +0100 Subject: [PATCH v5 1/8] dt-bindings: arm: qcom: Add Pixel 3 and 3 XL 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: <20251206-pixel-3-v5-1-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=765; i=david@ixit.cz; h=from:subject:message-id; bh=Vnt/xXHh7c01EXNWnpunAXvFyH2vLjx4UfYXxFc1+5w=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDwup2N1oiIS9xWiWvjTHX9KPfgx5ywx63Mv pnwSS8wgs2JAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8AAKCRBgAj/E00kg ckxwD/9EqAjogwvcakPub3hc3GzFT7RcCSDhB3usRiY8qE0ulXukulIDRz+rOxxaXnOR0Epbq4I ngF+zXNNPnhjmZvu0JoijIQuFPP6U8N23jh9c/mP8v/PdkmkElF5TXxa9vUGumwzbthlSQ5VWwL n7TNQSl89hVWHz6abxBNJm2TPo9izfjhrcbQPjujc548O67sFPRIhSq/7xzIpb3yPfE50On5vwd mW72uk6l6kJhtGmUJ0IKEJXm8W6MchRTQlo9jDiYsa/DemSQrZuiDfLzsjDaIFYqG4TkjQXi9Of vRK+f+yIN/0h5f8m47BovNv7PamXxeyoWGZmY6YcNO4N9qev/HGCZpaA9oXV046IfRtyZDN0MuO TSKwuR/qXjNFO6JJP8yCmeGnrj1oYO7sjesuFJ5X2DDN2vQ7WFRIw0r6wDZQ+P0P8oGCO4H0vJM UM7e3TDhCl96O9ZkSFxvj8zM/7BSLOgDW7v6k3XAoRpaHbgbVUV8HTt6GdHazm+47DbWNhJxLoJ T+flF/ar7ap6GfMQBCzVXxOSDYlpS/MIcUzeuFNHan8sfBK2JezZ+kJRUTe6hr0qHq8OvwY8bBT 3ANxlKpdBtAAs6tQaNyBuL4EqsTa2SeB/QO4mQERwzzTNjbahvS8BA7IXuWehEnTeZQtBGNB+zD StKM1bpQLCfCX4g== 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 Document the bindings for the Pixel 3 and 3 XL. Acked-by: Krzysztof Kozlowski Signed-off-by: David Heidelberg --- Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentatio= n/devicetree/bindings/arm/qcom.yaml index d84bd3bca2010..760b6633b7a55 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -900,6 +900,8 @@ properties: =20 - items: - enum: + - google,blueline + - google,crosshatch - huawei,planck - lenovo,yoga-c630 - lg,judyln --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 8A5572F0C79; Sat, 6 Dec 2025 13:34:43 +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=1765028083; cv=none; b=CXf5GB9S3ZEIw8g9hUhTyXPMbcUnrYV41Ju/FQQDanTw8hKtjvl+aeGRK6Dv4eAZpWYtDzAT1Q0gmylQiKPr7ZMmkQ1/k7OfmwdePztLFvliNTznrBCbluJX4YLN3LmZ1dKnMyo4dkwz3FRvC8VK0h53y8t3lzKM+v+PVpjk2u0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028083; c=relaxed/simple; bh=P6JIG7+hx3GfFzXJ3PaLVXgbb5QcMZmiNNwqLuWL2lE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aY5rEVcpMSjtI60WpitcutLYFLDtxuIfuF3+kXdyJD9SwlLlu4KsShNZQn3vsG/xYUOVsoGs/O0E3yxKQzpxu09Qp4RmjXBEIyFp++7FgBdfrd98CQvIDhd81D7+IuprlgNrwoXt50/SCLB6wfQga+hDShdoJATpRjPL2T38XsY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YWI11iTk; 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="YWI11iTk" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0A7ADC113D0; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028083; bh=P6JIG7+hx3GfFzXJ3PaLVXgbb5QcMZmiNNwqLuWL2lE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YWI11iTk1662lrlgI3+m/oF0fJJGm8s8rl1TK+lLiSUA8HxTLGsvLOgtngpaDnNEz 8BGor78liJI80GP9zx8tuzFot2/SQmPiH/EP9s7ChElKxlybWNmAHwElsRg/txtR13 XUiEZ8RT+CfULc2yDWeab3F9vUKkpFEwznNqbUrcGq6lfgMx0PbbGaBsKbcQylSGi3 EmxISxYQCsBP3qe9PRPeAf8nSfRugux8vWXN5Jc0S0cvu0kkJ+JIrwZ1vAAWL18eT3 ljV9I2/3QSnuI8Y6eNw94xyIhF7Hv4/9xXaOOqDftALOWuekjHaPfIaNzKsY2vxymh iiD1QfLsvE+EQ== 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 ED9D9D3B7D7; Sat, 6 Dec 2025 13:34:42 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:19 +0100 Subject: [PATCH v5 2/8] dt-bindings: panel: sw43408: adjust to reflect the DDIC and panel used 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: <20251206-pixel-3-v5-2-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1948; i=david@ixit.cz; h=from:subject:message-id; bh=YFbMU07Wu5FnvTw9LCEYZ4TnpCBRf84TLv0leteBovM=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDwvDaR+m+QhyrgquOXDdM2avUtPyLdimLfW Ah8GO3lqxCJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8AAKCRBgAj/E00kg cvbID/0dhkZmu6IKOX/8vMpiK4EW/pxZfDdWH6Xl3GHgtOUlwVA7n7KVp8NCBvrKFzLw5DXb+eQ UgtZRmkMFLANxh8lT+JesNImudWnbE2YD+ugaz/qAnwnO1AfYdZNR+PZAzGnJlo+a24aJqj8e+x oczJr6qNI/BgtPEGfPXjWBDkyTZ2gMHeA7hdtbcDmBFMPs/krIj2OHesE2kMHsI1SXWinwJQDZx 56YciqFiUea7HhcSJebXfpmk895bkbd+H7paXSb4y5J+VW+Z/d1/u4SR//StqHxqmdSJ7aUmApT 49tnRHtHVoL1b32uBEDHXrm7MwJqH1pzrbU8TmDR3cFkW8fSyMTasyZ9DCkZModoSljgohFtB1K KMiUR+XgDMRPdBUEoZT+XvZXgfp1XuJODqo1Gr0iDoU5pj81iey5zs8k4DCKB/yDHJrfIsiY0y7 oqNX7E4tiPocA953o6HsZEQ0VgPM4F8Jxg6rLqasniXnAouFHJOVlR6HPn6ItHkJo1wSM/giV96 O805CINM5pmjJYB7Otrnri6tZ6AOXnt34l3x0t2f/x7CW7LeLnpSNz6zwhVDsi5qR7IA/9LaOhj qdNwyeqdg00IYowOEfdnyHBauwNalC49327BTqNLZxzMY0IRIbwMQTV/wo69RPC9pz8/+z48nsz nhema7e/ODkJ8eg== 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 compatible for used LG panel. SW43408 is not panel, but DDIC. The panel itself is the LG LH546WF1-ED01, so introduce combined compatible for it. Reviewed-by: Krzysztof Kozlowski Signed-off-by: David Heidelberg --- .../devicetree/bindings/display/panel/lg,sw43408.yaml | 13 +++++++++= ---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/lg,sw43408.yam= l b/Documentation/devicetree/bindings/display/panel/lg,sw43408.yaml index 2219d3d4ac43b..f641efaeb8b36 100644 --- a/Documentation/devicetree/bindings/display/panel/lg,sw43408.yaml +++ b/Documentation/devicetree/bindings/display/panel/lg,sw43408.yaml @@ -4,14 +4,16 @@ $id: http://devicetree.org/schemas/display/panel/lg,sw43408.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# =20 -title: LG SW43408 1080x2160 DSI panel +title: LG SW43408 AMOLED DDIC =20 maintainers: - Casey Connolly =20 description: - This panel is used on the Pixel 3, it is a 60hz OLED panel which - required DSC (Display Stream Compression) and has rounded corners. + The SW43408 is display driver IC with connected panel. + + LG LH546WF1-ED01 panel is used on the Pixel 3, it is a 60hz OLED panel + which required DSC (Display Stream Compression) and has rounded corners. =20 allOf: - $ref: panel-common.yaml# @@ -19,6 +21,9 @@ allOf: properties: compatible: items: + - enum: + # LG 5.46 inch, 1080x2160 pixels, 18:9 ratio + - lg,sw43408-lh546wf1-ed01 - const: lg,sw43408 =20 reg: @@ -46,7 +51,7 @@ examples: #size-cells =3D <0>; =20 panel@0 { - compatible =3D "lg,sw43408"; + compatible =3D "lg,sw43408-lh546wf1-ed01", "lg,sw43408"; reg =3D <0>; =20 vddi-supply =3D <&vreg_l14a_1p88>; --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 6A1A82FC006; Sat, 6 Dec 2025 13:34:44 +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=1765028084; cv=none; b=OrXXpaIcZ/Ee0Au60AIxtc6TbljstfoafSQUnrdMNkKs+C35P0g0FQvazDK/SPbnmGkGiz98SgX4/ZGYnkB6rt588gITpiyKPaiCXg9Py+Xu2d9C3SU6f3cme2EBv+g/wMeGVzq8erK4zUcQ4El0vuinEElFHgrFDOQXD+3Nw1M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028084; c=relaxed/simple; bh=7dRCkVhoY2x3WSouCqiav3GqVK107vBblD9M5kWqe3E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PiS/F4kC4X76EQK2QOFG8JMdsvKFOIzNdGrc8eQALKm0fX0G8mUh9bcKaLqrrcs8/njbLpYp4ycv8cvbEApuqdNjeiVWecxxTjx4P9nPtqI+PwgRfFaXZRxdNqm3PLZ34IH16rMeq7wVQx8/tr7sVsPg8Z3yEMvIlSqcZq0IwXQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ac0yzfxV; 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="ac0yzfxV" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1701FC4CEF5; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028084; bh=7dRCkVhoY2x3WSouCqiav3GqVK107vBblD9M5kWqe3E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=ac0yzfxV5sgX1VkDb/wKSum5Dx7L5/rGOtvrCsRgu/cEx2o50U/xlly5sN70D24eZ xkk+MQBB5s0+fohI7IpbReb+VAFOIdgu4s4lMUuntWJoTdYhQYAu0s7PFyZ8b9dWmv ZoThorvO7IvxqbDYFleb9ZyE2iqC04LYE2MrXrTy/M66erza58pSF+TYFYw6tOp2TK A9OBMzmI1H2S1iGVzglwS7fd3CJHK12bhxYeukRw4iNllaocW24YyAzuE8aBLHCGSo 0EHBd3gHIUvlYejVVVJ5B7as+fasqOttASpIOSisCTHfe7tqBXIYa8Kn+Z2JsMSB6T i5siwBS3b79xw== 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 0ADF0D3B7D2; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:20 +0100 Subject: [PATCH v5 3/8] drm/panel: sw43408: Introduce LH546WF1-ED01 panel compatible 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: <20251206-pixel-3-v5-3-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1747; i=david@ixit.cz; h=from:subject:message-id; bh=K5KrfoqgLLk98vvZLiz1OAUosAiZymNlygbzh53UxIQ=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDw0iRqtud2wJK5tlpQJSM3IKgtgqcfBohqK sddE6k+kJiJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8AAKCRBgAj/E00kg crtAD/9Y2PURNGt6jhl8+861Qln6l4gWac48D5IsT5LGy9ZGrbNVcSAgNHHEw1FxJ/gDVT+Fmjx jbNq8ERVvdeegB93LYpcdLt3moc9pRnORIEipdEv0MLzjqN6NwOzgNQ9+/d21FZv4lIpSCdMjNs rUHGQ7jPWsc1rw+n08dbEO5nH1w17s/nY6pIP7QMSiEepSyAZ9Xz+j2qx0WDtqOm+lTPtACdUkM +2SC8jVsWQVzpFNg3j47sdpTmW2aFWWL1PfkTCIHMqyyLsFRQw5Kl+NARX7L8qV+cDNjg8yLw/W IhRfLFVT65+Z2dIgNxVO+OLwm1IZzl1Fg5P3vPtCPUb6PP08YwJxIRklW0o2uwTERYuWdCuqTo2 8o7S+KBqB9QssgxV66Th9z/dKnB2kPyzWaFXmIDnrtDTw2IyJgwQhoAqn/z7s4w8d2TE/p8aOr5 PZcL6Yv4fhVx411BYrPjISyMwAbnpHxtJhXrM4z0GEgLC0sTD72cFEmzyYcVLM0cd1uPuDvn436 3he85OmFwSXW8ZMI78M5ie/1yjIlD/ctn+MsDe3UnsZSvsfp3EntZ5XCpnKqze6INoc1KxOrY9m a1iyMqfN8m+SSTLIRK/aakgREU+1xIn6eK4rv0GnVDKS/rUsC8Wwu1vqjLyy7uDs5YuDm5A/sEc sSLk1ddUOQpAC3Q== 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 The supported panel is LH546WF1-ED01, add compatible and adjust the struct name to reflect that. The standalone compatible lg,sw43408 will continue to work, even thou there are no users yet. Reviewed-by: Dmitry Baryshkov Signed-off-by: David Heidelberg --- drivers/gpu/drm/panel/panel-lg-sw43408.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index 46a56ea92ad9f..dcca7873acf8e 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -149,7 +149,7 @@ static int sw43408_prepare(struct drm_panel *panel) return ret; } =20 -static const struct drm_display_mode sw43408_mode =3D { +static const struct drm_display_mode lh546wf1_ed01_mode =3D { .clock =3D (1080 + 20 + 32 + 20) * (2160 + 20 + 4 + 20) * 60 / 1000, =20 .hdisplay =3D 1080, @@ -171,7 +171,7 @@ static const struct drm_display_mode sw43408_mode =3D { static int sw43408_get_modes(struct drm_panel *panel, struct drm_connector *connector) { - return drm_connector_helper_get_modes_fixed(connector, &sw43408_mode); + return drm_connector_helper_get_modes_fixed(connector, &lh546wf1_ed01_mod= e); } =20 static int sw43408_backlight_update_status(struct backlight_device *bl) @@ -214,7 +214,8 @@ static const struct drm_panel_funcs sw43408_funcs =3D { }; =20 static const struct of_device_id sw43408_of_match[] =3D { - { .compatible =3D "lg,sw43408", }, + { .compatible =3D "lg,sw43408", }, /* legacy */ + { .compatible =3D "lg,sw43408-lh546wf1-ed01", }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, sw43408_of_match); --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 7D5252FC01B; Sat, 6 Dec 2025 13:34:44 +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=1765028084; cv=none; b=EzUN5JQzGJcfzknEaXVrCJUL+Iqt/F/pMW4dywYCyL84+u6Dfp6Nz/SBHPfNlUfr+RJGxet9cg7HNHZKNUiAQliiVMXGl6GvnWvPb6h4At3cfmx/8+O/6QRVBapuMGQGXMO9o2r8pvq3Z5IlhCon4nENUpyn5Tklvgv0ZcMAvqo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028084; c=relaxed/simple; bh=AFb+K5IW8aAcec4JrMbTFoFyUwNA0fqAPFwbodzgHYE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=K2AKZYJCnp8TIQ329fnO6mE5aAQwTnAuS3aSVDTHB8hlDIPTYl5xlD/u2sYvFrrjJwhbI6yp29tzjyRMtQUEFFU/PEEjeTlfh0b/Zx60PQM8YiuVZT8eGyllX0rI4N679MMW/RgSiSkgK+PqPPc+kkconIYv7Z4tw2625LwqhCw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=njVdP+5a; 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="njVdP+5a" Received: by smtp.kernel.org (Postfix) with ESMTPS id 29FDFC116D0; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028084; bh=AFb+K5IW8aAcec4JrMbTFoFyUwNA0fqAPFwbodzgHYE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=njVdP+5aciRKqZ11vUlMNE0FXSlpOuZHz1sQz/W5lzSYBnloP67sONsyrpBwVCSlg tiveIKYnCWR2O1zywEvIm8A9kmVt9bwYz0TSkuBTkWRu6bFj0JAl1cQEQYYPLqZin3 maqSRJHSXhZlSyi0/dR1RE3+40A0Pdr+d8h8oVdAC9zRy4OPaHIRIGnTtKBJ2VbKjF om6mmPfv1UQjfui+AoAW6VGgaH1jPqu7DMkjec1OmhvBPv7WbnGLbivunciUylfVQh WEii23dJBIlc0y9kzuW8YldpITeQiGjNWbb6pn1RzZYtkFbeyavVWGFv05kdPisBkr V/D5u73JpC1nA== 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 1DF2AD3B7D9; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:21 +0100 Subject: [PATCH v5 4/8] drm/panel: sw43408: Add enable/disable and reset functions 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: <20251206-pixel-3-v5-4-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=4042; i=david@ixit.cz; h=from:subject:message-id; bh=qN5N+wyRlTAEEdBXkU0m8ndfuHhWL8oA++gF/EwODJc=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDwdwhVXdCgauFD3Y3lSfOCWFYGZq+qhcV87 0gtuISWVSGJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8AAKCRBgAj/E00kg cosjD/9+HhrevxCLlUERK6uJGGw28QCzOPCalI97gKxK0WE5fucRMFG3WFRlC2yNF7829ZUHKGB gua6T9XgIhsbmdPPDQZXEcV/HML9GqLcUYwsB3PSYjhV+BGv31lvoU5dFeTZ76tmqxzVQkcWaMO /xqhr5pxKMsDvZ4SaDuQ/jAOvYiE1p2YGs8EHQIbW/41LCHGr3XLAEPruORzkkIyDEjSPRvpQu/ GdfqRoRvNpgvq/KS7vm8Q00s+5vqatjzjsVUGwfLFRIBLhhvAYNULcnqMudE+AxqL/q6j+6z9Ul 08+JkDvMnKPpTh1E03ZM+zZIRU3r0Q2kwsuLrIkKn2H/BZFmV16jbN87gmuoHDTKCqcoyDzOd4v T4MyosVPoCmrlE84gBeHBTB5Fnv9dgM1PRDnzW0SWvq7e9HkhRAABo7leuNJ5K5w1b8ljPUXs0h nFN3E2PbzuJYwb97E9BKYAHvV9WBGj+sP02Uhak0bjwyarKPgU9Taf8kQqDIkEv9O9R7GDg1yXF 2Iccyi8vHHhuCfJ9eZPvdpivHMspglEItQ9fZQNPTZmgQLpJWDFHOJfl1wlV1jiTuQv9BQgq/d8 tqFrfkRz0+Hmn4nnJnRlCJrntR7QNWgHoOI3hJHZ/+BgZ6wmB7cBylFS6s1ceAr0QNo6bVvrN5i 8h1M/ei6sYL/zbw== 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 Introduce enable(), disable() and reset() functions. The enable() and disable() callbacks keep the symmetry in the commands sent to the panel and also make a clearer distinction between panel initialization and configuration. Splitting reset() from prepare() follows clean coding practices and lets us potentially make reset optional in the future for flicker-less takeover from a bootloader or framebuffer driver where the panel is already configured. Signed-off-by: David Heidelberg --- drivers/gpu/drm/panel/panel-lg-sw43408.c | 47 ++++++++++++++++++++++++----= ---- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index dcca7873acf8e..dad6b967b92c2 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -38,11 +38,10 @@ static inline struct sw43408_panel *to_panel_info(struc= t drm_panel *panel) return container_of(panel, struct sw43408_panel, base); } =20 -static int sw43408_unprepare(struct drm_panel *panel) +static int sw43408_disable(struct drm_panel *panel) { struct sw43408_panel *sw43408 =3D to_panel_info(panel); struct mipi_dsi_multi_context ctx =3D { .dsi =3D sw43408->link }; - int ret; =20 mipi_dsi_dcs_set_display_off_multi(&ctx); =20 @@ -50,18 +49,25 @@ static int sw43408_unprepare(struct drm_panel *panel) =20 mipi_dsi_msleep(&ctx, 100); =20 + return ctx.accum_err; +} + +static int sw43408_unprepare(struct drm_panel *panel) +{ + struct sw43408_panel *sw43408 =3D to_panel_info(panel); + int ret; + gpiod_set_value(sw43408->reset_gpio, 1); =20 ret =3D regulator_bulk_disable(ARRAY_SIZE(sw43408->supplies), sw43408->su= pplies); =20 - return ret ? : ctx.accum_err; + return ret; } =20 static int sw43408_program(struct drm_panel *panel) { struct sw43408_panel *sw43408 =3D to_panel_info(panel); struct mipi_dsi_multi_context ctx =3D { .dsi =3D sw43408->link }; - struct drm_dsc_picture_parameter_set pps; =20 mipi_dsi_dcs_write_seq_multi(&ctx, MIPI_DCS_SET_GAMMA_CURVE, 0x02); =20 @@ -97,6 +103,15 @@ static int sw43408_program(struct drm_panel *panel) mipi_dsi_dcs_write_seq_multi(&ctx, 0x55, 0x04, 0x61, 0xdb, 0x04, 0x70, 0x= db); mipi_dsi_dcs_write_seq_multi(&ctx, 0xb0, 0xca); =20 + return ctx.accum_err; +} + +static int sw43408_enable(struct drm_panel *panel) +{ + struct sw43408_panel *sw43408 =3D to_panel_info(panel); + struct mipi_dsi_multi_context ctx =3D { .dsi =3D sw43408->link }; + struct drm_dsc_picture_parameter_set pps; + mipi_dsi_dcs_set_display_on_multi(&ctx); =20 mipi_dsi_msleep(&ctx, 50); @@ -116,18 +131,12 @@ static int sw43408_program(struct drm_panel *panel) */ mipi_dsi_compression_mode_ext_multi(&ctx, true, MIPI_DSI_COMPRESSION_DSC, 1); + return ctx.accum_err; } =20 -static int sw43408_prepare(struct drm_panel *panel) +static void sw43408_reset(struct sw43408_panel *ctx) { - struct sw43408_panel *ctx =3D to_panel_info(panel); - int ret; - - ret =3D regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); - if (ret < 0) - return ret; - usleep_range(5000, 6000); =20 gpiod_set_value(ctx->reset_gpio, 0); @@ -136,6 +145,18 @@ static int sw43408_prepare(struct drm_panel *panel) usleep_range(1000, 2000); gpiod_set_value(ctx->reset_gpio, 0); usleep_range(9000, 10000); +} + +static int sw43408_prepare(struct drm_panel *panel) +{ + struct sw43408_panel *ctx =3D to_panel_info(panel); + int ret; + + ret =3D regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); + if (ret < 0) + return ret; + + sw43408_reset(ctx); =20 ret =3D sw43408_program(panel); if (ret) @@ -208,6 +229,8 @@ static int sw43408_backlight_init(struct sw43408_panel = *ctx) } =20 static const struct drm_panel_funcs sw43408_funcs =3D { + .disable =3D sw43408_disable, + .enable =3D sw43408_enable, .unprepare =3D sw43408_unprepare, .prepare =3D sw43408_prepare, .get_modes =3D sw43408_get_modes, --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 7D4922FC014; Sat, 6 Dec 2025 13:34:44 +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=1765028084; cv=none; b=Utsxdq7+jKGY6CFE4/3YpsegrYnS7dz0yQqnDtvL3jpXXcI+nVDW5V64YTJr617WMHqyQWTh8R82r6RqZLjt9F6Us+KU9o04ifdNRxs3Ti+bBJBokrJHW4DNp4pbWYOsE9i7ko/8/5EFRkBS0CwtyELc1JYIX4q4h4zlRjFXtmc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028084; c=relaxed/simple; bh=KuQJjNrGdJL/Ni63TPQm2LwQNOy6M3cg97mb6xmv7yE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mGm6LBaS7f1I+KZ/ucSzki0iE2W7azn0jDYdIosARIEPP1TBd2heMe8uF8678+wcqaJXbrQlTKE0umWcM+gBCi3slvBrdCRvyn946waEXaYOK/TFpK4xuXFOvFFJjnlvz6sxQb6H+TMZkcLkeXjtEBoSOM9Ebw+/ymTXlXMx6ko= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JhHA1rHq; 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="JhHA1rHq" Received: by smtp.kernel.org (Postfix) with ESMTPS id 39129C19425; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028084; bh=KuQJjNrGdJL/Ni63TPQm2LwQNOy6M3cg97mb6xmv7yE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=JhHA1rHqRk3EhIOjvcz1ohZe9sT5mihJlChHeywfSEtHccNaqY7OsL0K2cLFDgtkb J7iDseTO0oFbu41It/cj+ahu4Pr5A7MggjE03/ObRptPVTp/fvegZCxaTX+43qZowS /EV4oxtDffoDgWsGUpz050Z+s1hUMpSztMTeTE3/iwBBML86/tnfRQwp8iw9aJA/gM VZYXBJHY+LWtJGmahTd9NYERY/RbTFvJAQBOZe0IszZXUtJNVuk/059n+NE333g/CS 0wSyf1vIhJUUOIG/3jsyFTJRM4mLbeiGVcPerL13O4Spc9aDzm7sVLHbvDDkKZSPNH BDmF2Nu0RFrLw== 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 2EF36D3B7D8; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:22 +0100 Subject: [PATCH v5 5/8] drm/panel: sw43408: Remove manual invocation of unprepare at remove 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: <20251206-pixel-3-v5-5-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1036; i=david@ixit.cz; h=from:subject:message-id; bh=PuiywuMQuz5mfrzYWDI/bKjfM/bNSPMPp8guUiS9OJE=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDwY0ERXfUW3N0g+94UgwVhtHdJ8Tb8p35Em 7P1729P9UiJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8AAKCRBgAj/E00kg coylD/wK7IsESE8JYD63DU9hna3qtf3ILJfjOrCsRvoMGkh9B2dZiRDS+611tSJGMaw7lWKdCs6 vGJwrMMB/EWlKH6U+RJRq4SN+UXr1SmsSa/Bi2slc9FT4fmiPTI+CrpO8dEVkPTqWL+jJ84GTXo p4VtTNPO+/IirdnEGh2/J6q558CwVbCc/+UkNjlG4Ucd/5pZHeKs9oGSmt5s8ZsmPfm/ncrur5c FNnbAXgtXlmDpnhpak8xqhW+ekRm/WHgrK0U7kGAMBhg58fMP7iMuOIz9y8PizdPs3gqkQdQOrx ZJ+jqEUNUv8+iDnzldO3m6E9675pFVw0Bh7vBqcxMHAWQ8mmb2az8zGCko7Msv6SgK2aR2/XYtJ CgKe8+uZ8FjEh+Foa2q+BH8V2o1Jm/ByQ/pQ2rnB2CKCKU36SrqyXyjvqf8qOthLlHBrfL7K2nj Mn9dVRIRyTiqacYi2FPSqsA3Jw/OZrZwZOK0MijnMTJ+UcOXB7ut3gZVgWJXa5N4i83Ges+PRGN UpAIKZ79FL4VwfxGGxVwvbdjO1RuXTKJYkgzD4wZqzlNGAAYfg2XXZ4PfMGhCM/tw0Rq7PmXVlL s3AoltXGw5Om5q9W5xR7GmJJXUFKTSoWW9WWZBXp+OOeFzYVoxS5slH/rWG+ZTC/645OZdBB4ZP 3o7N9HFPy+cJgXw== 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 The drm_panel_remove should take care of disable/unprepare. Remove the manual call from the sw43408_remove function. Fixes: 069a6c0e94f9 ("drm: panel: Add LG sw43408 panel driver") Reviewed-by: Dmitry Baryshkov Signed-off-by: David Heidelberg --- drivers/gpu/drm/panel/panel-lg-sw43408.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index dad6b967b92c2..06b9c5e650edf 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -318,10 +318,6 @@ static void sw43408_remove(struct mipi_dsi_device *dsi) struct sw43408_panel *ctx =3D mipi_dsi_get_drvdata(dsi); int ret; =20 - ret =3D sw43408_unprepare(&ctx->base); - if (ret < 0) - dev_err(&dsi->dev, "failed to unprepare panel: %d\n", ret); - ret =3D mipi_dsi_detach(dsi); if (ret < 0) dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", ret); --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 BB3B32F3C27; Sat, 6 Dec 2025 13:34:43 +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=1765028083; cv=none; b=RMfeaOhx7RlY7FX2FuPuemvyCM4GY/DeqPX+wJocvauNouGd5YhmLWo25EUObsgJ87a0eWgnDmjc1M2MrPaL5BRtvi70keAsdZEi/qHNOIcipXcXI7OzKSEXu67IgZDzmAQzgTnuzATYgRMnmJOKr5h+fpMR/ge8o38s11a3l3A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028083; c=relaxed/simple; bh=xnfwSKVPAn/+oKcBddi9HnvJpJcCnJl7aalvezxhKXY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u6MHONI1FjBt+OzPGEkXhkrRIf/l0JwwhNW8agk+lS8gZxLmwNvQA0cStuv6ua3qrREq86x7oSBctlOeIpXknnmD/pkUbb7Ju87KOIYIG+iV1VY14QThm3OiVa0KmUsl5EBego4QicwuBYBiYTAgFk6EmWuUzGiolsYz2hmgFRA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BLsGdGZf; 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="BLsGdGZf" Received: by smtp.kernel.org (Postfix) with ESMTPS id 56E75C116D0; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028083; bh=xnfwSKVPAn/+oKcBddi9HnvJpJcCnJl7aalvezxhKXY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=BLsGdGZfo/sTJpXrnlvWnPpfZOu7d8zClC6ngdHIn7DuufoHJRhKAJIRfmuJSFQ9M ryipIPRTF/kcWidAQ4fa3Kdh+MB3dQ5lyUzjAxZGoRAS6j1He6rFi5PLZS7Ett1+fv q8Qrqy0l7DwXPQx71bkNIUFnm9GwWKEgnpngxrFMn7UC2UQoAAV7s5s6EYR9MJAvz9 7bPL71/hcQDuyaE/thDFgwc5mEggZCWDpDH1qDSyqXW5Z2o0+mWy8zbXLvqcoJ7Awm 3VluUjhZDC8/2SSbOrJGkd9xVeVs8ZeRPZVFcrjQ+ahA1KITo4K9KmCY3NiAVXYspX BVfF4mGOYM/bg== 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 41AE4D339BC; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:23 +0100 Subject: [PATCH v5 6/8] drm/panel: sw43408: Switch to devm_regulator_bulk_get_const 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: <20251206-pixel-3-v5-6-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=2716; i=david@ixit.cz; h=from:subject:message-id; bh=uVsb8swJAoi+FQAuLqZnopgHFSzHoIO92dAgRnXWra8=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDxv6t4VuZdCZLrdK1kaZgK7nLWAXjcOcrbQ /fkSrvYyhqJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8QAKCRBgAj/E00kg cvsFD/4n/SUSuiLIi+NtZpsmV8LAvclnd65vs136thYaW0obqU5Wv0Uqznr01YjMKmo4tAiwd+9 db681ZBwiHOL2iDnVDm1iEwI3p2USZA0s7XSsImX6Ubj1C2OH41XjBOY7QPO5UN2U8FBeeVxXyu pF2MGUuRL0pvEnOrfucSIQRsBCNt+RVZ11igHVdLAz6TlMCnc6epk7j7BAHp6EN1JWhoU+/WaSh 3Z6PoXgJVbnS3MnPm3pKi3mJJu27NtfL7yqQYWypz1hd35BMRuI2JvslSdoPhkU9oGq7Z9SUuxd AVgcgyBzP/w5ZZ2xewN0TfaLOSVqhCxKgEMimQNpgXp37/iuOVjS9BpqWB/x69cGGzpU/zQerxE lm5CQ6m8Yl+aHnHAyDc5vvPMwjWEcbm7Zt+HHWM8vkR9rgprLQPz2oVzuSpGYnFXdW5uEP9XaZi uHtt7V+5+Yg7FsdxMdskSODdln4JttQwodZfPOHUVBeS9M6s0LQs0dtW6TvCuny9Y8+5LhaD2BP m9NAAdRQyPeExRISAJsvliB0JAtjzW6vMc/Gv4ptcuf/E9y5HZjAFY/nqWsiTlJu1gpbm20s4P3 ix7BxJN+OBO3uuOBcr3QPxrFMplA17z1K4bmVcLBcMcVnDGerZNihaHi+ufLskOpIXgVFzsS/C7 eiZeJPKZZaDdXZA== 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 Switch to devm_regulator_bulk_get_const() to stop setting the supplies list in probe(), and move the regulator_bulk_data struct in static const. Reviewed-by: Dmitry Baryshkov Signed-off-by: David Heidelberg --- drivers/gpu/drm/panel/panel-lg-sw43408.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index 06b9c5e650edf..65d54c8a9630f 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -20,13 +20,18 @@ #include #include =20 -#define NUM_SUPPLIES 2 +static const struct regulator_bulk_data sw43408_supplies[] =3D { + { .supply =3D "vddi", /* 1.88V */ + .init_load_uA =3D 62000 }, + { .supply =3D "vpnl", /* 3.0 V */ + .init_load_uA =3D 857000 }, +}; =20 struct sw43408_panel { struct drm_panel base; struct mipi_dsi_device *link; =20 - struct regulator_bulk_data supplies[NUM_SUPPLIES]; + struct regulator_bulk_data *supplies; =20 struct gpio_desc *reset_gpio; =20 @@ -59,7 +64,7 @@ static int sw43408_unprepare(struct drm_panel *panel) =20 gpiod_set_value(sw43408->reset_gpio, 1); =20 - ret =3D regulator_bulk_disable(ARRAY_SIZE(sw43408->supplies), sw43408->su= pplies); + ret =3D regulator_bulk_disable(ARRAY_SIZE(sw43408_supplies), sw43408->sup= plies); =20 return ret; } @@ -152,7 +157,7 @@ static int sw43408_prepare(struct drm_panel *panel) struct sw43408_panel *ctx =3D to_panel_info(panel); int ret; =20 - ret =3D regulator_bulk_enable(ARRAY_SIZE(ctx->supplies), ctx->supplies); + ret =3D regulator_bulk_enable(ARRAY_SIZE(sw43408_supplies), ctx->supplies= ); if (ret < 0) return ret; =20 @@ -166,7 +171,7 @@ static int sw43408_prepare(struct drm_panel *panel) =20 poweroff: gpiod_set_value(ctx->reset_gpio, 1); - regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); + regulator_bulk_disable(ARRAY_SIZE(sw43408_supplies), ctx->supplies); return ret; } =20 @@ -248,13 +253,10 @@ static int sw43408_add(struct sw43408_panel *ctx) struct device *dev =3D &ctx->link->dev; int ret; =20 - ctx->supplies[0].supply =3D "vddi"; /* 1.88 V */ - ctx->supplies[0].init_load_uA =3D 62000; - ctx->supplies[1].supply =3D "vpnl"; /* 3.0 V */ - ctx->supplies[1].init_load_uA =3D 857000; - - ret =3D devm_regulator_bulk_get(dev, ARRAY_SIZE(ctx->supplies), - ctx->supplies); + ret =3D devm_regulator_bulk_get_const(dev, + ARRAY_SIZE(sw43408_supplies), + sw43408_supplies, + &ctx->supplies); if (ret < 0) return ret; =20 --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 90F892FC865; Sat, 6 Dec 2025 13:34:44 +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=1765028084; cv=none; b=Nay2g/doSzUZQs0WWM9RbAubd1AsZHJAMXPuS5oZZKCv4MQ3SJzSRIAU4JcZjek1Vw1LGuDJxc1vCuPGpMKyTtC2u1PGtkzNR+TIuOniQkBcMHB0z1au0MGkifN3V1vqj9rw8fZQAGsctuP9sD4uPayH4dNTScidQqUtBJBgGq4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028084; c=relaxed/simple; bh=wxcxAxt6yqUMa5oCjEjvHeDq/U6esbnh5wFJGsyqE5M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FHDamP2QQnU9NBjUAAovy//HhzFlweUjb46ZZACWs+bTCQAMUzpYPxH9N0SLl6TAW/TkY7PrtqH1dSHgNQLe/Oryo69NQEDAUSCmsg6P6bLkeM9BLV6gM7qOtiDH9QqTmhQzt3/AuicoiUPhZubHpGQwN6s/c9vpik5lz1Vtt6M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=stz3FFaN; 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="stz3FFaN" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6A73DC19421; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028084; bh=wxcxAxt6yqUMa5oCjEjvHeDq/U6esbnh5wFJGsyqE5M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=stz3FFaNyrqjR9+BLwW8o75Tvs2cXGA1WKGAOtFMqpRrF6j+diK5cwoJUjaweSBS9 8MM/VsxP0VNcx0Td4gk+cFmvkBH8LKmSdJWWKiwMwUENteHKhhmcRab5REQ4by8Mll kCiKG7sszX6C439iAYEO4EBh/0BVqMzg74nQ4jWeNDK9WxI5ryCUFd2TdewAxcAqEL jRBiVE+UaesyZvT0Oj/mNegorycS2hPvQk7glI6MVUtRZhLCJKn42xoBFS0jUUsCqZ fNu719/0Q9ExSTFNM3ohOStjGym0djp1KveDwiH4gXxmBociBavAoaBrlOthiLXii0 xf/EUIJSX8LzQ== 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 5DA9BD3B7DA; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:24 +0100 Subject: [PATCH v5 7/8] drm/panel: sw43408: Improve wording when reset-gpios aren't available 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: <20251206-pixel-3-v5-7-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=955; i=david@ixit.cz; h=from:subject:message-id; bh=GyQvEwxDvNQdHbjN2iJyHIARYij0btqlXIWdWGzCINE=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDxtdsdyZTRII7faXPHMLqcHBdNUtm1hB4n9 Y/tQ8DwiHmJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8QAKCRBgAj/E00kg cgoGD/sGRfgdLMW9j5UXx+fps1MGyddnL8U5s42c7eYZmeSUQ9DuHGUMoLC1wUoBWDSr+ncCVjk ohFTrMRteBjKioco4gdoCm6CnNaepk59n2qGsQPHZSB99dA73a/XZciVeOfBr+XutqBGfMK1wNR 4x7DzdnJj2lb/7zUufZR3r9GhO7sf0+0z1PaiJ7nATKIgfE70AwqWuOsGKNraw4lica7Y0msov6 Di+6PKOmb/5GES9mvJtQ3Z1aUGoGrB4+7ei9T+UtmWZrTazkGeKsijLv0dKQquPoo679HnDtM9w MxkzEZ0WfmgojdxKuYSXNbMAiK4RSkrcfM+a1n6i0k7odi51zE0yWZKycyd9mhJaVZCxCNIS3S+ R1YrKNSxDoUYKvDGT2301yXYZHOt+HksLPHQ2KxZZDfLBpDN6ca098WtDdm0cYysPRtGW6A8JcW V1Ljz29QORgmsn5OxWeaCOpAw8LN9tPGbzk1Mh5xHtGaiLJwTglX14q5C+UW86IAKqiJgbt51G5 nleLMD84u/Z/Ae/PC+jOFETq+t2zCIl86I/7m8Yqgt6VmSMLB3UrFC2Yi/u/Efrk8RvyBj2EvW8 7q7QBTnN6vFmenePwrRM825mEdzWc4Tu51+1igSRyelu/VRFjQFuKjVi8OLRl4MXf1g8xwieCJ3 t/T6mQSiE7g4yRQ== 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 Choose better wording. Cosmetic: also inline PTR_ERR. Reviewed-by: Dmitry Baryshkov Signed-off-by: David Heidelberg --- drivers/gpu/drm/panel/panel-lg-sw43408.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index 65d54c8a9630f..bef60dfc925d1 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -262,8 +262,8 @@ static int sw43408_add(struct sw43408_panel *ctx) =20 ctx->reset_gpio =3D devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(ctx->reset_gpio)) { - ret =3D PTR_ERR(ctx->reset_gpio); - return dev_err_probe(dev, ret, "cannot get reset gpio\n"); + return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), + "Failed to get reset-gpios\n"); } =20 ret =3D sw43408_backlight_init(ctx); --=20 2.51.0 From nobody Fri Dec 19 13:31:06 2025 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 DE1062F656A; Sat, 6 Dec 2025 13:34:43 +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=1765028084; cv=none; b=N2OnI8Drt6faTL1XTdrS/oaREsKsPc8gn5apqsEH0mjcfnu7AMarXNxii1cBVGmTdMceccDvAV83Ue1ZMxxovn82cD74HPBUKlXwJWTi534OIus0+QLZEYDQkti7NutYreD5GJzDv4LK8WSv2lbzar5jH/8ydAyijuy24d+vDr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765028084; c=relaxed/simple; bh=3kvtWSR4OEreDyLv3IwYHiS3ChRzvuGIX9Ko5q8FkEE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UG9qb2FgIUO46U8DOP4+5Dc7AZpz+wpSX10d1UZUQfYmJkMuY3CV/4TKfCIs9UNh0iV0UqAYQKMnd8aohOe/c+Hbkt4XHJnvhukpE1Cr2vUogKg3H5DqUaow7nFveTrYMOWRswKRf648GWDLZVQUqypTt9e9tqtnePX0HUpVxtM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DVIKPRmw; 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="DVIKPRmw" Received: by smtp.kernel.org (Postfix) with ESMTPS id 7FA7FC4CEF5; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765028083; bh=3kvtWSR4OEreDyLv3IwYHiS3ChRzvuGIX9Ko5q8FkEE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DVIKPRmwGEAsdqut3gIj6rcpNsUZbkBkIOXcSm/GP/WASoocevWXakeIWhJbvBF+n xQSa7zDF9V89nv1/S4isLDlLiLF6fAoogkEo2V2H/gn18Wj5LGR1G+2pq9ltbaHzRd B9ByW9TGlrljUXA2kxJX4pMFJQYXjgMBR1FRU0WMA+lZbzokevu5/GipmlHiPQf8gu zB0l86ULrM6yFqNV4fmuIFcCh5f5FcZaHGBPrXCzKNY+laQYtWxsCgmkpnngXHItOP gt+5Zxq6f9h2zKH226Q2sl1JjMOd+WWQBdqDwhLqtpczoVJvYZvSjkXSpkiGiP4tc5 Cd9rrkqLAw19w== 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 75D3BD339BC; Sat, 6 Dec 2025 13:34:43 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sat, 06 Dec 2025 14:34:25 +0100 Subject: [PATCH v5 8/8] arm64: dts: qcom: Add support for Pixel 3 and Pixel 3 XL 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: <20251206-pixel-3-v5-8-dc99732e7d35@ixit.cz> References: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> In-Reply-To: <20251206-pixel-3-v5-0-dc99732e7d35@ixit.cz> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sumit Semwal , Casey Connolly , Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Marijn Suijten , Dmitry Baryshkov , Vinod Koul , Petr Hodina , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg , Amit Pundir , Casey Connolly , Joel Selvaraj , Konrad Dybcio , Bjorn Andersson X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=17624; i=david@ixit.cz; h=from:subject:message-id; bh=aS0TPeN+03ZqUJvQ0l2E8EDB0XiQVrn/yOikmNSTrZY=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpNDDxppCNNB0Boyota9aOX4rKPobixLUS/ESUl to3EPMOTNKJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaTQw8QAKCRBgAj/E00kg ciBsEADHbDh5E4wIGyXsMbeVL4RvVUvJGhhsfpdKBMWmFg5fpe4dFI7uTDalM7+jEd1DP43Voy5 o+OQZdMX0zQy+XO6tUO3Fz21CBj8YTYkeDiQUoYoNUZYmzkB1xFEYC9qLNWYN1DwBhvm0wvzh5e p55rSBkv3jbjVBFANiu5QCXLbyXmTT2qmzUI62MIAu4rAF+PHhBxCResGJqbe5ISSVZeAGyY5nE znSw2HBq5yNusFzPR0iWvPgrVGm/Vwc+Z75qH0OyfOK2ueWSzW73RKOFg+fFk/XcOf2ukB66pbP l7LZeo1IVbMqqZQAxbNfr4kPrKHWscv9AzEpJzj0gvY40Nj9fEZEoxxrXCERW0PqTdqDnZQDLax NEfqvQ7/CT+Rg1pZB8jV7b+9H86l/Ta99L6lBRmARF40n6tpQq3eE8jH7rvoFHF93OI1/r9c41/ XZTKVVmrgMqpbQKJPJkG07XNeFfgS5o//hyvHSiwgvIeNgMMZKqcPvWBl4haRhJV9W/hdqCOlFp jqLdMyg7m60NaQlAzWLTZevBVO4HWxhYe2kqpuWFfRnYJF2qtALdE6jtKLi/5TCgbknEoBpby5f BTaElx1RZTjD2lqZZf3LjtVg4J26+GEo3pKEQy55nlKJ8pnU3FiKJ/ZzIqvl2OIpx40CaW+4QG1 a1wOePH/gO7dH2w== 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 This adds initial device tree support for the following phones: - Google Pixel 3 (blueline) - Google Pixel 3 XL (crosshatch) Both phone boards use the same identifiers and differ only slightly in their connected peripherals. Supported functionality includes: - Debug UART - UFS - USB-C (peripheral mode) - Display (Pixel 3 only, and the driver needs improvements) - GPU - Bluetooth - Wi-Fi The rmtfs region is allocated using UIO, making it technically "dynamic." Its address and size can be read from sysfs: $ cat /sys/class/uio/uio0/name /sys/class/uio/uio0/maps/map0/addr 0x00000000f2701000 $ cat /sys/class/uio/uio0/maps/map0/size 0x0000000000200000 Like the OnePlus 6, the Pixel 3 requires 1 kB of reserved memory on either side of the rmtfs region to work around an XPU bug that would otherwise cause erroneous violations when accessing the rmtfs_mem region. Co-developed-by: Amit Pundir Signed-off-by: Amit Pundir Co-developed-by: Bjorn Andersson Signed-off-by: Bjorn Andersson Co-developed-by: Casey Connolly Signed-off-by: Casey Connolly Co-developed-by: Joel Selvaraj Signed-off-by: Joel Selvaraj Co-developed-by: Sumit Semwal Signed-off-by: Sumit Semwal Co-developed-by: Vinod Koul Signed-off-by: Vinod Koul Reviewed-by: Konrad Dybcio Signed-off-by: David Heidelberg --- arch/arm64/boot/dts/qcom/Makefile | 2 + .../arm64/boot/dts/qcom/sdm845-google-blueline.dts | 85 ++++ arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 524 +++++++++++++++++= ++++ .../boot/dts/qcom/sdm845-google-crosshatch.dts | 28 ++ 4 files changed, 639 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index 6f34d5ed331c4..c853b28b3b198 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -250,6 +250,8 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-db845c.dtb sdm845-db845c-navigation-mezzanine-dtbs :=3D sdm845-db845c.dtb sdm845-db84= 5c-navigation-mezzanine.dtbo =20 dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-db845c-navigation-mezzanine.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-google-crosshatch.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-google-blueline.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-lg-judyln.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-lg-judyp.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sdm845-mtp.dtb diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts b/arch/arm= 64/boot/dts/qcom/sdm845-google-blueline.dts new file mode 100644 index 0000000000000..cb9716ed3da33 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts @@ -0,0 +1,85 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "sdm845-google-common.dtsi" + +/ { + model =3D "Google Pixel 3"; + compatible =3D "google,blueline", "qcom,sdm845"; +}; + +&battery { + charge-full-design-microamp-hours =3D <2970000>; + voltage-min-design-microvolt =3D <3600000>; + voltage-max-design-microvolt =3D <4400000>; +}; + +&framebuffer0 { + width =3D <1080>; + height =3D <2160>; + stride =3D <(1080 * 4)>; +}; + +&i2c2 { + clock-frequency =3D <1000000>; + + status =3D "okay"; + + /* ST,FTS @ 49 */ +}; + +&mdss_dsi0 { + vdda-supply =3D <&vdda_mipi_dsi0_1p2>; + + status =3D "okay"; + + panel@0 { + compatible =3D "lg,sw43408-lh546wf1-ed01", "lg,sw43408"; + reg =3D <0>; + + vddi-supply =3D <&vreg_l14a_1p8>; + vpnl-supply =3D <&vreg_l28a_3p0>; + + reset-gpios =3D <&tlmm 6 GPIO_ACTIVE_LOW>; + + pinctrl-0 =3D <&panel_default>; + pinctrl-names =3D "default"; + + port { + panel_in: endpoint { + remote-endpoint =3D <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes =3D <0 1 2 3>; + remote-endpoint =3D <&panel_in>; + qcom,te-source =3D "mdp_vsync_e"; +}; + +&mdss_dsi0_phy { + vdds-supply =3D <&vdda_mipi_dsi0_pll>; + + status =3D "okay"; +}; + +&tlmm { + panel_default: panel-default-state { + reset-pins { + pins =3D "gpio6"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; + + te-pins { + pins =3D "gpio12"; + function =3D "mdp_vsync"; + drive-strength =3D <2>; + bias-pull-down; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi b/arch/arm6= 4/boot/dts/qcom/sdm845-google-common.dtsi new file mode 100644 index 0000000000000..00b653c40be85 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi @@ -0,0 +1,524 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include +#include +#include +#include +#include + +#include "sdm845.dtsi" +#include "pm8998.dtsi" +#include "pmi8998.dtsi" + +/delete-node/ &mpss_region; +/delete-node/ &venus_mem; +/delete-node/ &cdsp_mem; +/delete-node/ &mba_region; +/delete-node/ &slpi_mem; +/delete-node/ &spss_mem; +/delete-node/ &rmtfs_mem; + +/ { + chassis-type =3D "handset"; + qcom,board-id =3D <0x00021505 0>; + qcom,msm-id =3D ; + + aliases { + serial0 =3D &uart9; + serial1 =3D &uart6; + }; + + battery: battery { + compatible =3D "simple-battery"; + }; + + chosen { + #address-cells =3D <2>; + #size-cells =3D <2>; + ranges; + + stdout-path =3D "serial0:115200n8"; + + /* Use display framebuffer as setup by bootloader */ + framebuffer0: framebuffer-0 { + compatible =3D "simple-framebuffer"; + memory-region =3D <&cont_splash_mem>; + + format =3D "a8r8g8b8"; + }; + }; + + reserved-memory { + cont_splash_mem: splash@9d400000 { + reg =3D <0 0x9d400000 0 0x02400000>; + no-map; + }; + + mpss_region: memory@8e000000 { + reg =3D <0 0x8e000000 0 0x9800000>; + no-map; + }; + + venus_mem: venus@97800000 { + reg =3D <0 0x97800000 0 0x500000>; + no-map; + }; + + cdsp_mem: cdsp-mem@97D00000 { + reg =3D <0 0x97D00000 0 0x800000>; + no-map; + }; + + mba_region: mba@98500000 { + reg =3D <0 0x98500000 0 0x200000>; + no-map; + }; + + slpi_mem: slpi@98700000 { + reg =3D <0 0x98700000 0 0x1400000>; + no-map; + }; + + spss_mem: spss@99B00000 { + reg =3D <0 0x99B00000 0 0x100000>; + no-map; + }; + + rmtfs_mem: rmtfs-region@f2700000 { + compatible =3D "qcom,rmtfs-mem"; + reg =3D <0 0xf2700000 0 0x202000>; + qcom,use-guard-pages; + no-map; + + qcom,client-id =3D <1>; + qcom,vmid =3D ; + }; + }; + + gpio-keys { + compatible =3D "gpio-keys"; + label =3D "Volume keys"; + autorepeat; + + pinctrl-0 =3D <&volume_up_gpio>; + pinctrl-names =3D "default"; + + key-vol-up { + label =3D "Volume Up"; + linux,code =3D ; + gpios =3D <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; + debounce-interval =3D <15>; + }; + }; + + vph_pwr: regulator-vph-pwr { + compatible =3D "regulator-fixed"; + regulator-name =3D "vph_pwr"; + regulator-min-microvolt =3D <3700000>; + regulator-max-microvolt =3D <3700000>; + }; + + vreg_s4a_1p8: regulator-vreg-s4a-1p8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vreg_s4a_1p8"; + + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + regulator-boot-on; + + vin-supply =3D <&vph_pwr>; + }; +}; + +&adsp_pas { + firmware-name =3D "qcom/sdm845/Google/blueline/adsp.mbn"; + + status =3D "okay"; +}; + +&apps_rsc { + regulators-0 { + compatible =3D "qcom,pm8998-rpmh-regulators"; + qcom,pmic-id =3D "a"; + + vdd-s1-supply =3D <&vph_pwr>; + vdd-s2-supply =3D <&vph_pwr>; + vdd-s3-supply =3D <&vph_pwr>; + vdd-s4-supply =3D <&vph_pwr>; + vdd-s5-supply =3D <&vph_pwr>; + vdd-s6-supply =3D <&vph_pwr>; + vdd-s7-supply =3D <&vph_pwr>; + vdd-s8-supply =3D <&vph_pwr>; + vdd-s9-supply =3D <&vph_pwr>; + vdd-s10-supply =3D <&vph_pwr>; + vdd-s11-supply =3D <&vph_pwr>; + vdd-s12-supply =3D <&vph_pwr>; + vdd-s13-supply =3D <&vph_pwr>; + vdd-l1-l27-supply =3D <&vreg_s7a_1p025>; + vdd-l2-l8-l17-supply =3D <&vreg_s3a_1p35>; + vdd-l3-l11-supply =3D <&vreg_s7a_1p025>; + vdd-l4-l5-supply =3D <&vreg_s7a_1p025>; + vdd-l6-supply =3D <&vph_pwr>; + vdd-l7-l12-l14-l15-supply =3D <&vreg_s5a_2p04>; + vdd-l9-supply =3D <&vreg_bob>; + vdd-l10-l23-l25-supply =3D <&vreg_bob>; + vdd-l13-l19-l21-supply =3D <&vreg_bob>; + vdd-l16-l28-supply =3D <&vreg_bob>; + vdd-l18-l22-supply =3D <&vreg_bob>; + vdd-l20-l24-supply =3D <&vreg_bob>; + vdd-l26-supply =3D <&vreg_s3a_1p35>; + vin-lvs-1-2-supply =3D <&vreg_s4a_1p8>; + + vreg_s3a_1p35: smps3 { + regulator-min-microvolt =3D <1352000>; + regulator-max-microvolt =3D <1352000>; + }; + + vreg_s5a_2p04: smps5 { + regulator-min-microvolt =3D <1904000>; + regulator-max-microvolt =3D <2040000>; + }; + + vreg_s7a_1p025: smps7 { + regulator-min-microvolt =3D <900000>; + regulator-max-microvolt =3D <1028000>; + }; + + vdda_mipi_dsi0_pll: + vreg_l1a_0p875: ldo1 { + regulator-min-microvolt =3D <880000>; + regulator-max-microvolt =3D <880000>; + regulator-initial-mode =3D ; + regulator-boot-on; + }; + + vreg_l5a_0p8: ldo5 { + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <800000>; + regulator-initial-mode =3D ; + }; + + vreg_l12a_1p8: ldo12 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + + vreg_l7a_1p8: ldo7 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + + vreg_l13a_2p95: ldo13 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <2960000>; + regulator-initial-mode =3D ; + }; + + vreg_l14a_1p8: ldo14 { + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + regulator-boot-on; + /* + * We can't properly bring the panel back if it gets turned off + * so keep it's regulators always on for now. + */ + regulator-always-on; + }; + + vreg_l17a_1p3: ldo17 { + regulator-min-microvolt =3D <1304000>; + regulator-max-microvolt =3D <1304000>; + regulator-initial-mode =3D ; + }; + + vreg_l19a_3p3: ldo19 { + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3312000>; + regulator-initial-mode =3D ; + /* + * The touchscreen needs this to be 3.3v, which is apparently + * quite close to the hardware limit for this LDO (3.312v) + * It must be kept in high power mode to prevent TS brownouts + */ + regulator-allowed-modes =3D ; + }; + + vreg_l20a_2p95: ldo20 { + regulator-min-microvolt =3D <2960000>; + regulator-max-microvolt =3D <2968000>; + regulator-initial-mode =3D ; + }; + + vreg_l21a_2p95: ldo21 { + regulator-min-microvolt =3D <2960000>; + regulator-max-microvolt =3D <2968000>; + regulator-initial-mode =3D ; + }; + + vreg_l24a_3p075: ldo24 { + regulator-min-microvolt =3D <3088000>; + regulator-max-microvolt =3D <3088000>; + regulator-initial-mode =3D ; + }; + + vreg_l25a_3p3: ldo25 { + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3312000>; + regulator-initial-mode =3D ; + }; + + vdda_mipi_dsi0_1p2: + vreg_l26a_1p2: ldo26 { + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-initial-mode =3D ; + regulator-boot-on; + }; + + vreg_l28a_3p0: ldo28 { + regulator-min-microvolt =3D <2856000>; + regulator-max-microvolt =3D <3008000>; + regulator-initial-mode =3D ; + regulator-boot-on; + /* + * We can't properly bring the panel back if it gets turned off + * so keep it's regulators always on for now. + */ + regulator-always-on; + }; + }; + + regulators-1 { + compatible =3D "qcom,pmi8998-rpmh-regulators"; + qcom,pmic-id =3D "b"; + + vdd-bob-supply =3D <&vph_pwr>; + + vreg_bob: bob { + regulator-min-microvolt =3D <3312000>; + regulator-max-microvolt =3D <3600000>; + regulator-initial-mode =3D ; + regulator-allow-bypass; + }; + }; + + regulators-2 { + compatible =3D "qcom,pm8005-rpmh-regulators"; + qcom,pmic-id =3D "c"; + + vdd-s1-supply =3D <&vph_pwr>; + vdd-s2-supply =3D <&vph_pwr>; + vdd-s3-supply =3D <&vph_pwr>; + vdd-s4-supply =3D <&vph_pwr>; + + vreg_s3c_0p6: smps3 { + regulator-min-microvolt =3D <600000>; + regulator-max-microvolt =3D <600000>; + }; + }; +}; + +&cdsp_pas { + firmware-name =3D "qcom/sdm845/Google/blueline/cdsp.mbn"; + + status =3D "okay"; +}; + +&gcc { + protected-clocks =3D , + , + ; +}; + +&gpi_dma0 { + status =3D "okay"; +}; + +&gpi_dma1 { + status =3D "okay"; +}; + +&gpu { + status =3D "okay"; +}; + +&gpu_zap_shader { + firmware-name =3D "qcom/sdm845/Google/blueline/a630_zap.mbn"; +}; + +&i2c12 { + /* Bottom spkr (right) CS35L36 @ 40 */ + + /* Top spkr (left) CS35L36 @ 41 */ +}; + +&ipa { + firmware-name =3D "qcom/sdm845/Google/blueline/ipa_fws.mbn"; + memory-region =3D <&ipa_fw_mem>; + + status =3D "okay"; +}; + +&mdss { + status =3D "okay"; +}; + +&mss_pil { + firmware-name =3D "qcom/sdm845/Google/blueline/mba.mbn", + "qcom/sdm845/Google/blueline/modem.mbn"; + + status =3D "okay"; +}; + +&pm8998_gpios { + volume_up_gpio: vol-up-active-state { + pins =3D "gpio6"; + function =3D "normal"; + input-enable; + bias-pull-up; + qcom,drive-strength =3D <0>; + }; +}; + +&pm8998_resin { + linux,code =3D ; + + status =3D "okay"; +}; + +&pmi8998_charger { + monitored-battery =3D <&battery>; + + status =3D "okay"; +}; + +&qupv3_id_0 { + status =3D "okay"; +}; + +&qupv3_id_1 { + status =3D "okay"; +}; + +&qup_uart9_rx { + drive-strength =3D <2>; + bias-pull-up; +}; + +&qup_uart9_tx { + drive-strength =3D <2>; + bias-disable; +}; + +&tlmm { + gpio-reserved-ranges =3D < 0 4>, /* SPI (Intel MNH Pixel Visual Core) */ + <81 4>; /* SPI (most likely Fingerprint Cards FPC1075) */ + + touchscreen_reset: ts-reset-state { + pins =3D "gpio99"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-up; + }; + + touchscreen_pins: ts-pins-gpio-state { + pins =3D "gpio125"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + touchscreen_i2c_pins: qup-i2c2-gpio-state { + pins =3D "gpio27", "gpio28"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; +}; + +&uart6 { + pinctrl-0 =3D <&qup_uart6_4pin>; + + status =3D "okay"; + + bluetooth { + compatible =3D "qcom,wcn3990-bt"; + + vddio-supply =3D <&vreg_s4a_1p8>; + vddxo-supply =3D <&vreg_l7a_1p8>; + vddrf-supply =3D <&vreg_l17a_1p3>; + vddch0-supply =3D <&vreg_l25a_3p3>; + max-speed =3D <3200000>; + }; +}; + +&uart9 { + status =3D "okay"; +}; + +&ufs_mem_hc { + reset-gpios =3D <&tlmm 150 GPIO_ACTIVE_LOW>; + + vcc-supply =3D <&vreg_l20a_2p95>; + vcc-max-microamp =3D <800000>; + + status =3D "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply =3D <&vreg_l1a_0p875>; + vdda-pll-supply =3D <&vreg_l26a_1p2>; + + status =3D "okay"; +}; + +&usb_1 { + status =3D "okay"; +}; + +&usb_1_dwc3 { + dr_mode =3D "peripheral"; +}; + +&usb_1_hsphy { + vdd-supply =3D <&vreg_l1a_0p875>; + vdda-pll-supply =3D <&vreg_l12a_1p8>; + vdda-phy-dpdm-supply =3D <&vreg_l24a_3p075>; + + qcom,imp-res-offset-value =3D <8>; + qcom,hstx-trim-value =3D ; + qcom,preemphasis-level =3D ; + qcom,preemphasis-width =3D ; + + status =3D "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply =3D <&vreg_l26a_1p2>; + vdda-pll-supply =3D <&vreg_l1a_0p875>; + + status =3D "okay"; +}; + +&venus { + firmware-name =3D "qcom/sdm845/Google/blueline/venus.mbn"; + + status =3D "okay"; +}; + +&wifi { + vdd-0.8-cx-mx-supply =3D <&vreg_l5a_0p8>; + vdd-1.8-xo-supply =3D <&vreg_l7a_1p8>; + vdd-1.3-rfa-supply =3D <&vreg_l17a_1p3>; + vdd-3.3-ch0-supply =3D <&vreg_l25a_3p3>; + + qcom,snoc-host-cap-8bit-quirk; + + status =3D "okay"; +}; diff --git a/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts b/arch/a= rm64/boot/dts/qcom/sdm845-google-crosshatch.dts new file mode 100644 index 0000000000000..5cb0aa8b37fda --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include "sdm845-google-common.dtsi" + +/ { + model =3D "Google Pixel 3 XL"; + compatible =3D "google,crosshatch", "qcom,sdm845"; +}; + +&battery { + charge-full-design-microamp-hours =3D <3480000>; + voltage-min-design-microvolt =3D <3600000>; + voltage-max-design-microvolt =3D <4400000>; +}; + +&framebuffer0 { + width =3D <1440>; + height =3D <2960>; + stride =3D <(1440 * 4)>; +}; + +&mdss { + /* until the panel is prepared */ + status =3D "disabled"; +}; + --=20 2.51.0