Add the EKTP1059 based touchpad connected via SPI.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
---
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 32 +++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts
index c90f43cc2fae..746ac4761b0d 100644
--- a/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts
+++ b/arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts
@@ -429,6 +429,23 @@ MATRIX_KEY(1, 1, KEY_VOLUMEDOWN)
linux,input-no-autorepeat;
};
+&mcspi1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mcspi1_pins>;
+
+ touchpad@0 {
+ compatible = "elan,ektp1059";
+ reg = <0>; /* cs0 */
+ pinctrl-names = "default";
+ pinctrl-0 = <&elan_pins>;
+ interrupt-parent = <&gpio2>;
+ interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
+ spi-max-frequency = <200000>;
+ spi-cpol;
+ spi-cpha;
+ };
+};
+
&mcbsp2 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
@@ -506,6 +523,12 @@ OMAP4_IOPAD(0x1d4, PIN_OUTPUT | MUX_MODE3) /* gpio191 */
>;
};
+ elan_pins: pinmux-elan-pins {
+ pinctrl-single,pins = <
+ OMAP4_IOPAD(0x78, PIN_INPUT | MUX_MODE3) /* gpio52 */
+ >;
+ };
+
gpio_keys_pins: pinmux-gpio-key-pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x56, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio35 */
@@ -579,6 +602,15 @@ OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE3) /* gpio27 */
>;
};
+ mcspi1_pins: pinmux-mcspi1-pins {
+ pinctrl-single,pins = <
+ OMAP4_IOPAD(0x132, PIN_INPUT_PULLUP | MUX_MODE0)
+ OMAP4_IOPAD(0x134, PIN_INPUT_PULLUP | MUX_MODE0)
+ OMAP4_IOPAD(0x136, PIN_OUTPUT | MUX_MODE0)
+ OMAP4_IOPAD(0x138, PIN_OUTPUT | MUX_MODE0)
+ >;
+ };
+
mcbsp2_pins: pinmux-mcbsp2-pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE0) /* abe_mcbsp2_clkx */
--
2.39.5