summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-11-20 14:24:51 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-11-24 08:36:42 +0100
commit6ffd6fa0134a7dd6b65633bb0b8c587517ac94e9 (patch)
tree3a6491f4f6674e4b5fab58bb50ace6f527961e40 /arch/arm/boot/dts
parentARM: dts: sun7i: Enable audio codec on BananaPi (diff)
downloadlinux-6ffd6fa0134a7dd6b65633bb0b8c587517ac94e9.tar.xz
linux-6ffd6fa0134a7dd6b65633bb0b8c587517ac94e9.zip
ARM: dts: sun4i: Add touchscreen node to iNet1 tablet
Add a node describing the touchscreen controller used on the iNet1 tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r--arch/arm/boot/dts/sun4i-a10-inet1.dts20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-inet1.dts b/arch/arm/boot/dts/sun4i-a10-inet1.dts
index d46a141bb847..e09053bf5e1f 100644
--- a/arch/arm/boot/dts/sun4i-a10-inet1.dts
+++ b/arch/arm/boot/dts/sun4i-a10-inet1.dts
@@ -119,6 +119,19 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins_a>;
status = "okay";
+
+ ft5x: touchscreen@38 {
+ compatible = "edt,edt-ft5406";
+ reg = <0x38>;
+ interrupt-parent = <&pio>;
+ interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&touchscreen_wake_pin>;
+ wake-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* PB13 */
+ touchscreen-size-x = <600>;
+ touchscreen-size-y = <1024>;
+ touchscreen-swapped-x-y;
+ };
};
&lradc {
@@ -173,6 +186,13 @@
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+ touchscreen_wake_pin: touchscreen_wake_pin@0 {
+ allwinner,pins = "PB13";
+ allwinner,function = "gpio_out";
+ allwinner,drive = <SUN4I_PINCTRL_10_MA>;
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
usb0_id_detect_pin: usb0_id_detect_pin@0 {
allwinner,pins = "PH4";
allwinner,function = "gpio_in";