Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp317090yba; Thu, 18 Apr 2019 01:37:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDLie8PoW6VV5YLMn/eFjgOfIao7mgeTjFOJ7RuEzbw1wthLFRCRkCMhcdEO1Io/JCm0Tl X-Received: by 2002:aa7:9ab1:: with SMTP id x17mr89012524pfi.4.1555576630707; Thu, 18 Apr 2019 01:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576630; cv=none; d=google.com; s=arc-20160816; b=CUX3PLXKVTRQfYgtllnDWV/7IgL3WeNs9Le2MWY0KQRFf7qg2+lO00V/87p9qpPF56 MF+WqYX8/8jpsCPEURAHU+BVNwXQdFPkWy79tD893ZWM9mAaUmgo8sffM4ZUMQiRzCG+ x9vQtngywyYWEiNoRpFPdHaqHej+G6q/M+Evyqu+dtv5kQ5V7D3DRyIC2ik/wtkPbroZ HuhNmzZeyzBc/QED4kmc5ORsY9dxr4XR9LYBWJgmurWPQmLVyFjRwhPXCng12idv53jV m/GuBG3mUWlKQM94A/5Pp83QYXqfY6xeJT0/AhLd5xg6lAMPsEiPDMuBvilu2TwLYU/j Y0uw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sQCAZaAXBkJK3V2xhT9DV7p/g0whMniNBsAqfvNfq5A=; b=jVhuCf/qx5nbh7mxnKOUcRbbLDrfmLy2xuR74jeTV4HzitleoMTSu3HETLC3MtPe4Y 0G2I9R/tHE0QLtVzcus9wbLGd/f7mEPQB/xJdfiGvxu/HxuqhsWSBw1hGLp/kB0iVNwC w7P/cndEsQ2S/KXjfzkjIDA9eaba6a+9pU3OK1CdxA88Rtn3OT/eL/wFM/jrQaSjMOOK ckcTXcfKlbDlRdCU4FdBoIY3ixtZSLInkKGICQLqbQww6/hlRY/LR8oJ2xZiipgIpt4A NwoyDgiYn7+kq7k/Wcj0cNPy3NNlNxF2CHy3SeutLo+t0uwjBiTSvvvtS9d1R1fVBixO mScw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E7ePRdEu; 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 p88si1628883pfi.142.2019.04.18.01.36.55; Thu, 18 Apr 2019 01:37:10 -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=E7ePRdEu; 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 S2388289AbfDRIgD (ORCPT + 99 others); Thu, 18 Apr 2019 04:36:03 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44872 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388277AbfDRIgC (ORCPT ); Thu, 18 Apr 2019 04:36:02 -0400 Received: by mail-pf1-f196.google.com with SMTP id y13so774726pfm.11 for ; Thu, 18 Apr 2019 01:36:01 -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=sQCAZaAXBkJK3V2xhT9DV7p/g0whMniNBsAqfvNfq5A=; b=E7ePRdEua5Y/nKFph532lVLSrx6qVjP8UuCT3vkJAS3D8lnvwkih9LU7/oE5K2Lz14 rtJ81wIkKNRZ/q5PD8Ri2KohELOHA/HRw2Uh+fGY74mUoLRYkqXnrqu45N+X74Rgmjn6 Ss0TgOl7ISMQE+RVI4Mh9r1KWvzXakUZcjOas= 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=sQCAZaAXBkJK3V2xhT9DV7p/g0whMniNBsAqfvNfq5A=; b=AxT/aXTcHx4VmWyYlZdzJuvo6MxjZjlWEXYP9RsDIN6kURRjepKPptkm3QhFyFa8yO hNA52EG6Tgb1NasUBmryyOA9/g1LGLmmV699ixz4cmafjBhqAoEYjzjUTXdtEWDjccNg JP1VtYv+VZs6xjhB4pWupxZgL47b71lw2KW4d2eVnLmjoxcD01Y7qd6r8QYCbIaD+Ork MZvD7BLSFfN+/+4rR6Gk+pr1bjHMwLIQTK90MzPFY5yi1fgfF6XwFDaIs/Lg8fNluIy6 5enL27RPO9Xh3tpIAOO/ASHOJXhIvA+EqgKTs6dTcAV+YfkE1JblkiaiyZeJQP43s8CR 613g== X-Gm-Message-State: APjAAAUw1EHxcM0xEhpuX8EHvneG64YBMm9MlW2zeZfZEZz7YKe6TykL P0ZCzKdNEWUGlxelNn0dga+sQw== X-Received: by 2002:a63:c112:: with SMTP id w18mr88519262pgf.200.1555576561226; Thu, 18 Apr 2019 01:36:01 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id s12sm3166255pgc.28.2019.04.18.01.35.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 01:36:00 -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 2/2] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Thu, 18 Apr 2019 14:05:43 +0530 Message-Id: <20190418083543.11695-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418083543.11695-1-jagan@amarulasolutions.com> References: <20190418083543.11695-1-jagan@amarulasolutions.com> 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 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 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..02c1a04cc7eb 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 = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vdd-ctp"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>; -- 2.18.0.321.gffc6fa0e3