arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity

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>
This commit is contained in:
AngeloGioacchino Del Regno
2023-04-11 18:47:18 +02:00
committed by Matthias Brugger
parent 9e49cbef6c
commit d5ed9a0445
@@ -99,6 +99,14 @@
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 {
@@ -115,6 +123,14 @@
};
};
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>,