Skip to content

Commit 9e49cbe

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
arm64: dts: mediatek: mt6795-xperia-m5: Add Synaptics RMI4 Touchscreen
Add the RMI4 Touchscreen on I2C2 and its pin definitions. 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 9415e24 commit 9e49cbe

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,28 @@
7171
pinctrl-names = "default";
7272
pinctrl-0 = <&i2c2_pins>;
7373
status = "okay";
74+
75+
touchscreen@20 {
76+
compatible = "syna,rmi4-i2c";
77+
reg = <0x20>;
78+
#address-cells = <1>;
79+
#size-cells = <0>;
80+
interrupts-extended = <&pio 6 IRQ_TYPE_EDGE_FALLING>;
81+
pinctrl-names = "default";
82+
pinctrl-0 = <&ts_pins>;
83+
syna,startup-delay-ms = <160>;
84+
syna,reset-delay-ms = <90>;
85+
86+
rmi4-f01@1 {
87+
reg = <0x1>;
88+
syna,nosleep-mode = <1>;
89+
};
90+
91+
rmi4-f12@12 {
92+
reg = <0x12>;
93+
syna,sensor-type = <1>;
94+
};
95+
};
7496
};
7597

7698
&i2c3 {
@@ -80,6 +102,19 @@
80102
};
81103

82104
&pio {
105+
ts_pins: touchscreen-pins {
106+
pins-irq {
107+
pinmux = <PINMUX_GPIO6__FUNC_GPIO6>;
108+
bias-pull-up;
109+
input-enable;
110+
};
111+
112+
pins-rst {
113+
pinmux = <PINMUX_GPIO102__FUNC_GPIO102>;
114+
output-high;
115+
};
116+
};
117+
83118
i2c0_pins: i2c0-pins {
84119
pins-bus {
85120
pinmux = <PINMUX_GPIO45__FUNC_SDA0>,

0 commit comments

Comments
 (0)