From patchwork Thu Apr 18 13:48:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 230 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A52C940B29 for ; Thu, 18 Apr 2019 15:48:59 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id j1sf1442997pff.1 for ; Thu, 18 Apr 2019 06:48:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1555595337; cv=pass; d=google.com; s=arc-20160816; b=i5Md9utQMFwt9ZBc2s0CZhc+Dana/1KAmzA6qc990Hq2ZPF3i7nRO5OswTwFNqi/6y BsYCad4BLfaC+tSjfPVlBUh3nJjOC56462cUSDL3LRcUI2qdfbnC5WXPjS8sfSVLZN3a mWcVeBpBFXEbLncyHXlHzWOoZI+c0w+TyeksnbfgVyYBGO3oq93J7ac85yO/vU9s0tEy L7G4/BJGseHsyHdA3EmQ2jkcl6PO/CAM2VbKUpmoETJ69ebbefxdFOiE9S318/D4pKde 52ajGXpkRtMrMJypG/jiYnvNt0UnAuTPuDLXxBmQmYuOivVQ8gJu6mwNq8NwL9ZOfxdu Dnog== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=yxuJYWGxNVZeIU+GMS/qiDyUG9xGTyfSULIXhI+Jqio=; b=HZ7FSX2e/DE7R+00Sxyy4HerE/VkeKIV2Ynz4V1Rsb7WSws5Et9uoX+MeTs26sCDPt 7IR2Re10lnxe7dS2B3gFIbo34BT7feHruzHpEF1kJl8sUvEjWb7Mlei/PAsegj9teM4W ywsIqHGxKKbfZx27gQucOxea/+2iGiAz/9sKiwNrqblgbFTeHEvKz7ai03lVRIoVVL96 U+8m4+1GOv9w+ZmCbx2kRPjvGd0mF7v9a/GyIi+YSUDu43TpoJmZW+t/kBVk4UZ0Xe1B 7GdkktNvPZSDWZTx2/IzugcykgnqKTcmYa1QXPGdZy1x1zUy5x4aThryeN9tzwEEN7L0 L0jA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a2bHRvt1; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=yxuJYWGxNVZeIU+GMS/qiDyUG9xGTyfSULIXhI+Jqio=; b=NcQIfccIB7V8IpYd2hkm49UEokmzwVWDtWJOngrfSmSKWLiBIlugxegm/UaaekMKSY P8Ia/4VYFT4pX/YGEYtUy+yZ+A1+KnDyKOx+053yFghJ+ks6TZ0BUhhEK6strXlR3zdU /iRwf5ZKOoUS7HZX8LzKdfdsMSHTK+qbJ56no= 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: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=yxuJYWGxNVZeIU+GMS/qiDyUG9xGTyfSULIXhI+Jqio=; b=dQkFWtMbdknbmERyz4Yy67I8iFuAe1iMk/bzDIERP1E0KRO2JTUiuv2L4YFVzBEEcw odV8aLyqv4RFYitmfIMnqdmggy0zvL2+Fq3Z7P20Mx1YLTIqkYW9Sf9ng5G17cf9bjJp zHElqyg80etHoMkxIo9vUXXjmjnMhdZv98i3YzAljk6Fjl37wrpuAdQZQP3geYPdfH2p 1Ez7/seEnHQxkPFLn+iN2hvh1mccyh9auqksTbSsNgzpstQkgG0swl+/kf8LPqxW5J41 xhw5Dod0Yoc9KGN8whSBSgPIKBdSADc2aPCVh0Ja4MzrNMS/saxhUuNGz7EJxwC0nptp alNQ== X-Gm-Message-State: APjAAAXwOiHxvCgMFIJvoYrUhx84MsSpqibdm1TLDpTcM0+vbni+mWxO 9DXqOosQC37n41aREVy5srBtxLgk X-Google-Smtp-Source: APXvYqxKjie6wCPCAkAr4I/n2Tj/eqwS1cCyxXnl6kzt7l9C/31v3qRNln8tI00XURoPxeQJXA9Ndg== X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr96453348plb.155.1555595337781; Thu, 18 Apr 2019 06:48:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:2807:: with SMTP id e7ls72750plb.8.gmail; Thu, 18 Apr 2019 06:48:57 -0700 (PDT) X-Received: by 2002:a17:902:b602:: with SMTP id b2mr96990375pls.293.1555595337423; Thu, 18 Apr 2019 06:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555595337; cv=none; d=google.com; s=arc-20160816; b=uhDj5QonxfW8pI7cPFUOlWfOt0yUSEVbWJ9iVNiBxnNydEvgvoQD/wNGU6QN+jaW69 rLEySCmwiroJ8MhF7fyu+YCxwY9SoA5XkHZ4lL/im55XRH5H7Tf6QamXhmUV30UKv+7f qTuAWbgCIunvzTRR32P7ELeJjQsDWjUTkqLxUeTw6vsOQ8EG3pMb7fbj6GkTD4xa92hw TlqhRLy/A+7WJZ68xsy7a7lCJhIPPtrVOcaoDi0Rc9m2CqFQ/HdnVkdNYDgDsAcCirYD J1KADINh3FYdThVKH9pYNQVGIvblO0LaKIiaUO58shEh/LnWqwjX1yqBQMPGYCi8PVom WnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=n9ohN5ybpadpOS01kjPnorYpbIIGcYKvbOgHH+YSoCk=; b=LjJAJI6wVBjA0+ycBB5WD0ZZrMF//hUitD17RWB4VCp0yTxmdUgqFY1O9Xzcw30aLd tGaWZol8d2oFP/c8nh/TW+ERRrj0MnE4+CXFiEx5lUWI3+h4Ph0KvjyH6gVkiJfo3nAo G1HmYjUiDcMM3ggIRqCuHof4buczJvFIm/V85MP3KxP0saJP0jIgZgvSU1+DDv+T7cua cNh2K7LNxJTrhAC4GoG8bhZHXceMV9fl80A15Rjs+B8e7942ZFt6qua7rFMnAxqGQ0Si 8pRu9ZXlpK4H/A1PNGzICtmJoLQ9oU7JvThkYj/XoGxPyTeLNbaxu0L8Gyv3ZFKXVEuG Eb5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=a2bHRvt1; 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 h63sor2055962pge.13.2019.04.18.06.48.57 for (Google Transport Security); Thu, 18 Apr 2019 06:48:57 -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:a65:4589:: with SMTP id o9mr72189786pgq.381.1555595337119; Thu, 18 Apr 2019 06:48:57 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id x8sm2348377pgp.48.2019.04.18.06.48.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 06:48: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 v3 2/2] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Thu, 18 Apr 2019 19:18:38 +0530 Message-Id: <20190418134838.8806-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418134838.8806-1-jagan@amarulasolutions.com> References: <20190418134838.8806-1-jagan@amarulasolutions.com> 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=a2bHRvt1; 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: , Goodix GT911 CTP is bound with Oceanic 5205 5inMFD board. The CTP connected to board with, - SDA, SCK from i2c0 - GPIO-LD0 as AVDD28 supply - PH4 gpio as interrupt pin - PH11 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 .../sun50i-a64-oceanic-5205-5inmfd.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts index 6a2154525d1e..f0cd6587f619 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts @@ -37,6 +37,24 @@ status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + AVDD28-supply = <®_ldo_io0>; /* VDD_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 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */ + touchscreen-inverted-x; + touchscreen-inverted-y; + }; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; @@ -52,6 +70,13 @@ regulator-name = "vcc-phy"; }; +®_ldo_io0 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name = "vdd-ctp"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;