arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 27 Mar 2023 08:36:46 +0000 (10:36 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Tue, 11 Apr 2023 16:47:18 +0000 (18:47 +0200)
Add the STK3310 Proximity sensor and its pins.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230327083647.22017-17-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

index edab90f..a40b9f5 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&i2c3_pins>;
        status = "okay";
+
+       proximity@48 {
+               compatible = "sensortek,stk3310";
+               reg = <0x48>;
+               interrupts-extended = <&pio 8 IRQ_TYPE_EDGE_FALLING>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&proximity_pins>;
+       };
 };
 
 &pio {
                };
        };
 
+       proximity_pins: proximity-pins {
+               pins-irq {
+                       pinmux = <PINMUX_GPIO8__FUNC_GPIO8>;
+                       bias-pull-up;
+                       input-enable;
+               };
+       };
+
        i2c0_pins: i2c0-pins {
                pins-bus {
                        pinmux = <PINMUX_GPIO45__FUNC_SDA0>,