mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
48 lines
1.3 KiB
Diff
48 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Teguh Sobirin <teguh@sobir.in>
|
|
Date: Mon, 25 Nov 2024 02:17:47 +0700
|
|
Subject: arm64: dts: qcom: pm8150b: introduce spmi haptics
|
|
|
|
Add bindings for Qualcomm SPMI haptics on platforms using pm8150b.
|
|
Signed-off-by: Teguh Sobirin <teguh@sobir.in>
|
|
---
|
|
arch/arm64/boot/dts/qcom/pm8150b.dtsi | 16 ++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi
|
|
index 111111111111..222222222222 100644
|
|
--- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi
|
|
+++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi
|
|
@@ -5,6 +5,7 @@
|
|
*/
|
|
|
|
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
|
+#include <dt-bindings/input/qcom,spmi-haptics.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
#include <dt-bindings/spmi/spmi.h>
|
|
|
|
@@ -216,5 +217,20 @@ pm8150b_lpg: pwm {
|
|
|
|
status = "disabled";
|
|
};
|
|
+
|
|
+ pm8150b_haptics: haptics@c000 {
|
|
+ compatible = "qcom,pmi8998-haptics", "qcom,spmi-haptics";
|
|
+ reg = <0xc000>;
|
|
+
|
|
+ interrupts = <0x3 0xc0 0x0 IRQ_TYPE_EDGE_BOTH>,
|
|
+ <0x3 0xc0 0x1 IRQ_TYPE_EDGE_BOTH>;
|
|
+ interrupt-names = "short", "play";
|
|
+
|
|
+ qcom,wave-shape = <HAP_WAVE_SINE>;
|
|
+ qcom,play-mode = <HAP_PLAY_BUFFER>;
|
|
+ qcom,brake-pattern = <0x3 0x3 0x2 0x1>;
|
|
+
|
|
+ status = "disabled";
|
|
+ };
|
|
};
|
|
};
|
|
--
|
|
Armbian
|
|
|