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: 201 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E672B3F087 for ; Mon, 8 Apr 2019 07:54:41 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id c64sf9688411pfb.6 for ; Sun, 07 Apr 2019 22:54:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1554702879; cv=pass; d=google.com; s=arc-20160816; b=QWtmNJNJ0NrWu15ed6OVnqvJRKtA8zejbemwzoXpt2d3LSDlynTDMq6Y5CRszzkEJC Yjp1l2p0IwK5uiAdMoKQ6ywbEZFieUYGOiFfPfuAnAvgLS2R7WnXvcCmpjH+BKBcoJ0y luflor73cO2u74zSEW9/SeizbBxW7U/hl6mbB7/oYghr+7tIl4vY+ImPOjzN0KCgKhWy WamXm9ZbdLq7FoPMXeayVfnX/Hhi+o69VJLUBJ9S7Qt+OfBOkXXFUYltweb/Sdwgn5iV m/jirdkCC4DUm2yfqTOqSJuFdWaOwvV+cc6ItQtMukohQRkuhQmIA72R7hKoxUH6nNte /Yzg== 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=MIySLo5l9yiD9H7azIQ7Be2cNCV8EXONMXdmgjXT2qM=; b=Wr/+O2IUKECvpTyiAYawiJtjk7i/s/yYHy337VDju18A+BNdHto558H/RaMBR7pU2r XVRRyBEcRT4Yoo0tZxuuuuiA/5B7ddSzTfiYZHv8KySfbSMwAPtllSIB/rvumOI1esk7 kw7nYFvSqsWWE7geTTeyHoc8sSs7bKplhOuK85n9f474GGTJ1B6Hd+70WhL6+mU7UqwW 6WXBzNIl98/kySi8cMyOPRU2bEj2SJPJyGXhAaS2LRVrVXcq3EP+i9ovbDMPYF1vBAqN rB/4ZIciQiDpSyw5Swz9kuI5eugOWpNPyR6D3uHZlckeTMRRo1uS1xFciFe4IcVKsnwu bKbA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QJoM8NsN; 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=MIySLo5l9yiD9H7azIQ7Be2cNCV8EXONMXdmgjXT2qM=; b=eNr7GqCBh766DrJOzbetID5uO7CauhlZ8sAiH7zcaih6gtwf5frz+ZWj3II62slTHD YsLTND+lhwph+iNH59f04KBe6oFgFGkTnkLYidTdeqGf3zSsTqp3FpStEhoGuHiCv+pf 5ui0SGXaS6GylejZV+j797kbf+HgyJfMCyklU= 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=MIySLo5l9yiD9H7azIQ7Be2cNCV8EXONMXdmgjXT2qM=; b=OTtF77GaNdwWE3+Nxoid5UZ6oAONlHQbBvBgNcQJy7B15oCjH3Plbfd/GB69xYHauF U7ooUmbFmjyo4Ky3q2cPdMCQmOmi0VGAR0IPJLF1IQYyPeP+ssEhZ10TnvMRhrK4eAST QchMMSME5sUfRI5Bd3y6mn5H8m0kzymbEhR1hd14jS3CN7KAQNbLC+oskl7tRwW+Vnqq BRKvW1c0dmQlbntQ+hk9FESKhIJ9UkdmsLy1l2gW/HI2K8rABNaGyjy9OhMqF4F1ltMA 6TrQ2IUyWuop6JdLcqP+FpCI+0bhr6vjeb1JoxeAYBgE714W8wgzj6Ph5uJvcT6hu0LA eMqA== X-Gm-Message-State: APjAAAUX3pmp1Zn040RYcBByViO4B7ZwgynzgQw+u33Kv1DueKscfafL XPX/8lBvGCSv0HMge8AsKxEe0D2q X-Google-Smtp-Source: APXvYqwj8WgmAsOhCy9jswfxSHT7ITx/WnzCD2ifMeFJHUrESlVGsXki5bI5gr7m6g98aznhYO09mg== X-Received: by 2002:a63:2c89:: with SMTP id s131mr469742pgs.120.1554702879106; Sun, 07 Apr 2019 22:54:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:164d:: with SMTP id 74ls3392998pfw.7.gmail; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) X-Received: by 2002:a63:4a5a:: with SMTP id j26mr26499255pgl.361.1554702878783; Sun, 07 Apr 2019 22:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554702878; cv=none; d=google.com; s=arc-20160816; b=Rnr4hc7ChmpSqfKF22JDVdhxYhcJ0giQI52gAZ0U2Il30vE7QwCq6R4XlmUPuVNxuy otSXKRaC9wKLEtZV72iR9bZ2UxZD+MyO89MMJEk2nmcDikG1WMaXo9mLtbDgDSfcth/Q VQOetHwhB8KKVmk5eGNOeqORXrTC923VhnVwIZlnxgkeg7v9wknCRe0KyXxRNDIwqLlB CqGRZ657tsANRWZdvRNRkfd2+0XhIZlnBX4GRd1TyIZmxFj53SZgPb4sqPvwtw3Pdi2K J1kYe7tApv0AWjTe4HoBWxmjaQC3g7XnsqmWZDCxGImqeXnuQC9TExgnJE1Q1OfO0w5m Ybpw== 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=cxx5ypZqGFJEVdHb1LskbC0G/Dn/FbT8LG6QdiUJVeY=; b=o6g0OKpk3ARSfWsAZ1tXNt/X/BSTWRphcOzpfRcn9oMBCaOLST7iLAC8f9cvhtJRTa 0Mm1M3b9IymnmOIjdc3iONh5Upu/nZJhd/n+xF/dBgwo+XjLlr8nRsaVtgHDZ8KOC8uk kDjUYBobAIH+JRDtT/oM/CgE0Dj8JwijFDJOoY5iXN0VliQPCou8yGP90fty9V+4p3Nq HP2dIJjOD2OVei0G8e1hRmabjU+BgoHi4+GAkNvAtwcrkmef3OKBB712w3hGFQfx/fbB MQ5X8xX4fX8oJ32lmVmmwgnLvNntb/BsL3bdzIHxkrIgdLlF07/zbqSvOzx2kgAVle73 Tftw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QJoM8NsN; 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 15sor29837121pft.66.2019.04.07.22.54.38 for (Google Transport Security); Sun, 07 Apr 2019 22:54:38 -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: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 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 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QJoM8NsN; 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 --- .../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";