From nobody Tue Dec 16 07:30:53 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 479D4200113; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=Ze2HAnxF+IbrCMCVthrL2LeyzlU9dQQyb02/OnT3BlhciAC3msY9+i4YoZmBQXCPmQcJwx2XS9vhvoGM9e9x3kH2dRfEEoXyjhtGLsfz/HTpdl7pCP4Bs/U/9P6dcw1fgIu1g1Q3UYsDgwZnBw2DQhUlgv0pd+ol8RMDXscNlJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=HjJDMUd9VNGNyS2sUGn4tel1CQSAz6Tp6zX5Z6lzkq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YNe7OMGqtMo+TkggJWHXo+eTIRRdHakTvcybmUqIQzTd3bMm6LHMKaK/SI17OyEXX9G3X20UK5Vmh4pbH3F8q8IotQrXahStn4qJiCQR/Fz6D9YyTdvSkoM9A0hSq0h/m24HK19N2kzjHrhQ802gCujqURqLSptozFDHv9inuJM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aClpIfBn; 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="aClpIfBn" Received: by smtp.kernel.org (Postfix) with ESMTPS id C5EE3C19421; Sun, 14 Dec 2025 14:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723884; bh=HjJDMUd9VNGNyS2sUGn4tel1CQSAz6Tp6zX5Z6lzkq8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=aClpIfBnQFANU95uHtPXKOl1rZqEzlSUFwLzGEYQ+ntQJdnxtPvfMv9MrGMVNnn2M Q4B5NUkVa5ZqbjdflC6Nqzzk/Zedc2fb+eznE4lDSo8wJj+XU0BB8kK0rpssO6I/O8 FRIDWedLTKcw8qaw/gt44jNgMDee3zUUUMAmF/d3hSLG4QcPBN3B2anIa9RmbA+oy5 xn4nG1lIkm0raBhJPc1SclLJVxSjfg/KPNSnoSpE2H78l9hrVw+ax+jjqiLr26K3yk 06xkjpDRT7EWlaDAQPw5mhXfhd2hgX7UJDpCu3u4bj3K5HHD4yFhgxBoaMwKrKhOKw 4Fx46GyjX/2sQ== 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 B1BC9D5B16D; Sun, 14 Dec 2025 14:51:24 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:17 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-1-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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/ZANAwAIAWACP8TTSSByAcsmYgBpPs7pgp0W/ABUwFwmSK4XBPVArnh4jOPDAljuo bCKqZ7IfOKJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6QAKCRBgAj/E00kg cvrWEACZFsRcAcnuwWVSl/j6Y+FDxYSFS7U+eodnFNRMlp3dnCbPUKmKYKznYazg2AdRc3CtaCr UFtxmuyxPQIMfViqiIo+U0v9xWrpznYhf9lc5LUHqAV7Ggn3n/XGRgOoA07YQ9oDT27gxIDbAir aqTOV3FzSIZsRaBExGiHaE23Eq6K7R+QXr9HS18bAjsGD2LSLZ5yEz1MEIVxbg2u5XxrLyFkpi8 9fFcEPlHq6aiAJVWyMoKJYQoAGu4QaZtmziIEHYpp4k8gP76ENSaypoOWfRXHMHOMKPUY3otGnG M4DuaID3HZLBtat0lRKxz3lIhKWIpAwpIif4JxKrpMS7VEelWVMmxHradOr9ZAwxpFd1hSjvLQO OTUv2F9Ztw3LOEQCK0fHTIopllRZGcVDfl9klkpzdwGEXbj9reAXdqeKpKJdm8JUUfNb4eVeS1e GBO13/t5BGokzP91ky0NFj1DzSUk6JY1KyjjltSOiDLFkX8+sg9SshqSlqS2KQS3gMJm241pfay +jquu8ivUBmF4yAwoc4trMClfEYD1J7GJb7CFFbRB77YU1oiWpn16i0NOIQ+35ON9/qymMM8R0L brHI+S+D+ate14e5ka04I68P4QAUFQ9RglYYrBv4J7KICxASmLdkjEaNbM45JDdS4jVGVuEaj6p Aphu0fPmsiV9CMQ== 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 Tue Dec 16 07:30:53 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 5E7242222A9; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=KmIXLTzxtdISljnLxVyzFoYnKd0tgxe+qsEdZyLu6SDGydX6Ie5WflowxBwst6doak/wKXCVWdFmzrwpp4MDzssegf0pjWfZKcbF7wBT5O6fb6qK5GyqIMnR6UC+XVG9xW0OFd6YbyqTPFzBpvjcyKh1gOuQ0tgTJ+NLo4eNuQE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=P6JIG7+hx3GfFzXJ3PaLVXgbb5QcMZmiNNwqLuWL2lE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rbJyI8Jvr9VfzbxXUAGFftfeJCnBSdlhSD6v3kCRdGlGKOIj5UEgP91Y5WCyGyFQIJelhYv/jJJEviVz+ZpPl5zBAfk582kkfxF3mnT8eGnmt7aTU5/BYs/TQ2s//zYvMd2rTkA0/C0QUiGpCG12pv+ncIdLl0H74dM+42otFck= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R2SSz347; 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="R2SSz347" Received: by smtp.kernel.org (Postfix) with ESMTPS id EA4F1C4AF0F; Sun, 14 Dec 2025 14:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=P6JIG7+hx3GfFzXJ3PaLVXgbb5QcMZmiNNwqLuWL2lE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=R2SSz347OxKTzAPx8zyj0MJF7Yw5gBKJnmGcmEFVinAbkIO82uGMqcNOBcF3XWuyb 7rzTGr6T2lnrtAQQXmbKnw9NnWGr8X0Q237O1jVR0js7vizxjhheYjYII5l9bRCmWr grO2cWC8EpLin6OVnGcuFmayoMA+XGp+TaArr3jk/tnboILzl36TOS6VlzVrzZzZAn irDWz2egUZvGTpGO/61tIATiFwGAGR/YcBF822/PnkthBPjuk0NT0wzN3lWQdDnVAd AxZRL1cRkIsFh0PUOqM9YbJJB//zHskhBx9xIcPyUMS10iDzbBoa108PreLSxAadr8 XV481Fw6+WYQw== 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 E0F7AD59D99; Sun, 14 Dec 2025 14:51:24 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:18 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-2-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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/ZANAwAIAWACP8TTSSByAcsmYgBpPs7pHn9J6iCqBCdtD8yewwLBpfudJ4RJP++xB 59hQduA39+JAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6QAKCRBgAj/E00kg cpZKD/9PH8dDTDkpIg9K/Ku80OQ7/JGvd1yAdL5NrW/VSu14lqUowYNik7JbHpgMx+uiRZZ1Y+e N+tTwgRxJxGM9p6AnScv7K+p4SHh+YJJ2BHjJJCCi0HCFLXItb9J1MPmwSz1LgYC7xd6v70HPZ1 adtBFognWX6FiP1Cp2xUpga6yT/ufLzNAiv601rPL2ykPuQsJobI2vPiEnxRzYVohVuJ9OB4lJ/ Wi9hcyxXKejNhRS6C5YaX8U1upG2YV8m3PPbtaD4aR1Rj5sQL7FFVnAjBqxCqsECPD6QrSZFt18 Ij8rilGiXR0FjyGAW+s9jnXJoC6D5UtkkkJ90vXGd9VH+MEzUu7UvFT5KhADt5LUdKUu4Z1T8SI Tarz4xtvsBen2X40SotwdygUaOAUqpMID58qFAGJP8WOzBBvXYd9cgpqdcxL1e1lGTCqQw3tAE4 MYEEjUr/ZJo16wvuTHrXB5Jxhre9Z0C8J/q7Agw2VcoHNfVpKF3mMjtMzb3hQa3LHHFvR5fnQU8 DDcliAJ6dZ5msma+z/G8nibryNVpz+yd0sxYXBU2Qvg9z6bQ5M48lOOBfv4OzMh9yFPdWJfeVJG QCpu3aD4Y2tlyaV8Rw6EEaZNF7qe7+MV13TEcb3TXJjINUCDGJmA58Pw/gFYPTLafHejpeNUJ3B gUBckHN587ZOliQ== 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 Tue Dec 16 07:30:53 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 5FEE5225A34; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=Um/iLnjRkOWLnx5CE7MwvmWOMVLuOFwPMmODXpug97N48C7wzESDo6JrZCwjiQCP3WYLt3uDO4j/kUf6ix5QJIE04V43QIQJ8E99sdx3vbVwhA8Pw44f+rZN6zETMxurlDo3MLfsp2NKb0ZXUWcL/hYBvz+A/k4ZDwBPqdj6U20= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=7dRCkVhoY2x3WSouCqiav3GqVK107vBblD9M5kWqe3E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=secAwyPEFexbKMVN3FcRkf5Ql0oiyc3hkPsz7TwJi0u965LNjeTIF5/VVn6T61UFT1DWGDN9psW7MUfn3mXn5HanN/rk8JNiwrs5HmFLEydKEygUP9Y7PcBbh4oVpwYgF3wKvsJFW+UMWMwiQvx8YE8gdKy7Od5G+sk0fbjY5uw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qXbUOA5X; 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="qXbUOA5X" Received: by smtp.kernel.org (Postfix) with ESMTPS id 088FCC2BCB0; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=7dRCkVhoY2x3WSouCqiav3GqVK107vBblD9M5kWqe3E=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=qXbUOA5X3mn2FMuHerPq3pO0ux4Sncq0965K9Z+o9vrFhEwbNiiy24hkvr4IL7IEu l9G3z5CpJTil7oXtjFfjYOMUUiPDb3nqJQmdiBJ+51zmro1hv3Zw3U3nLPgfz0W95k z1GwRv6TegYo2CpXvsmjSm8ASksmRePKNuwPfwokkZUAyAUoAz7k3Bp7avCM2/vTre ppoVZxRfQzMN7P6N60JnrQUqz178PiGGM7CCeM4SYcQE3T+MGk59czQO8tAzus/L3r 9p8u3g9jraN4xtlkiYQRPlbMvBCoriVTe0OM89lyRWUn1hVnw2k6Kv+1Tszs2auuoa QzTN0YYRJ/UQQ== 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 F32F6D5B170; Sun, 14 Dec 2025 14:51:24 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:19 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-3-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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/ZANAwAIAWACP8TTSSByAcsmYgBpPs7pcjJ8DiNm/QsQ2xgqL2hhrn6hr487/6aGL ui0uC6MMsGJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6QAKCRBgAj/E00kg ctMUEACWQDMLGDo+ER5UtNNwjpv+5lUOBlXndjOknI4BVQxaNXIaiehOZmzYL0zwL/Jz41ORIxE nUgeCa1AjM/vkqf2g9L8pggx3PRFnXaUhK5b+ZwfYIcI2NdCEMJr3Gc2ToNAxxh4XGCm9PIsDpe s6QC0SctaRlA4Ph1YJEf3ckWLWj/W9J4OBIFpoHGxtSRLpWTC7TDpS24VwdBn1PYOXdZGDaM9pD ta4V+h1Wz6YS5PWvcy3RMqCRoLx+4PZ14+UQyeEloTHDA6vq6ynxDIoWotxPEo+8gBS66/097kL vvQhOz0Szi9G3ScxGim/XP9BtW/9uGVkOgTGtVxUqeLhpGId76UqI2jgbUreLpX5ZY4Vv4oTR7l R+6FsTxBVfUQCQ32y+uMyS9EimXthkcPsJLvFBTA3MZST2N704IzP5TaMel9I/wDie1jSB2i/3E DdeZsl9ng6Kv1GYkdJsqT21/gwHPWt1weR6V0sGbd5PoCOuXW5GDNfitfB5wtbD1spbDXo8frE/ gR0roOWBB6TVZXU+w1R3hefcRUPHXKTQp7hnBImEHy1NpwF8rKyQUpUs4zQeayTL2yqXSk3s9Md 1GpANsUu+s92Tg6BEJaDoHk74ON7LGXmopD97Oqx5cXw+LIpiLOts+hImMFKjXusPgwsN1YOOSG PuYc25Vg66r1W4g== 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 Tue Dec 16 07:30:53 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 99A7127EFEE; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=DUbSFaYdHAEMLka6AWJvO4hYG/eVWhXBzefvMvtFI0E4y1MJO01Ps76mExHt4EN+XqPmhCrfiKFoVTtbCxh2hhy1UKEmWiM7IhnqDjpdGpWTiljwQl1tDYNnrajz1AKyPldgfG9G/onl+uTDA22thtIHLKIExTnNVzaFrtOFrlo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=FTnekFL85P5dEJyzOwFjR26VGROYCVe1TyphWBdknRY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oZwUNT9NAt1ZE1nAXuqm+KQJ4HpK8d15/jfXxmAeJxCDP/VAh/AutGlwiORD99TIcQP1qx3UOkpES/TSws1ODFOkn9KAoN12J0jTmYTHw4KlBrxow4eTqJoxlnJy9NGllWtXZiLT7Z/raUz2fML0X1W7AgRATvyIv7pKslFv62Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WW5f/fKi; 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="WW5f/fKi" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1F043C2BCB5; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=FTnekFL85P5dEJyzOwFjR26VGROYCVe1TyphWBdknRY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=WW5f/fKiJlJevzfMpb86KzwtJcsGHCgEwd+TVRsv4nQhTINVFcssx3kJMY7QO2TTw cJGGmzLrDg8gzTASI4bfnKt0b90Cxk9pEsvXHRJ+UKP2+JFrI2ms+3LqUSCI3b5MbN 9fEx6Pe3Jhed3MB8oCysGGvZaQXlB3CVBbrwUYLj2frAR9YoSmF/r6sG0MAwnfYiHM Oy99VFhWdbNVLmlAgyAD2fhk8bpp5n9gcgYHCDdhluNrn4BE6sD7rf+rQ1W2WPEbPv pcW+rRPCqfTqWhhS1tVSaIL6/AAYBsBhOlCZfdLSCDwKcQWgL8HBTScqQAGRf6UPj0 3iUWi/dyOdY2w== 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 0F066D5B16F; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:20 +0100 Subject: [PATCH v7 4/8] drm/panel: sw43408: Separate reset sequence into own function 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: <20251214-pixel-3-v7-4-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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=1539; i=david@ixit.cz; h=from:subject:message-id; bh=5aFne3CXus5NuIRnX30e5rFmCgrdPMD+0rFZ6fyE3yo=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpPs7pU6yexG9rodzNHtDr27W0QxJohKicQ8AWk Yd2GeLMKg2JAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6QAKCRBgAj/E00kg crfOEACr/nul51iXYZAg7d9hPYj/1defLJUI0rZLjsEdRcrLrZJ4OIcP+LpUjy91cIzgdNbbeq/ yNYGJM2PqzU5bspzz+r32zl+oeY2xzHkPFaRyevtsVlC8rZstZ91+gyXFaPZy6m+Cst2FyHFmsI vUDPEe9vvJ4Jx1/J6l9We+1u0LU5GGo/1qIVvgSod7cNwhk4k7U7t19rAYvP+sly+KAZ+K9rHsO JQJQz3TicLIHj4Mbr6Jy86fUxzBM/CVX4Vg5YaSMXhT9R8HQo/HgkwC3Bvduq5f82PU6TBclIW8 1rsymaKmCsra6fZRXTWDAurSiCPrn7+0uyQNv+JnNMtqAjuu0BPlVslAGXG1SXC77wZ7Neu3Yg8 xPmsc25l4b6+7lrLZpTCs0OTWh5F/D1Y+v2FUTleB1GYd5jHjP8cTEtrk1QWP78htU1fM8a8S9u 2yyrHuGe03z3IK/fKygZZV8tsGlGh5O1wiRVn/T8ZPVoRr6X3uY+3oGMLwBDLJ9u4AGJ+3bxsEY V4E5zIkX9mbXMmvN6NgGkd61vFqSykBmwMUlX9+ZGVx/4H8ORkNtRlg+f0pl9MVEempilIycQ1i KlRxJD/oHX8E6M1jMtxzgz3eOGc5QcvWfzmacvLejyMVk1g4b6jBtlF4RIqcT6yuWCiIvD3jGKk 6COADOMXh1qiIbg== 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 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 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-lg-sw43408.c b/drivers/gpu/drm/pan= el/panel-lg-sw43408.c index dcca7873acf8e..ed9c7452ea846 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -119,6 +119,16 @@ static int sw43408_program(struct drm_panel *panel) return ctx.accum_err; } =20 +static void sw43408_reset(struct sw43408_panel *ctx) +{ + gpiod_set_value(ctx->reset_gpio, 0); + usleep_range(9000, 10000); + gpiod_set_value(ctx->reset_gpio, 1); + 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); @@ -130,12 +140,7 @@ static int sw43408_prepare(struct drm_panel *panel) =20 usleep_range(5000, 6000); =20 - gpiod_set_value(ctx->reset_gpio, 0); - usleep_range(9000, 10000); - gpiod_set_value(ctx->reset_gpio, 1); - usleep_range(1000, 2000); - gpiod_set_value(ctx->reset_gpio, 0); - usleep_range(9000, 10000); + sw43408_reset(ctx); =20 ret =3D sw43408_program(panel); if (ret) --=20 2.51.0 From nobody Tue Dec 16 07:30:53 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 98A1327EFE9; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=uephou/58rj+yy8/6a9rDvB86s2h08Ul3ZRL/JfXJ0Nc1X99fVEGtkkPRUEiZMyVDvEB6Ef8G1fYkSwPzgsiGGpCSDkvdTuRESvEOujoLLSf/oMe7ibz+PoA+YdwXu9PEgnzJdOujSx8Qs1ol28YOItKHPdoTVcA1afAQeTF7oI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=yqGCB9uagcDios2lrbvEV2ATeYHUVOeKQI+6hrowsf0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f5ZvHiZywz+dtku28cdallVvtV7ZPQvRYvqKc5cMxyW4cLR98H2tsq83Vrp6/07Vtjz7TOi2RvXqiXaBfRVhxjgh64rFV/YLDCcAPI2oUerDSHNXID/gUqUWqTAM7Nlv17LcqUW1GQOfzfJiVTUfMHvnokvcxdqdDrpra2bEsJw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JOf+N7n/; 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="JOf+N7n/" Received: by smtp.kernel.org (Postfix) with ESMTPS id 28801C2BCB2; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=yqGCB9uagcDios2lrbvEV2ATeYHUVOeKQI+6hrowsf0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=JOf+N7n/wHFQFqcRKogy2oDSGC9ydwmBIU0P/r2BryQgYtXBox24itn7Mmqg0rajz P8SONqPnoVLtDcGdVM5ey+4HDaw4k8BBu02RKxhDi0UBxGQqkfTbP7akcZTMFEQZip Cu35fHKOnoEya76UhL7NQq0+/lFI+tG8iY2dzPzEHV7QNxCKMv+yW42GWugQs7J+Xt M5bjXOJNI7V7ou9j1dSnejgtWKnWz3jaw3+M4taBlJzElurrv90N5k8GhI+ZoYFMdm M6WxdahBZ3WNELyxQGTIIXkixP/eQ65/VjPnbLbL0kRQwAEl+FkRLvPjpPckff6Itn Po2OMmHgXVOsQ== 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 20B3DD5B171; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:21 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-5-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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=YxNdyRsS+jWwF0GJLCXUSzneFgU0OdR+Q5S8ObKr8gg=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpPs7pk5JtLKnKdkCIskNQb6JYz2ZtvsFDRNpEd OVVuVzvsMGJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6QAKCRBgAj/E00kg cns5D/423Rzm9+Lz7y7yDWnGiOf57algKXXrUD013LL5l4xOI+/kxRgZeAYs8+ohpxUEI3M3gHK zgKvoOxD8BNMu06Zzx8iWjw91Y8IE35kw7YuTx+eQ1wDREM816OPYTe6FMZ3LS6aAWBcwKO6+gF 4gZsw8WbQce1mnYJxQY94Y9qqxJSHwTIkVpmCCudnSq3SlDQax3HwV6QUOv6WwMU7fmXFlyOivA Liz4JPAK4szUIwLeaCiNTYI5wF7M4pZeJ6G64qDEihS/vst2Wjq0rMt8lJKvs0nLS6IZ9sogVje fNatplEdIW91cUUDLeiJpZ+K7b515awonAWX8c7IqGQonbCInpJNUyHddsBOkFmTc4xHYMElDEl 6I7NBUcl/2r6HlSBDcRyjLXAZy8cniyVexI7uBz7MUh3bEi0GKetAQoaBglpmPbo0rt5QBeux6b cCdBhObNqJEZuaWVjaIh+845H9VgcYiKHOQsPYAmpuTATIiiKpeDpkArnFto8eroHZd+ElaF6aF aBh9DW+GFtp+LWCF9V4bt72cIt80C5PDb9rewh7Sm5AcOcbQk9scp/xKeHBVhS4G5RjCRCho4Be LuRHf2b9lAiHpeLbWKVck5szkVmAccHEE0MPvHEAzsej1H/SeP9lplCA/9nfVvWa87bQKBSySmR OBl9IugoQcFLnyA== 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 ed9c7452ea846..f9ec6e9b02c70 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -300,10 +300,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 Tue Dec 16 07:30:53 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 AAA3127FB34; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=V/HB4SCTP9YxL+R9UAdduycdpx3sPKqcrToFZ9Qsz4C2IprkgC75JlTCYwWCwoi2d25vHtvXygcEKzhsLPpqDPXKIbRaQPgX4lqvuw330pCFmnAuyyOOCjZG7tunPsXBijlRAUCuYNH/fcuVs19U81iVKZL2nfPbl8XMKxOvqFU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=y6g28s3phfzONL8xypvhILPRsQq+kOTNUScBGxyoliA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=X8M9QI+iso7d0Z4zioYa7iP6ZZ8W+1st8Do6wMWmgiD6dD3Tz0830yWUKQEaejFesjg9N72gXH/+3SPdT9qzkLzUfCcZZWMqRR0XVRmW6GPh/jaY9uB2YeEY0vmAl8evPR3UNse05Zjixa1l/UwmGi2wXbtn7+8QyIH7FbZ1neM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=X2jzb3+T; 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="X2jzb3+T" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3A4FFC4CEF5; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=y6g28s3phfzONL8xypvhILPRsQq+kOTNUScBGxyoliA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=X2jzb3+TYwf5fjkKcWQT7COWYLvPXd5QYahx++AoIQSiQuao4sI0FqJtpB3Roi337 XAJbdm+CNtWy/LdzQ+dsqxwlDeskdtfbtpOA9l1RWAwCbtNkgzxHOXBsKwgfsfH9/z 3WjNg+UT+ymyKMHHTuq2MT+rVcYuLCtVx2lBOgf+h0+asfrZFHRjVSKinkCL97uKd1 tSqYBXP9la7Q0yrc+WqHTC0ZtUdKV4xEOZtA9cXSO9zm9Nqv10O8pwjkJX5aPX8REl klOnGfZQ7xEBf77i1UktEEI178Y2a4gtXgt5Qw68Dnby9UrICh1AR6S7skj945xjxR cPh5JrGoKFRfg== 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 31947D5B16D; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:22 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-6-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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=2797; i=david@ixit.cz; h=from:subject:message-id; bh=YbTI5XGo+qxbSQavLlgp6RJoXiVCTloBAe66CkKZYwQ=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpPs7qTC1H/OPi4BByKmzb/YGo7R7rApR6xKnC7 YJp9FGXivWJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6gAKCRBgAj/E00kg coeAEAC03r8OEEOW045uQdSp2uA8hHGcTxau6I+WgPfpq0y2kuKvJMUCk12J+qJT7ovONOzqlJ/ EFQq0zNVoWKiCGWmtJZRJM348dIB9PDfiXTAaMUwLc5c5goVlSRuyWrOSGfb3dxwrLtJkOmbqYk 99Y6qSxFFuV1HAOWw3sjehmivHBlkI9NcZUHbWl0/jwn3YvpukS44NGcR/AAg63mKR+cvfl1IwG Jxhh/3oNmLKKCSUB4FzOmf9Cm62xjC1KYpNkHVGwltj5qX8WW7HvqklGZHn3i8qMhXYy/Sbv7aD JDPeX8gGgSwaGaKGe9UchTei6qTynP0fQFwJA7a/NECtY854f2Ir571Bf/VI984sKh3wgcwD21B uVl25OfigYnFRj0/7d1ug5qFsdre1ACi6PLDmgGDaCdjJYNsSVpawfy/M80flg4BhITJTlpibeP z8Bxts0ICqGCp4dkSCFu5OFK6eiBUhRNiTbAc5xXuxkFFnkWf1eaLwlBNpvTStt/OYeGl3nQE2H dUdVSmg+shOE4laYnnx0Dqrtg/GwgMNr3NBsOzVwT9qpgszcpHD0jjGSV0yv8R4oA7cP88EB1wg O8TZxrRl3kX9nGsvPnnxw9xoDxWeyBuKGKu1Z6eOsBaGqn4gi5hz5UIgHlqLA4c0d6lwZWY0+uz OT40iB/VxqOR2OQ== 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. Cosmetic: adjust comment for regulator from 1.88V to 1.8 V. 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 f9ec6e9b02c70..a5708c7d04192 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.8 V */ + .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 @@ -52,7 +57,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 ? : ctx.accum_err; } @@ -134,7 +139,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 @@ -150,7 +155,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 @@ -230,13 +235,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 Tue Dec 16 07:30:53 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 A890327FB26; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=SpGgOvLTfw2Of3jm277msftNwv7AjQCi4bakwdytSDqtQlWFPlSUzN1irjEOMyYxs4YnOOXG8FzWXfTDkDtB/AqK+UZV5f6352GOhb2a3605p4hjTSFyoUWCGDoDJiyhBWZ5ASBPGPHJminvJOKlxN3Ru/AVjuXVj43Wf+NmQEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=2RANSEFOJjyzRJJyR9FuG9eSVR0Xf6BT9jHslxv2GEI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Yz6JzD4LmLmqPKivRoGB+SUTC6F2KSTYD4FqtQPtc5nvd7eqIaB8XUJv8ZT5TJ2R0pIsUVpIHU6qDjzwK+1TYaLBvWUW325YfOT1klHp16U0Nd/qX6mmfDCYzVA1YxRlIvX80ndBPSJ9oKDKbfI9mXdDdCtGv1YFXApuBQaJ7sc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sd71ntWz; 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="sd71ntWz" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4AFE1C2BCC6; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=2RANSEFOJjyzRJJyR9FuG9eSVR0Xf6BT9jHslxv2GEI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sd71ntWzGzd88dDBqj7CKcPXwfTeVMsmLBaaQr2kGtR8XPAPC8basCKMEW/XyYXON IQmev1GIU8jg5jppsoIUVdmNZlDCL8hliQR4FixCLIG1zMFGVdsI15jqtVdBCfr6VT bnwFYSn6CoKr5CAfhNZKFokpi8SYVP8bp/cDhUn8Vv5qPxhEHnPAHHYO/jUndbC7c/ igYr/VyGE388QLrOd/dhNmr1guriUA6XU8UDS9IKI2A8cOmbUUAXyqZVF67GE4nDXx 9eCxDMp4UpdxBdqGGNOpxgxypnPY4DMKWPWogg1FbTwXRjhm5sAn3y9rFc2dGjFTZG ezzOVkf6yh7GQ== 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 41A20D5B170; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:23 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-7-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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=xiRuRI627EVxbYMotExrfzaJ9rtq89cPkPZhyucnC8k=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpPs7qW94IO0AcSLnbrZATEICV7JcrROYo1EJ9L 8yk3YNgh4yJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6gAKCRBgAj/E00kg cuBaD/45BzmNR273ZnD0o/Jyo7UIWbcUXLdUkKD6Pbo2szq3SwOROX0RvCi8nOYebjycsHGcvVE WLv5yXfcynjxlxJB20c+cLDqGDzu08YdRKXAKNMgJTOt+CcV42KyENUPCbzXGpJ8PJHzWXcrSlR Vuc3CEPhW896+noSoNUlkWpkuXg9jdncI4amWLqipSw9qjoFeXT10LMaFW9cwjaiQc92aOEh53m qL3zEYqK1LdbD/soEtMV5TX1BvoJVc23COu9NpDK+QmaxVnJB9PMByyWS7hTq42N4xoNNeXCdzj EOFdFX9F1cRA67bDuhqYxFh7vJrtSLsrJ2DHyI08EMjAHzt3710Z8LF9ouHEuesOEk3YT5lcCxK hylu3HgYef4/DsoQsiLgGQ3T0OMIeNUmaiYXZFq8MiMC0+0RG+kLAljf22O5hBJGnIO6hySNqH7 Uck1du7fkR8y20qdEM5A+oQ5D4CPi7m5cgdjaJpCAOlmIuPw4Phv5MeJwboBPJ2NwF1YA33o6Cf U+spQdNZtZO0IQ6DXirFr8IqUV8nfOMFwtyAo9ye+2wHzXcOzPdYC23q8UxkFhg76nY6q79rknY 93eCeeyAA1/udewU5yqYV6Du9qw9cfc0tn7XWU+UGLP2EP9QdqoY0VXmq5XAX3iI+nQbmAD/vAr k1GpMcN6DWofAMA== 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 a5708c7d04192..293826c5006b9 100644 --- a/drivers/gpu/drm/panel/panel-lg-sw43408.c +++ b/drivers/gpu/drm/panel/panel-lg-sw43408.c @@ -244,8 +244,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 Tue Dec 16 07:30:53 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 9888F27E1DC; Sun, 14 Dec 2025 14:51:25 +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=1765723885; cv=none; b=AYOiZoJ8ThiKlm8QHTeDRW29xi0DStDir+mLCdpBcZ/+EkMnGu73s/CwyT0cPKvzmMf2Bb4Yhb0Gl/sxP9OLvfrayLdxnZ7q/ib+Yb4LPjwWut2TjBMZzUl9TQAKWpF6a4vVowUWUMPclVNH400f0q1bpqVm13t07aO7zcm1Ehg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765723885; c=relaxed/simple; bh=Lboai8EeopeEBFSuATB/HNZX9cbcUnOk2Po9DEsGe4U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wc2cS0niMARd4dlKei5NnC5tNjzYeUoe1KUzhqa+ki7+DU6B59gyDVNT1hm7aS94yrmaXl7J2+Bc72WKAFlQkA0WQQbV4mg9TZhO/e+hAVxxMTo62fMZKn+ty3y0ME5iN7kP+hZhZKXvfgMT8ZeuFFu20waUAAZml+0n/SrP9AY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gNry0N0P; 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="gNry0N0P" Received: by smtp.kernel.org (Postfix) with ESMTPS id 62434C4AF55; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765723885; bh=Lboai8EeopeEBFSuATB/HNZX9cbcUnOk2Po9DEsGe4U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gNry0N0PZWhma0E3uCgzeWZdQoW8sHcgfABn2KBWlGdz0mb2Z16gtRn+aUoLhgWVD sXfHbS6S1k1njEu7yVlevdmhPCenSZDb73M17MadpyaOB78+uMEoznanCoy3+zvNF0 UGDmDomQAC6/Adq7chatTfQiqCHyl2vL7Uk/K7p+WXP0Q4VGdxmJIJbtezj1aPZabw Cjiki2OPAqzZGYFK0MrCsGA18QcQqZBqfpRj7p4wbX+7/wMAXg1XWeFXOuiqQuTG2T 44fXm6nK/y/GVZGw00Ajw8OFC+JFzphi0lCPQZ2MzZ9jTyPFj+EmhzvN+fW2nbnF5Z 8OSNjbxNtZXLw== 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 55323D5B171; Sun, 14 Dec 2025 14:51:25 +0000 (UTC) From: David Heidelberg via B4 Relay Date: Sun, 14 Dec 2025 15:51:24 +0100 Subject: [PATCH v7 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: <20251214-pixel-3-v7-8-b1c0cf6f224d@ixit.cz> References: <20251214-pixel-3-v7-0-b1c0cf6f224d@ixit.cz> In-Reply-To: <20251214-pixel-3-v7-0-b1c0cf6f224d@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=18088; i=david@ixit.cz; h=from:subject:message-id; bh=39zvd9k7CrDiRLbinVszmhIVwGcsW4DHVMWoYFfctZE=; b=owEBbQKS/ZANAwAIAWACP8TTSSByAcsmYgBpPs7qDLcGkgQREF/M9CWb5zMfn871fbtiCu9PG NmiUxpBqhiJAjMEAAEIAB0WIQTXegnP7twrvVOnBHRgAj/E00kgcgUCaT7O6gAKCRBgAj/E00kg cp+jD/9uYqHQ0yP8feXfTq0Lh/fEmLh+JLl7fhNG0UY7AKmfKoKA8zBtjp/ZONH7Kk6FWywH12c 6jNfbHVvEBZvY0xqEacAovAlk3QQJfCgPPMb7UVUjynz8UqnvmFo+y8JBbYs4y1VNABA2hWum8c FBRve1vSdp3W+XntimOISd1xGPDJa5/lkT14PEZTFFAw5EAVlngID4DiXjpLBVFdJ8ZbzdyAVfP ZELtxZ+pWsNyKKnLK3rtL9SWH9Epeg2d0w9m82IEDjXJC3Hn3tCHZ1qB2oEmDpPyEyF6fFDW6GP bbuCLP1ztCxK+qL8qvWDd+BDxSN6E/7Bt61iHiyeHk4w6GfZeD+KnHi6TytnRWSPhtLvcUhR628 xJLh+Zs5AdiR3q+MEymVFULWHz+tK1iPDhiGZOcehBdDAE6wwQBR3k1dvkzTBYI7PHBePcVfPog LnkZUas3RuZ09KJE3+sKzUqKDm5TiBTjRe1QfqejXUQI1cJW2xPUd2WY15Fa1Hhen3tsuqoA7oY +NyizR1MVRZX7nrVGIfEYLqQUnSUm7ezvQcivtjgbJNjtCPCuvllsw1kSGOyla89G1faMVc6fU6 11nYPKJjU5eg4V36kHjuwlMxJShtzr9/F5b1AN9abJuyRYSQUsgI3Utp5sOHhCmoPih4gtRfpoZ FbLhmuWP3D3TVEA== 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) - Framebuffer (both u-boot and Linux) - Display (Pixel 3 only, and the driver needs work) - 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 | 89 ++++ arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi | 536 +++++++++++++++++= ++++ .../boot/dts/qcom/sdm845-google-crosshatch.dts | 36 ++ 4 files changed, 663 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..fa89be500fb85 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-google-blueline.dts @@ -0,0 +1,89 @@ +// 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; + }; + }; +}; + +&wifi { + qcom,calibration-variant =3D "Google_blueline"; +}; 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..fd9788d5c3f54 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-google-common.dtsi @@ -0,0 +1,536 @@ +// 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>; + }; + }; +}; + +&cci { + status =3D "okay"; +}; + +&cci_i2c1 { + /* actuator @0c */ + + /* front camera, imx355 @1a */ + + /* eeprom @50, at24 driver says 8K */ +}; + +&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..2a81ca1d00b1b --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sdm845-google-crosshatch.dts @@ -0,0 +1,36 @@ +// 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>; +}; + +&dispcc { + /* Disable for now so simple-framebuffer continues working */ + status =3D "disabled"; +}; + +&framebuffer0 { + width =3D <1440>; + height =3D <2960>; + stride =3D <(1440 * 4)>; +}; + +&mdss { + /* Disable for now so simple-framebuffer continues working */ + status =3D "disabled"; +}; + +&wifi { + qcom,calibration-variant =3D "Google_crosshatch"; +}; --=20 2.51.0