Commit 6ffd6fa0 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard

ARM: dts: sun4i: Add touchscreen node to iNet1 tablet

Add a node describing the touchscreen controller used on the iNet1 tablet.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 38e633f3
...@@ -119,6 +119,19 @@ &i2c2 { ...@@ -119,6 +119,19 @@ &i2c2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins_a>; pinctrl-0 = <&i2c2_pins_a>;
status = "okay"; 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 { &lradc {
...@@ -173,6 +186,13 @@ bl_en_pin_inet: bl_en_pin@0 { ...@@ -173,6 +186,13 @@ bl_en_pin_inet: bl_en_pin@0 {
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; 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 { usb0_id_detect_pin: usb0_id_detect_pin@0 {
allwinner,pins = "PH4"; allwinner,pins = "PH4";
allwinner,function = "gpio_in"; allwinner,function = "gpio_in";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment