From patchwork Mon Apr 8 05:54:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10888795 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 6AFD117E1 for ; Mon, 8 Apr 2019 05:54:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E2B926E51 for ; Mon, 8 Apr 2019 05:54:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 40D302787C; Mon, 8 Apr 2019 05:54:51 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DCCED26E51 for ; Mon, 8 Apr 2019 05:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=E8ICW3OVdkR9itQyVu/a3KL+3H5UOBigjRiy3Mk3ULg=; b=vETLxosbVYkKqB AqDp4rbG3+1Y27wAx7o47mSHYsV276mq5YNnB+HtZOTb7ARsaA4ze5Du2a76e9NJwgm2ofscpX+Qd lo4tlpSQ+jzL0kPabo78y6fPNtBabLHn1VZU0NEwrawbohkrJEhjjeNIR8hns01LFGZ1iQtIbpttD x3vWeVnhhOXcJHTQr1W+AUrsuoO7WdCW20Mi/7o4nkqhdxLUNOnnlER9TVeN1kDVcPnqK4WHNnsxs Hr/+ax6ckA+5HgEjcJym8rsY01mRvlTdFE7qntoUIVqYrBnqlxvAoVHWF8BN7xcUjzsY8I5y9IoyC 28n6sFAhC6DU3803bH2Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDNF2-000826-8X; Mon, 08 Apr 2019 05:54:48 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDNEt-0007ru-4u for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2019 05:54:40 +0000 Received: by mail-pf1-x443.google.com with SMTP id e24so6911363pfi.12 for ; Sun, 07 Apr 2019 22:54:39 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=cxx5ypZqGFJEVdHb1LskbC0G/Dn/FbT8LG6QdiUJVeY=; b=QJoM8NsNDJBoTMO9r/0ePkPfIeEXqpKa2FFz8CKo42xCSNuLXMlVPekUlJc+8VBfbY 3O9v8CfvrAahR5faK47S3EW2PVJQkQuQSsMmQ+9zetegFbFNTVsFrKaTUWRd3loP58zs bDX9zQSKrYKgEwTpe2ZCtdLO0WenRFhKvCtug= 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=cxx5ypZqGFJEVdHb1LskbC0G/Dn/FbT8LG6QdiUJVeY=; b=duicz0+CSmse6LyhFqGsq1SGsOKVXFK+4GPX3CRxl59VXQGomQZ7S2WQNhX4M+/aga 2cHj5SL5OlNPmPM2veFgUE0eXB+rXcxHCuFe6KDYfEViP+79ZQqORRabAHw1S8xQPd7s b+O7pN1bCoc0BTJ10KQXQks0/yS6YwsK+tE04dnAQqSikKGacyVFCV+ho7yhUBrGl0W4 cxYKM+7H0eBwYWR6P6fvfmh57M/lMzYy7q3nj69S20M8BdIm658w1pj4/i+c/36mhHtK y6P6UYZM1OEhszpeZCQl/g4SE5B6mPW5PU+o+GsWlR/ar167+l/hHVEMwl0dPmQ7Ip1X pHCQ== X-Gm-Message-State: APjAAAVbuQVqj6FsfdOO/MiRcLb1fcFsr6aJIxN2kzqyT8NEy/kIJ9I2 gcFeC7LUkOwVgml0bHpXkGvy6Q== X-Google-Smtp-Source: APXvYqyFPQiC5fkC4W7hGUE7Xc7Snl3DRIdvT50w1uG32k3NnurmAdtEx4CHhEYdz7aBUXuQ3d6qhQ== X-Received: by 2002:a62:ae13:: with SMTP id q19mr28095617pff.152.1554702878402; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.217]) by smtp.gmail.com with ESMTPSA id l1sm31076164pgp.9.2019.04.07.22.54.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Apr 2019 22:54:37 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland Subject: [PATCH 2/2] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Mon, 8 Apr 2019 11:24:15 +0530 Message-Id: <20190408055415.1374-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190408055415.1374-1-jagan@amarulasolutions.com> References: <20190408055415.1374-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190407_225439_333247_34279A39 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- .../sun50i-a64-oceanic-5205-5inmfd.dts | 22 +++++++++++++++++++ 1 file changed, 22 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..5b0631929a6c 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,28 @@ 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; + }; +}; + +&i2c0_pins { + bias-pull-up; +}; + &mdio { ext_rgmii_phy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22";