Skip to contentSkip to conversation

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

PATCH Applied Sebastian Raase 2 participants 2 messages Mar 15, 2024 – Apr 4, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 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 e781633b6067 ("arm64: dts: qcom: Add support for Sony Xperia XA2/Plus/Ultra (Nile platform)")
---
 arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-nile.dtsi +9 -0
index 87d0293c728d..c38f74e7c078 100644
@@ -90,6 +90,8 @@ cam_vana_rear_vreg: cam-vana-rear-regulator {
 
 	gpio-keys {
 		compatible = "gpio-keys";
+		pinctrl-0 = <&gpio_keys_default>;
+		pinctrl-names = "default";
 
 		key-camera-focus {
 			label = "Camera Focus";
@@ -635,6 +637,13 @@ ts_lcd_id_active: ts-lcd-id-active-state {
 		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";
Signature · 1 line
2.42.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Sebastian Raase

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

Tested on discovery and pioneer.

Applied, thanks!

[1/1] arm64: dts: qcom: sdm630-nile: add pinctrl for camera key

      commit: 0fba148c3ac0fb8bc3d2a788c19b2ede4e5d3695

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>