39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
From f91e3765884b8f29a026c852613259d5a5c8bbcc Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megi@xff.cz>
|
|
Date: Sun, 4 Sep 2022 22:54:50 +0200
|
|
Subject: [PATCH 270/389] arm64: dts: rk3399-pinephone-pro: Add support for
|
|
vibrator
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
The board contains a vibrator, support it.
|
|
|
|
Signed-off-by: Martijn Braam <martijn@brixit.nl>
|
|
Co-developed-by: Kamil Trzciński <ayufan@ayufan.eu>
|
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
|
---
|
|
arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
index ababcd74ebd9..f6d58cbfe1c1 100644
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
|
@@ -64,6 +64,12 @@ key-power {
|
|
};
|
|
};
|
|
|
|
+ vibrator {
|
|
+ compatible = "gpio-vibrator";
|
|
+ enable-gpios = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
|
|
+ vcc-supply = <&vcc3v3_sys>;
|
|
+ };
|
|
+
|
|
vcc_sys: vcc-sys-regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc_sys";
|
|
--
|
|
2.35.3
|
|
|