Commit 0fba148c authored by Sebastian Raase's avatar Sebastian Raase Committed by Bjorn Andersson

arm64: dts: qcom: sdm630-nile: add pinctrl for camera key

Add pinctrl configuration for gpio-keys. Without this,
camera button half-presses are not detected.

Tested on discovery and pioneer.

Fixes: e781633b ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")
Signed-off-by: default avatarSebastian Raase <linux@sraa.de>
Link: https://lore.kernel.org/r/20240315085934.1511722-1-linux@sraa.deSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent d2209f67
...@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator { ...@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator {
gpio-keys { gpio-keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
pinctrl-0 = <&gpio_keys_default>;
pinctrl-names = "default";
key-camera-focus { key-camera-focus {
label = "Camera Focus"; label = "Camera Focus";
...@@ -645,6 +647,13 @@ ts_lcd_id_active: ts-lcd-id-active-state { ...@@ -645,6 +647,13 @@ ts_lcd_id_active: ts-lcd-id-active-state {
bias-disable; 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 { imx300_vana_default: imx300-vana-default-state {
pins = "gpio50"; pins = "gpio50";
function = "gpio"; function = "gpio";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment