Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp461722yba; Thu, 18 Apr 2019 04:25:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7H8bDsdoeKKeaByG4qxQXIouzmYXjVk7JhwNWT4pfq7qlKgEmrBzay2dH3SDj3V2/MBmU X-Received: by 2002:a63:4e5b:: with SMTP id o27mr88716063pgl.204.1555586710206; Thu, 18 Apr 2019 04:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555586710; cv=none; d=google.com; s=arc-20160816; b=rRJbsUsZj3yo1IxmJONRR9dk41sNdNLNTx0P5iBuuNb8ETq68/swjJtBk7Yg0BXgzG lwgOZMmNgE9/vnDakILiNtHFLdkOFtvoxZQLrCdrVwEeaWtwECO5zDGvPOTMtaYqyARP 7G3Qi7ZltZcAVwF2GnqUasGWwC4eKoGubHB6Vayw+dRu6Jh2rCuUJxOvAChqg5RAP5j9 LtnW8Z7YO4VqlQBAuUhiXkGmfxQ/YMYDvx4WayviLS7qWCF54DG1ztTOq+LzLrrdD2m8 eyhHT9Q0jFjA3YBdb15ljpkKZnSsqzzlr8Cy/psizXAM8jV3azgcoGG/0IiV5A4SMCTU lm+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ahA9be7V+PSVN0+0iP5hxHwuov9j/5N6tZ3VAB4NS5I=; b=nFs37K2Z2hA0NQZOkYwqqiOsoB8ubpXMh5ZrQx5XXg+FCu+8WGKfZHMYqG5ifc/k++ 6xS0hX/6MN3RsGHHLo3M7JVGcaOYv16s86r5dBezDGg0snrPo3nGoULNK4RNgixvVJTP RfkOFiPgzdV0odWr/uPi+6e8B+jbaYvUoFDQXqv6dIfM5MWZspTjHw2EBxnWXY8RITpr 0r0I29yX1MJgHPRfGpWFteT/MOM70ymrcpn1bDBPE/I3YQ5xw0ifx8pg6BvGMoyuYsYi f8cpS8B0NpYMDbTWtILbYDBo+gFFriqFlcgAgKxlJ8KKKqyC26qa9vdEzzbN0vHgWEsv OtKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y65si1624387pgd.519.2019.04.18.04.24.53; Thu, 18 Apr 2019 04:25:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388775AbfDRLYD (ORCPT + 99 others); Thu, 18 Apr 2019 07:24:03 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:41875 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388457AbfDRLYC (ORCPT ); Thu, 18 Apr 2019 07:24:02 -0400 X-Originating-IP: 90.88.160.238 Received: from localhost (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 37E1B6000E; Thu, 18 Apr 2019 11:23:57 +0000 (UTC) Date: Thu, 18 Apr 2019 13:23:57 +0200 From: Maxime Ripard To: Jagan Teki Cc: Chen-Yu Tsai , Rob Herring , Mark Rutland , Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com Subject: Re: [PATCH v2 1/2] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Message-ID: <20190418112357.qic227rdwordmzyh@flea> References: <20190418083543.11695-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="a2pbzqfiss63fc44" Content-Disposition: inline In-Reply-To: <20190418083543.11695-1-jagan@amarulasolutions.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --a2pbzqfiss63fc44 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 18, 2019 at 02:05:42PM +0530, Jagan Teki wrote: > 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 > --- > Changes for v2: > - drop i2c1, bias-pull-up > > .../allwinner/sun50i-a64-amarula-relic.dts | 25 +++++++++++++++++++ > 1 file changed, 25 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..3819ce396073 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,24 @@ > bias-pull-up; > }; > > +&i2c1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c1_pins>; That's the default already > + 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; > + }; > +}; > + > &mmc1 { > pinctrl-names = "default"; > pinctrl-0 = <&mmc1_pins>; > @@ -212,6 +230,13 @@ > regulator-name = "vdd-cpus"; > }; > > +®_ldo_io0 { > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; The name of that regulator is AVDD28, which indicates that it would be a 2.8V regulator? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --a2pbzqfiss63fc44 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLheTQAKCRDj7w1vZxhR xcuMAQDENJX3u2tb51Ouqd0KaweSmp82cNl08J3eeEk3EXwx1AD/ZbROxKtQ4oO7 zIxGGqxjWWXz43UJCj2XnFglwPybcAI= =KSHf -----END PGP SIGNATURE----- --a2pbzqfiss63fc44--