]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: qcom: qcm6490-fairphone-fp5: Add vibrator support
authorGriffin Kroah-Hartman <griffin.kroah@fairphone.com>
Thu, 25 Sep 2025 10:07:30 +0000 (12:07 +0200)
committerBjorn Andersson <andersson@kernel.org>
Mon, 27 Oct 2025 16:05:02 +0000 (11:05 -0500)
Add the required node for haptic playback (Awinic AW86927).

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
Link: https://lore.kernel.org/r/20250925-aw86927-v3-3-1fc6265b42de@fairphone.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts

index 519e458e1a890814e5135450c60e5c71c1b75a81..0ac3dbc2377d9b8535ce0a3fb42e8047491f1f35 100644 (file)
                };
        };
 
-       /* AW86927FCR haptics @ 5a */
+       vibrator@5a {
+               compatible = "awinic,aw86927";
+               reg = <0x5a>;
+
+               interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>;
+               reset-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>;
+
+               pinctrl-0 = <&aw86927_int_default>;
+               pinctrl-names = "default";
+       };
 };
 
 &i2c2 {
                bias-disable;
                output-high;
        };
+
+       aw86927_int_default: aw86927-int-default-state {
+               pins = "gpio101";
+               function = "gpio";
+               drive-strength = <2>;
+               bias-pull-up;
+       };
 };
 
 &uart5 {