Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a53aff2 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard
Browse files

ARM: dts: sun5i: Enable touchscreen on Utoo P66



Add a node for the chipone-icn8318 touchscreen found on the Utoo P66 tablet.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent fe0807c5
Loading
Loading
Loading
Loading
+22 −0
Original line number Original line Diff line number Diff line
@@ -50,6 +50,7 @@
#include "sunxi-common-regulators.dtsi"
#include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>


/ {
/ {
@@ -93,6 +94,20 @@
	pinctrl-0 = <&i2c1_pins_a>;
	pinctrl-0 = <&i2c1_pins_a>;
	status = "okay";
	status = "okay";


	icn8318: touchscreen@40 {
		compatible = "chipone,icn8318";
		reg = <0x40>;
		interrupt-parent = <&pio>;
		interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */
		pinctrl-names = "default";
		pinctrl-0 = <&ts_wake_pin_p66>;
		wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */
		touchscreen-size-x = <800>;
		touchscreen-size-y = <480>;
		touchscreen-inverted-x;
		touchscreen-swapped-x-y;
	};

	pcf8563: rtc@51 {
	pcf8563: rtc@51 {
		compatible = "nxp,pcf8563";
		compatible = "nxp,pcf8563";
		reg = <0x51>;
		reg = <0x51>;
@@ -158,6 +173,13 @@
		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
		allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
	};
	};


	ts_wake_pin_p66: ts_wake_pin@0 {
		allwinner,pins = "PB3";
		allwinner,function = "gpio_out";
		allwinner,drive = <SUN4I_PINCTRL_10_MA>;
		allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
	};

	usb0_vbus_pin_a: usb0_vbus_pin@0 {
	usb0_vbus_pin_a: usb0_vbus_pin@0 {
		allwinner,pins = "PB4";
		allwinner,pins = "PB4";
		allwinner,function = "gpio_out";
		allwinner,function = "gpio_out";