From patchwork Mon Apr 8 05:54:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 200 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A1C3F3F087 for ; Mon, 8 Apr 2019 07:54:38 +0200 (CEST) Received: by mail-pg1-f198.google.com with SMTP id h15sf9351216pgi.19 for ; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1554702875; cv=pass; d=google.com; s=arc-20160816; b=UYrG6lh2BubTrItxgBRHZlF9BxRrOLQg7XsKZ8oCBYJnCrtaXgJcjqCcjlTH+Z/ws1 PaxNa1JUC6DzNc1ivtq2kviiwZYPzQ/ckqWxjFIkOrKon3hParcLW1O0iKvlUU9X6axT LTVRrrgNjosZg0uvlaSjiovhd5wacGs150M50sVDtrHMx4PWEhEgknLWzqXJwuxg0ZQT 5pYagcWvf7pSJJpVmNhTX6Gz6s03GNlNTtSa76o35JsqSvofBxLWkvWgtbzRDgxv30H7 wHcSxJEopL78Pp4Es7pDTUUDdhw5+KLK+TvF9QJRUnTGHifk2YKXf7boMVB01kcobUvt QgUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=7W0EdKINeztEriFYtmQz7hCv+klzIDHkPByku9upw/U=; b=TDqcYyV7yioWoatMwDti/W9VJ386hffDOYAxHq7vU9D7ec0JMsIljk7cghJs+xt11w s4pCjO70eo1nyNc7qk8AOA0xtMLw9Grmk1usD8GCQCx09px8Yn/K/cbD6BbVyUsPfspt uxi7ycIEg9k3UZaYVuLkPdMv8lzyZAdrM59caebGozdFZRU92H9usC5QpNIXk95rQOEu MDEJmHJ4HJOHZtYtUbF0j8NmYV/5cXM3QlsFB6vOPMeE0ElVZXHzmha14xd2tncpjMYU 67g0hJxa5Aor4O/JbN62DW3FGZ0VlWXP+ksiaBvtkLvXxcjf2r0e72ZUr6pOILmdtWqc DvNA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Kd8dsrB8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=7W0EdKINeztEriFYtmQz7hCv+klzIDHkPByku9upw/U=; b=VOoNbNJy7NzmNjfu0gq0NtvpqVWQ//QVJYYhqLjQj0TRxCcGOSBRuYLUlp71sT9mRa 5sRMmOHwUdy/Ou781UfFqlW6IQyTisZAhlVOTjw7eSarExIw5exMF5RozA97xt/if3mb jsIawJVSqsL7i8/Eufgcc0by9PZ7qRm/MBp0s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=7W0EdKINeztEriFYtmQz7hCv+klzIDHkPByku9upw/U=; b=WmlOw+qN2gcbsNA8AXP4UHv/6eWcOJygUZVQnI2xI1iJveRpdA7OIZQMRScpKGvWv1 B8bGVyJc8tddPx2wNXqyUcsizKukh5+wl+Uf3JobPmgHLN1kp41LaG3naYEi2bM1aLHG /A/ainePfGHaXfdx/mNZfzc5Kn2VcAKkZ4SXt+hHgbyMkMFVCc6PGf5mwCUQ5TRz6JHX PzA54KPorIYYB1545dO1t3++mjUyCOy+m8egE6sA8deNWcOaqZJyDZ3yZotzYcaptIWe FQfxodZY9mSQeuidonadQh3t7n6R5q0a0ahbiFVi//C338UdWgaz6XW6W8Ri6dPWsXK7 zgiA== X-Gm-Message-State: APjAAAV+zBEcj72yMaTL2yz9zY9Oe9WgbHxyJqoo/YwNQ/8n8Yi99P3f TH9UkXKrKFncyjavINEI9meU4l1H X-Google-Smtp-Source: APXvYqzQtKqD0Km01TrAc8xpwfXIp/GSukN9DQTdYC95QhHOPlLABjLXfTS+PoawH3usoya8jj4Leg== X-Received: by 2002:a17:902:e706:: with SMTP id co6mr1014716plb.63.1554702875123; Sun, 07 Apr 2019 22:54:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:45d9:: with SMTP id n86ls2017536pfi.8.gmail; Sun, 07 Apr 2019 22:54:34 -0700 (PDT) X-Received: by 2002:a63:115c:: with SMTP id 28mr26645945pgr.270.1554702874758; Sun, 07 Apr 2019 22:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554702874; cv=none; d=google.com; s=arc-20160816; b=Gev5ClbMo4h3btvsKgCVE4/EtKDZK01mDaF6jthbuKvK68kElV9pH2mMI68I5m/k50 eRttvUgq5Q2a+DXqcNAEVGY3mKDj6X4baCX1FxrfP/Mk5CWeKPwk1Pz7trW6CiMqg9wf 7dDK8mMiWUWocuhH2q5TANBp0ZkRwUq0Np25hbSJzApPjO8ELZt8jje92ljZnzgJ/0rS 89Xw3nijTRmTsdO2nfdcb4WrBkIOV87t3Zgc3D9LAVHWayWSEYXEn82pgNi8OdU1dR4m mRBlBQadM3RBLaZ7C8SwMdaTqeCHZJ6P+D5ZYQNYz+qz0xCRl0EDQVIJl9LI9i2RK4lx sZjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=6l0dSdFF4WCYp2QwS6OTopGcAlUv8JXieQgw4XEpynM=; b=mZUx1Eeg1EYqyUVNYuhhKWgPyzydhsiaKby8zWs0MGMANIPhNiDEP10jdAqoq3iMy7 DFc/f959DosdPw+FkkAM9Ip+8umPuukHm/2PoTEL3xP4uoyi0cD4f5qfdPnwjAgEOguV XBf3sfdnUR5FI6RXE1CMcsNRwCGFoolygpigunj7fjlDnrfufBepLAHIiUUw/Qj6C8pO X8GfdAdvjVjQLxqY6GHnQgdtqs6rW7cQNJE/wMjWTJQYHe5OadA8WwYLIQPpspEHOaC2 BgmcF6Uq54JoLHBrO8GAl/zZFWO2QobcDp5mbQUEhdQVG6hrhXjcKE8UkgNKeGzC9ZrV 0GZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Kd8dsrB8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id g8sor29619363pfd.63.2019.04.07.22.54.34 for (Google Transport Security); Sun, 07 Apr 2019 22:54:34 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:6c43:: with SMTP id h64mr28593142pfc.123.1554702874291; Sun, 07 Apr 2019 22:54:34 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.217]) by smtp.gmail.com with ESMTPSA id l1sm31076164pgp.9.2019.04.07.22.54.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Apr 2019 22:54:33 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 1/2] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Mon, 8 Apr 2019 11:24:14 +0530 Message-Id: <20190408055415.1374-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Kd8dsrB8; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add Goodix GT5663 capacitive touch controller node on Amarula A64-Relic board. The CTP connected to board with, - SDA, SCK from i2c1 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH8 gpio as reset pin - X axis is inverted - Y axis is inverted Signed-off-by: Jagan Teki --- .../allwinner/sun50i-a64-amarula-relic.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts index 3575db216016..a76353d59aaa 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -49,6 +49,28 @@ bias-pull-up; }; +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt5663"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VCC-CTP: GPIO0-LDO */ + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + +&i2c1_pins { + bias-pull-up; +}; + &mmc1 { pinctrl-names = "default"; pinctrl-0 = <&mmc1_pins>; @@ -212,6 +234,13 @@ regulator-name = "vdd-cpus"; }; +®_ldo_io0 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; }; From patchwork Mon Apr 8 05:54:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 201 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E672B3F087 for ; Mon, 8 Apr 2019 07:54:41 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id c64sf9688411pfb.6 for ; Sun, 07 Apr 2019 22:54:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1554702879; cv=pass; d=google.com; s=arc-20160816; b=QWtmNJNJ0NrWu15ed6OVnqvJRKtA8zejbemwzoXpt2d3LSDlynTDMq6Y5CRszzkEJC Yjp1l2p0IwK5uiAdMoKQ6ywbEZFieUYGOiFfPfuAnAvgLS2R7WnXvcCmpjH+BKBcoJ0y luflor73cO2u74zSEW9/SeizbBxW7U/hl6mbB7/oYghr+7tIl4vY+ImPOjzN0KCgKhWy WamXm9ZbdLq7FoPMXeayVfnX/Hhi+o69VJLUBJ9S7Qt+OfBOkXXFUYltweb/Sdwgn5iV m/jirdkCC4DUm2yfqTOqSJuFdWaOwvV+cc6ItQtMukohQRkuhQmIA72R7hKoxUH6nNte /Yzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MIySLo5l9yiD9H7azIQ7Be2cNCV8EXONMXdmgjXT2qM=; b=Wr/+O2IUKECvpTyiAYawiJtjk7i/s/yYHy337VDju18A+BNdHto558H/RaMBR7pU2r XVRRyBEcRT4Yoo0tZxuuuuiA/5B7ddSzTfiYZHv8KySfbSMwAPtllSIB/rvumOI1esk7 kw7nYFvSqsWWE7geTTeyHoc8sSs7bKplhOuK85n9f474GGTJ1B6Hd+70WhL6+mU7UqwW 6WXBzNIl98/kySi8cMyOPRU2bEj2SJPJyGXhAaS2LRVrVXcq3EP+i9ovbDMPYF1vBAqN rB/4ZIciQiDpSyw5Swz9kuI5eugOWpNPyR6D3uHZlckeTMRRo1uS1xFciFe4IcVKsnwu bKbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QJoM8NsN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=MIySLo5l9yiD9H7azIQ7Be2cNCV8EXONMXdmgjXT2qM=; b=eNr7GqCBh766DrJOzbetID5uO7CauhlZ8sAiH7zcaih6gtwf5frz+ZWj3II62slTHD YsLTND+lhwph+iNH59f04KBe6oFgFGkTnkLYidTdeqGf3zSsTqp3FpStEhoGuHiCv+pf 5ui0SGXaS6GylejZV+j797kbf+HgyJfMCyklU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=MIySLo5l9yiD9H7azIQ7Be2cNCV8EXONMXdmgjXT2qM=; b=OTtF77GaNdwWE3+Nxoid5UZ6oAONlHQbBvBgNcQJy7B15oCjH3Plbfd/GB69xYHauF U7ooUmbFmjyo4Ky3q2cPdMCQmOmi0VGAR0IPJLF1IQYyPeP+ssEhZ10TnvMRhrK4eAST QchMMSME5sUfRI5Bd3y6mn5H8m0kzymbEhR1hd14jS3CN7KAQNbLC+oskl7tRwW+Vnqq BRKvW1c0dmQlbntQ+hk9FESKhIJ9UkdmsLy1l2gW/HI2K8rABNaGyjy9OhMqF4F1ltMA 6TrQ2IUyWuop6JdLcqP+FpCI+0bhr6vjeb1JoxeAYBgE714W8wgzj6Ph5uJvcT6hu0LA eMqA== X-Gm-Message-State: APjAAAUX3pmp1Zn040RYcBByViO4B7ZwgynzgQw+u33Kv1DueKscfafL XPX/8lBvGCSv0HMge8AsKxEe0D2q X-Google-Smtp-Source: APXvYqwj8WgmAsOhCy9jswfxSHT7ITx/WnzCD2ifMeFJHUrESlVGsXki5bI5gr7m6g98aznhYO09mg== X-Received: by 2002:a63:2c89:: with SMTP id s131mr469742pgs.120.1554702879106; Sun, 07 Apr 2019 22:54:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:164d:: with SMTP id 74ls3392998pfw.7.gmail; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) X-Received: by 2002:a63:4a5a:: with SMTP id j26mr26499255pgl.361.1554702878783; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554702878; cv=none; d=google.com; s=arc-20160816; b=Rnr4hc7ChmpSqfKF22JDVdhxYhcJ0giQI52gAZ0U2Il30vE7QwCq6R4XlmUPuVNxuy otSXKRaC9wKLEtZV72iR9bZ2UxZD+MyO89MMJEk2nmcDikG1WMaXo9mLtbDgDSfcth/Q VQOetHwhB8KKVmk5eGNOeqORXrTC923VhnVwIZlnxgkeg7v9wknCRe0KyXxRNDIwqLlB CqGRZ657tsANRWZdvRNRkfd2+0XhIZlnBX4GRd1TyIZmxFj53SZgPb4sqPvwtw3Pdi2K J1kYe7tApv0AWjTe4HoBWxmjaQC3g7XnsqmWZDCxGImqeXnuQC9TExgnJE1Q1OfO0w5m Ybpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cxx5ypZqGFJEVdHb1LskbC0G/Dn/FbT8LG6QdiUJVeY=; b=o6g0OKpk3ARSfWsAZ1tXNt/X/BSTWRphcOzpfRcn9oMBCaOLST7iLAC8f9cvhtJRTa 0Mm1M3b9IymnmOIjdc3iONh5Upu/nZJhd/n+xF/dBgwo+XjLlr8nRsaVtgHDZ8KOC8uk kDjUYBobAIH+JRDtT/oM/CgE0Dj8JwijFDJOoY5iXN0VliQPCou8yGP90fty9V+4p3Nq HP2dIJjOD2OVei0G8e1hRmabjU+BgoHi4+GAkNvAtwcrkmef3OKBB712w3hGFQfx/fbB MQ5X8xX4fX8oJ32lmVmmwgnLvNntb/BsL3bdzIHxkrIgdLlF07/zbqSvOzx2kgAVle73 Tftw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QJoM8NsN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 15sor29837121pft.66.2019.04.07.22.54.38 for (Google Transport Security); Sun, 07 Apr 2019 22:54:38 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:ae13:: with SMTP id q19mr28095617pff.152.1554702878402; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.217]) by smtp.gmail.com with ESMTPSA id l1sm31076164pgp.9.2019.04.07.22.54.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Apr 2019 22:54:37 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland Cc: Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH 2/2] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Mon, 8 Apr 2019 11:24:15 +0530 Message-Id: <20190408055415.1374-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190408055415.1374-1-jagan@amarulasolutions.com> References: <20190408055415.1374-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QJoM8NsN; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Goodix GT911 CTP is bound with Oceanic 5205 5inMFD board. The CTP connected to board with, - SDA, SCK from i2c0 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH11 gpio as reset pin - X axis is inverted - Y axis is inverted Signed-off-by: Jagan Teki --- .../sun50i-a64-oceanic-5205-5inmfd.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts index 6a2154525d1e..5b0631929a6c 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts @@ -37,6 +37,28 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VDD_CTP: GPIO0-LDO */ + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>; + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */ + reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + +&i2c0_pins { + bias-pull-up; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22";