[PATCH v4 2/3] arm64: dts: qcom: msm8917-xiaomi-riva: Add GPIO haptic vibrator
From: Reza Kurniawan
Date: Thu Aug 20 2026 - 07:08:21 EST
The haptic vibrator in Xiaomi Redmi 5A is controlled through TLMM GPIO
97 and is directly powered vph_pwr.
Define the vibrator node using the "gpio-vibrator" driver.
Signed-off-by: Reza Kurniawan <imkyufie@xxxxxxxxx>
---
v4:
- Simplify commit title
- Add commit description
v3:
- Add vcc-supply for vibrator
arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
index abfaae502..a066d9d7a 100644
--- a/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
+++ b/arch/arm64/boot/dts/qcom/msm8917-xiaomi-riva.dts
@@ -27,6 +27,12 @@ battery: battery {
charge-term-current-microamp = <60000>;
voltage-min-design-microvolt = <3400000>;
};
+
+ vibrator {
+ compatible = "gpio-vibrator";
+ enable-gpios = <&tlmm 97 GPIO_ACTIVE_HIGH>;
+ vcc-supply = <&vph_pwr>;
+ };
};
&blsp1_uart2 {
--
2.55.0