From patchwork Mon Dec 3 10:15:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10709093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC10D14E2 for ; Mon, 3 Dec 2018 10:16:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD5742B068 for ; Mon, 3 Dec 2018 10:16:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0FDE2B069; Mon, 3 Dec 2018 10:16:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBB142B067 for ; Mon, 3 Dec 2018 10:16:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726316AbeLCKQc (ORCPT ); Mon, 3 Dec 2018 05:16:32 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54051 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726303AbeLCKQa (ORCPT ); Mon, 3 Dec 2018 05:16:30 -0500 Received: by mail-wm1-f65.google.com with SMTP id y1so5089188wmi.3 for ; Mon, 03 Dec 2018 02:16:06 -0800 (PST) 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:content-transfer-encoding; bh=Rcmd27QWJ4xmppTvwllwY6JeAM/zSw/3F56Tx3gVCeQ=; b=jlRr82vuqkK0mmH/legr7UuT2SR17Izjlh427s+xfWa7DmENHl9PTVPMRQg+2yZaVu t61q4G+qv5aM+Yho3fsirfrh5a4+/c6/1eUWio8l1K6LoIMCJRu4ILsS+8pk983poCaF QIbIl9qeY5dAErs7Q4rfb9Wl9XjygP+uAHQRo= 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:content-transfer-encoding; bh=Rcmd27QWJ4xmppTvwllwY6JeAM/zSw/3F56Tx3gVCeQ=; b=UDKpFcsu7/O/rCzkkoDJ/V6n+b09LuSbp6ayvScjlOhV7AJl8/VMU3rGiRD/foN/9D g4g3ZL5NIY92lbtvEWLurj26fVkBf7nk3VErrT5r261kVhCQowaE54Pera/XwDcOnvGY cz2v653mlPDOdArYBjE6TuPmMz40HfGZGQ4jA9QA9YPhv9n8s+XOi/1eggiBdnk9HTHE PNt5vBxFQyUAHq0ggtm8ejSuWZIPWSQufOip15lrwoThCRF7rqoHKpJMnT5UxviZUDOM q4Ic3qhniuGPhr7x4q5H5TOoB2/0Lx7VPhTCInqttIe2x96Ck0O0lLrgBzxeA5XRPyPb uS9g== X-Gm-Message-State: AA+aEWa/s1BIHVANCEp541fRpBXSzH+mhyh3uxiuiuT4jFyHC8QDvPpt oqlWrPOI5GlQgFTf7XiTF8AgkvZZhtU= X-Google-Smtp-Source: AFSGD/XtKq3es9+911MegfWg8xs36aHwaMEywK0bx9cUOLdLgmGC8tOga7v8E9RG6igPmIUh54Mt9g== X-Received: by 2002:a1c:27c6:: with SMTP id n189mr7546256wmn.108.1543832165929; Mon, 03 Dec 2018 02:16:05 -0800 (PST) Received: from localhost.localdomain (conf.hotelmediterraneo.com. [2.228.78.71]) by smtp.gmail.com with ESMTPSA id f192sm5832158wmd.12.2018.12.03.02.16.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Dec 2018 02:16:05 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Rob Herring , Chen-Yu Tsai , Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , linux-sunxi@googlegroups.com Cc: Jagan Teki Subject: [PATCH 9/9] arm64: dts: allwinner: a64-amarula-relic: Add GT5663 CTP node Date: Mon, 3 Dec 2018 15:45:47 +0530 Message-Id: <20181203101547.16835-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181203101547.16835-1-jagan@amarulasolutions.com> References: <20181203101547.16835-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 vcc supply - PH4 gpio as interrupt pin - PH8 gpio as reset pin - X and Y axis are 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 9ac6d773188b..913fcdff828e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts @@ -88,6 +88,28 @@ status = "okay"; }; +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt5663"; + reg = <0x5d>; + vcc-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>; @@ -251,6 +273,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"; };