Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp862954yba; Thu, 18 Apr 2019 10:48:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxT1U4NqF8ZY74bpLUrlr7Ai/bXsIy17LyxdG0w4CdlBEJXR30gcU2SGYPuDnDvjCbQ6LlE X-Received: by 2002:a17:902:8ecc:: with SMTP id x12mr96928657plo.0.1555609734142; Thu, 18 Apr 2019 10:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555609734; cv=none; d=google.com; s=arc-20160816; b=QoFoxC0R8DEAr85NOJ0kVQ8AFZU80Z6tBlPBYmMEQo/Crp+6xIc+vbVQWY0teKeyPa BKnv6N6aA3PpbvhcV+R9pJ9q2Kpdza6AgQhKlqZXMhpmruyix/Vc3h1FU7Rm7ArQX0iS L4UugrWFCGxVwFkQ1TDjd7BQjArkmXFe6LFMJHPeRBrTqdubcj6SdBD3xiQ5VDnDZay6 /jpBhqQQjYqhUHcMqqcYpFyTyuOWsN9q9B8VwWsmWqtk1WJfWDpIZWc+Kv0EqBXTVXkw D089RhkSxl9xdtVldI1tksrizOFUdA/4Cd4D2+Vkgdpz77PrxTMws+tLSMfm4ngTp84a kMrQ== 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=vTSnpVfPDJjqTfZA3qDasHHVtLoc8OViA7pV96ip3mc=; b=vqHJRnqOioVYVtO7x9/9qeXcbMp2Na2Zr10vlDf5GAY3OQW6PAG830PtZp7RE9E0F0 lhZtOq2GOF+r80Vl02HYgQgjMQ7cV0VkXE4o0Qcbjby9nGK8RiIwlg1k13vK8KwWgOG0 TxhEo4ki+zibdk4gjQw2Qj5kxaxn3cpX3VX/1o6cKbT+BBGrXOFBaJRRr/ES3/OP05mg G2iOuCsf9q6QuT7n7KKn49bOnxMDjfYmK2I6Stf8nt/1hsmVGp1t6RP4nOsEQY70G93+ z0CRWppp/8EihMskYGk3Q2fnquRIrRMGWXQeO+OmIhNL4BnDUHpDqyNeogPS7roWUIK7 yDuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=IBJkS7mO; 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 131si3171657pfw.131.2019.04.18.10.48.39; Thu, 18 Apr 2019 10:48:54 -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=IBJkS7mO; 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 S2389850AbfDRRrm (ORCPT + 99 others); Thu, 18 Apr 2019 13:47:42 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43708 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389836AbfDRRrj (ORCPT ); Thu, 18 Apr 2019 13:47:39 -0400 Received: by mail-pf1-f194.google.com with SMTP id c8so1429955pfd.10 for ; Thu, 18 Apr 2019 10:47: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=vTSnpVfPDJjqTfZA3qDasHHVtLoc8OViA7pV96ip3mc=; b=IBJkS7mOpM2Iky0JQFjKJtsoACjqRC5DA1R4hqiPepieccdELfNJiwSriQnZwE2pJg 32+37RU1bbeWVtqorOtjfIqKaHHTwmmnnvfub899bQhg3iZ/upeevdpS5dJ4FMl/W2dV UkEb1pVrAeiy4Z1wwQIf9DXc8fdVREl+JPMuM= 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=vTSnpVfPDJjqTfZA3qDasHHVtLoc8OViA7pV96ip3mc=; b=MqlHdvPaMqvqoKrFOfmYBLm66hKhCl/Xeiks7h6LUwsw3jKgEdUTS/WdwUP/s83yuD obA2mLsoEVOglpQbQmu/NbPEB+NlmdAxJzSSWarcm4E8gKWYFbAPfMyVpm0q/948/Ht8 s+RyXxf36YAymRtrj2b+2TEgfK+Mj29p7AykJLDxd7FgY0IEsnBRq/eDJxD3X69eeztw iGziK1V17YcV5Y8tN+jYP53cmhOaXyhJlZz64vRG7nC+Po0CplgX2cinlGXUR0OFdRVz +tiybpwwwBieLYqVqMnDBcQIGgmz2yf0ITnkE/I1tHuGBrkmSMhG4EKIDYgs++5soWx+ g1Sw== X-Gm-Message-State: APjAAAV0rMb1OdiNY8wcGU7CySiZX+2m1/aje318byNzNJ9cY+pkt7i7 NNZ+XwS0uDZDLMuDtMFQMiB69w== X-Received: by 2002:a63:ed48:: with SMTP id m8mr76181642pgk.104.1555609658841; Thu, 18 Apr 2019 10:47:38 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id j4sm5223547pgi.71.2019.04.18.10.47.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Apr 2019 10:47:38 -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, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v4 3/3] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Thu, 18 Apr 2019 23:17:20 +0530 Message-Id: <20190418174720.17230-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190418174720.17230-1-jagan@amarulasolutions.com> References: <20190418174720.17230-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 v4: - drop i2c0 pinctrl Changes for v3: - Use 2.8v for reg_ldo_io0 Changes for v2: - drop i2c1, bias-pull-up .../sun50i-a64-oceanic-5205-5inmfd.dts | 23 +++++++++++++++++++ 1 file changed, 23 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..787ebd805a3b 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,22 @@ status = "okay"; }; +&i2c0 { + 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 +68,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>; -- 2.18.0.321.gffc6fa0e3