Skip to content

Commit d5ed9a0

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
arm64: dts: mediatek: mt6795-xperia-m5: Add Sensortek STK3310 Proximity
Add the STK3310 Proximity sensor and its pins. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent 9e49cbe commit d5ed9a0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@
9999
pinctrl-names = "default";
100100
pinctrl-0 = <&i2c3_pins>;
101101
status = "okay";
102+
103+
proximity@48 {
104+
compatible = "sensortek,stk3310";
105+
reg = <0x48>;
106+
interrupts-extended = <&pio 8 IRQ_TYPE_EDGE_FALLING>;
107+
pinctrl-names = "default";
108+
pinctrl-0 = <&proximity_pins>;
109+
};
102110
};
103111

104112
&pio {
@@ -115,6 +123,14 @@
115123
};
116124
};
117125

126+
proximity_pins: proximity-pins {
127+
pins-irq {
128+
pinmux = <PINMUX_GPIO8__FUNC_GPIO8>;
129+
bias-pull-up;
130+
input-enable;
131+
};
132+
};
133+
118134
i2c0_pins: i2c0-pins {
119135
pins-bus {
120136
pinmux = <PINMUX_GPIO45__FUNC_SDA0>,

0 commit comments

Comments
 (0)