arm64: dts: qcom: sdm630-nile: add pinctrl for camera key
authorSebastian Raase <linux@sraa.de>
Fri, 15 Mar 2024 08:59:25 +0000 (09:59 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 3 Apr 2024 18:49:49 +0000 (13:49 -0500)
Add pinctrl configuration for gpio-keys. Without this,
camera button half-presses are not detected.

Tested on discovery and pioneer.

Fixes: e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")
Signed-off-by: Sebastian Raase <linux@sraa.de>
Link: https://lore.kernel.org/r/20240315085934.1511722-1-linux@sraa.de
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi

index 819a5f8825e783daef1a64d4e460cb3bd7e5aa1a..a4b722e0fc1e1216dcb55908040d6238406e80b3 100644 (file)
@@ -90,6 +90,8 @@
 
        gpio-keys {
                compatible = "gpio-keys";
+               pinctrl-0 = <&gpio_keys_default>;
+               pinctrl-names = "default";
 
                key-camera-focus {
                        label = "Camera Focus";
                bias-disable;
        };
 
+       gpio_keys_default: gpio-keys-default-state {
+               pins = "gpio64", "gpio113";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
+
        imx300_vana_default: imx300-vana-default-state {
                pins = "gpio50";
                function = "gpio";