]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: sdm845-oneplus: Implement panel sleep pinctrl
authorDavid Heidelberg <david@ixit.cz>
Mon, 3 Nov 2025 11:45:52 +0000 (12:45 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 4 Nov 2025 01:03:56 +0000 (19:03 -0600)
We can DSI pin from 8mA to 2mA while suspend, do it.

In theory, should give us extra 2 hours of idle battery life.

cosmetic: sort pinctrl properties.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://lore.kernel.org/r/20251103-s6e3fc2x01-v6-3-d4eb4abaefa4@ixit.cz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi

index d59a5e8cdeb2c9eafd442096113b998d7c6bc3a5..f00dbc0fff3d49e797b447d615c3366356557b85 100644 (file)
 
                reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
 
-               pinctrl-names = "default";
                pinctrl-0 = <&panel_default>;
+               pinctrl-1 = <&panel_sleep>;
+               pinctrl-names = "default", "sleep";
 
                port {
                        panel_in: endpoint {
                };
        };
 
+       panel_sleep: panel-sleep-state {
+               esd-pins {
+                       pins = "gpio30";
+                       function = "gpio";
+                       drive-strength = <2>;
+                       bias-pull-down;
+               };
+
+               reset-pins {
+                       pins = "gpio6";
+                       function = "gpio";
+                       drive-strength = <2>;
+                       bias-pull-down;
+               };
+
+               te-pins {
+                       pins = "gpio10";
+                       function = "mdp_vsync";
+                       drive-strength = <2>;
+                       bias-disable;
+               };
+       };
+
        ts_default_pins: ts-int-state {
                pins = "gpio99", "gpio125";
                function = "gpio";