Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp611476yba; Thu, 18 Apr 2019 06:50:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2x1i8/beqQnPrUomLp4obVpQWfrJbWbBLSDW5SdpK5ahrgC1eQdtNfyxhcoxhHnZY1MPQ X-Received: by 2002:a65:5183:: with SMTP id h3mr88687564pgq.53.1555595408848; Thu, 18 Apr 2019 06:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555595408; cv=none; d=google.com; s=arc-20160816; b=jmIiOSiRMcupa7rFWiePFr1CncAAmfV3UwaJJCjgN1wVfqOlG0C3qAUuKBl6y4LX7h ugIIpzESvctoWLhxInGKQrRuFgqX+ctQ6GX9Ur4u1jQLCRgc15RYiPaVuWBSxg4vmiZW ZebG3kEVVUbnro74dezNbYBWjHda0ghAX3qoCk2AjKxwXhAPm0n0iWynie0bRhnUYIa+ 9uHlVz/bLymB8arxyKh++AE8gjaOXABbTWYGcqngiCBsO/C15c2QXy38O0jYeOtNAJue SLrbQiVGkbzseTMZkNayO/e0lI+uuWfOJUarQ9h0q2Cw4Y4FRcS0dETlwAWE3WAOoPtB X0zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9JIj/FFqgEfC6z9nZwVGyT2L22JvM9xjpTRFOThEtFc=; b=b1tFIvffxTMGL9Z/wUg0Clwn1yTjMwlGbt+rOf8tprhV976L5MjttN4Il/O4f/dgRF Nm4sTSXmd9bTcPdsBWto4l/nIqOhmICKJ3mPlTZZXSRJHc+Wk5INxLu3tqe1mZbZF9Yn Klcbhct8oaRJRl4s16ZllNfnj2IuafjrR4N8LRU6ufSBmByDx5F9gjRclVEGgm+T8jP5 xB0RtjZWt+MQH+pNPh57gGnrKLuuySAh4PrzWRdokGC1zLY+p4yl2JB+gDhEIQajRgn/ YBRIwctSEZMC79szJt3/b9VOZ05TRkr9/mQNKwHOXa/n23ij67BONmIHfQKBP1kVFkP/ YMAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Vrs38dCL; 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 k132si2001853pgc.131.2019.04.18.06.49.53; Thu, 18 Apr 2019 06:50:08 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Vrs38dCL; 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 S2389110AbfDRNsx (ORCPT + 99 others); Thu, 18 Apr 2019 09:48:53 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:33411 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRNsx (ORCPT ); Thu, 18 Apr 2019 09:48:53 -0400 Received: by mail-pl1-f193.google.com with SMTP id t16so1219611plo.0 for ; Thu, 18 Apr 2019 06:48:53 -0700 (PDT) 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 :content-transfer-encoding; bh=9JIj/FFqgEfC6z9nZwVGyT2L22JvM9xjpTRFOThEtFc=; b=Vrs38dCLyUXxathXpkT/flQtsQ2345qx7Nt6l7gmOet0Oinsav3KUzNfaJyYgPECzv XwcKxmNmOrFyu5v8pXVYTT3k4rYxqnmRfWDg3qLjhaW4GUed/v5j006rYK/0vEu3Sw5N ISlSCH5mLJD3dF0fCLAK1S3MDBakqk/95J3y0= 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 :content-transfer-encoding; bh=9JIj/FFqgEfC6z9nZwVGyT2L22JvM9xjpTRFOThEtFc=; b=HneYc/Th2Xdq5fan3fE5/0STb86e6qdXSJqIl2yYxDw5UtEtEhAV8hQsZZvQH+4OsW XUAydnLyU5KZ5wHMLl985fI2066DzVT0B2mg9eYKmRwPEv9a6nFkLSmAgPYsug7j383v EZwu9br+GZMfvFFmSBLHfqECn6DZOyT2oRwJWSBvu+mqT2Dd2tZ1GUMBSbarXEH020pW SGgcPAHTpDkSHUPOsHODnSdFuxgXbVNXu/Bd9yCG70rI1P2wkDS7SnsMUDuFzM0BAJyq p2uM0qtgR70kcHiIqilv1wayyqZWhBqM6FzJQIzgsh1Ob3hd5eVDaRmzHRV1oogLSLQv 7AvQ== X-Gm-Message-State: APjAAAVK+R/DJCHH8mKVMNXbfuLUiX1llr5AViVolnXH/kd0nTDmIhSN /HvBcUi0RzruVhqgqA9FH2JIHQ== X-Received: by 2002:a17:902:a704:: with SMTP id w4mr92370617plq.51.1555595332489; Thu, 18 Apr 2019 06:48:52 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id x8sm2348377pgp.48.2019.04.18.06.48.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 06:48:51 -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 v3 1/2] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Thu, 18 Apr 2019 19:18:37 +0530 Message-Id: <20190418134838.8806-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v3: - Use 2.8v for reg_ldo_io0 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..bd31a4385bc1 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>; + 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 = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; }; -- 2.18.0.321.gffc6fa0e3