summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-11-20 14:24:52 +0100
committerMaxime Ripard <maxime.ripard@free-electrons.com>2015-11-24 08:38:00 +0100
commitc1751e32727c5356c4e33c8da33edb782dde6210 (patch)
tree2d851dbc815e7bc7d07ecf0e412c9bd62e998144 /arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts
parent6ffd6fa0134a7dd6b65633bb0b8c587517ac94e9 (diff)
ARM: dts: sun4i: Add touchscreen node to pov protab2-ips9 tablet
Add a node describing the touchscreen found on the pov protab2-ips9 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/sun4i-a10-pov-protab2-ips9.dts')
-rw-r--r--arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts b/arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts
index d1ea36cd216b..1f92ec7c82e8 100644
--- a/arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts
+++ b/arch/arm/boot/dts/sun4i-a10-pov-protab2-ips9.dts
@@ -104,6 +104,22 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins_a>;
status = "okay";
+
+ pixcir_ts@5c {
+ pinctrl-names = "default";
+ pinctrl-0 = <&touchscreen_pins>;
+ compatible = "pixcir,pixcir_tangoc";
+ reg = <0x5c>;
+ interrupt-parent = <&pio>;
+ interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */
+ attb-gpio = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* PH21 */
+ enable-gpios = <&pio 0 5 GPIO_ACTIVE_LOW>;
+ wake-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>;
+ touchscreen-size-x = <1024>;
+ touchscreen-size-y = <768>;
+ touchscreen-inverted-x;
+ touchscreen-inverted-y;
+ };
};
&lradc {
@@ -147,6 +163,13 @@
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
+ touchscreen_pins: touchscreen_pins@0 {
+ allwinner,pins = "PA5", "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";