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"; };