From: Ondrej Jirman <meg...@megous.com>

Pinephone has STK3311-X proximity sensor. Add support for it.

Signed-off-by: Ondrej Jirman <meg...@megous.com>
Signed-off-by: Samuel Holland <sam...@sholland.org>
---
 .../arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi 
b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
index e595a8262920..9544d7658794 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi
@@ -160,6 +160,16 @@ lis3mdl: lis3mdl@1e {
                vddio-supply = <&reg_dldo1>;
        };
 
+       /* Light/proximity sensor */
+       stk3311@48 {
+               compatible = "sensortek,stk3311";
+               reg = <0x48>;
+               interrupt-parent = <&pio>;
+               interrupts = <1 0 IRQ_TYPE_EDGE_FALLING>; /* PB0 */
+               vdd-supply = <&reg_ldo_io0>;
+               leda-supply = <&reg_dldo1>;
+       };
+
        /* Accelerometer/gyroscope */
        mpu6050@68 {
                compatible = "invensense,mpu6050";
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/20201105054135.24860-5-samuel%40sholland.org.

Reply via email to