Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp317575yba; Thu, 18 Apr 2019 01:37:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWORo3A3uR3WU1AKLvPeItbGq3hFpf7Beghtb0hpL9aAOKCs7ummR+AP2h5NwngWhQlQwP X-Received: by 2002:a17:902:a50d:: with SMTP id s13mr38493416plq.58.1555576664064; Thu, 18 Apr 2019 01:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576664; cv=none; d=google.com; s=arc-20160816; b=a4TN7N3cj5pasOYxidGdeTR0ysBTNZqGzNgDPP5YVMtXO7tU9iln443TfvvCYMGOoW 3Bk3r+ux4uOn44hN7AlkaHzY0x+EvTYRojuog4ddRskMGEUja8vzLjEN8m1i1ZBDwoYQ o0o89A/rbqPrEIc+zPqKJJVDPc9bMDvPWz1il8LFQof3MBPDMrGsN7k7818qyIjYnVNT bpblqoP6M2P50eGVSjwztRTAySZNkq4awpAxBueNlpEP9DV2c6/AnKpShpSMzusA4Au0 D+o7yNg5fSbLeVA22R19tKcC1qQMGUHwjCQ41xoUGe5ceKG12mIRUEOyNBhyoHIKazEa 2BCg== 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=6qV3KxK0aW64iJSBNcMR5tp9F6Bs2X4FIoa5U3lna/o=; b=Pgg3Ul+OnWw9exRokMh37Xw0GVyLmm4Cs13lPZPN92tC9WQD3Nd5dNvLGf2oyqFsGJ csmGD9yzN7msP3XrE9pvNkA5WWX04/As3jUBIRhbQAdRDRAlC+WONolfVbM/MouwEFXC rQZ8auJ2hiPfx8Q9V0fGq7t9ImdU+bK2ZL9Q/jDappgCBlunk2WljreZcwJLK/FvfwLB PTG2+9slMoW2uxM88mOUa4hdrOETHIGb3meGJgS0H4K1dOSMgXaH158hQFbUsOPYtOnr e4HsXos/K2VgUJV0yYYgERfnYxlxWLoVnwQ4Iar7h1MnEFZs6KmWOuPJhVWi3zkqIETb vqjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LSbJ75ez; 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 62si1452407pla.124.2019.04.18.01.37.28; Thu, 18 Apr 2019 01:37:44 -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=LSbJ75ez; 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 S2388255AbfDRIgB (ORCPT + 99 others); Thu, 18 Apr 2019 04:36:01 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46056 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfDRIgB (ORCPT ); Thu, 18 Apr 2019 04:36:01 -0400 Received: by mail-pl1-f196.google.com with SMTP id bf11so815939plb.12 for ; Thu, 18 Apr 2019 01:35:58 -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=6qV3KxK0aW64iJSBNcMR5tp9F6Bs2X4FIoa5U3lna/o=; b=LSbJ75ezZhJntTsLbqSopErPhnkuwUY2Gie/VmMcw4SA687fAmJDhVSbtn/jzQVmLy m+4cDNDrmm8XmEe+Kn7J3o9TyiZ6/hnhQgsoRRYqBS6KqhnpOyqm8XvXb5d9Y47dIwoY wHxuOtpNRVaGrBOArpnvailKWGiOXRs2zcbxs= 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=6qV3KxK0aW64iJSBNcMR5tp9F6Bs2X4FIoa5U3lna/o=; b=H2yBV0ZcRIJOoP7wTaLm3LbETnSjUz3zVTWlFajZLLk+t2oO2eqJsJrtLinVjKU7Hq RNTYPXgtEVbFeqqyKAojsE1NZWGFRgn9PoBlLn5vIvEvFAWmdcvHrkfzChBf36PXYUrf PU0k5xD2UFPfGzc6YD/g3OMPulctJV4hT0t8uVCZ98V4CcvcoQBE7zYw5Fi9BSqNfn4J wJtepB2cpDMXCA/38HLhn4XXvKq6OFfBntWckyN5Iwlfjt5d3jSX6zmgAPdo8yFGs3x0 hxATumQcLHR9sr1J/HjAEmyBZQFUTftsjDvF25D0clz4Y+bSUOWn++qSG7qiR7X5TLNS sk6A== X-Gm-Message-State: APjAAAXlDnEiPSrQ97hNDCugX8jdRsp/4WmRGjtFkaIMlM/J1TW79WXU M9YwnjknI600hOBFp6ziUNSfLA== X-Received: by 2002:a17:902:5c5:: with SMTP id f63mr4612220plf.327.1555576557680; Thu, 18 Apr 2019 01:35:57 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id s12sm3166255pgc.28.2019.04.18.01.35.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 01:35:56 -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 v2 1/2] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Thu, 18 Apr 2019 14:05:42 +0530 Message-Id: <20190418083543.11695-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 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>; + 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>; + regulator-name = "vcc-ctp"; + status = "okay"; +}; + ®_rtc_ldo { regulator-name = "vcc-rtc"; }; -- 2.18.0.321.gffc6fa0e3