52 lines
1.4 KiB
Diff
52 lines
1.4 KiB
Diff
|
From e5b1b95a2320f028c815fa33dd7b592ed2bc1984 Mon Sep 17 00:00:00 2001
|
||
|
From: Ondrej Jirman <megi@xff.cz>
|
||
|
Date: Sun, 11 Jun 2023 19:39:10 +0200
|
||
|
Subject: [PATCH 290/464] arm64: dts: pinephone-pro: Add light/proximity sensor
|
||
|
support
|
||
|
|
||
|
Pinephone Pro uses STK3311
|
||
|
|
||
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
||
|
---
|
||
|
.../boot/dts/rockchip/rk3399-pinephone-pro.dts | 17 +++++++++++++++++
|
||
|
1 file changed, 17 insertions(+)
|
||
|
|
||
|
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
||
|
index 716d21b7e8d3..c62b5cf25cc8 100644
|
||
|
--- a/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
||
|
+++ b/arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dts
|
||
|
@@ -705,6 +705,17 @@ touchscreen@14 {
|
||
|
use-dt-irq-flags;
|
||
|
poweroff-in-suspend;
|
||
|
};
|
||
|
+
|
||
|
+ light-sensor@48 {
|
||
|
+ compatible = "sensortek,stk3311";
|
||
|
+ reg = <0x48>;
|
||
|
+ interrupt-parent = <&gpio4>;
|
||
|
+ interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>;
|
||
|
+ pinctrl-names = "default";
|
||
|
+ pinctrl-0 = <&stk3311_int>;
|
||
|
+ vdd-supply = <&vcc_3v0>;
|
||
|
+ leda-supply = <&vcc_3v0>;
|
||
|
+ };
|
||
|
};
|
||
|
|
||
|
&cluster0_opp {
|
||
|
@@ -1169,6 +1180,12 @@ spk_en: spk-en {
|
||
|
};
|
||
|
};
|
||
|
|
||
|
+ stk3311 {
|
||
|
+ stk3311_int: stk3311-int {
|
||
|
+ rockchip,pins = <4 RK_PD3 RK_FUNC_GPIO &pcfg_input_pull_up>;
|
||
|
+ };
|
||
|
+ };
|
||
|
+
|
||
|
usb-typec {
|
||
|
vcc5v0_typec_en: vcc5v0_typec_en {
|
||
|
rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
|
||
|
--
|
||
|
2.34.1
|
||
|
|