Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp444521yba; Fri, 3 May 2019 05:01:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqwytAiVJqblyyoXktHDRWJbOKB7Hr8RzL5VnvomBwb8kgMkrcKSviUjqYev/nUX72vaUBtO X-Received: by 2002:aa7:8e55:: with SMTP id d21mr10130522pfr.62.1556884869574; Fri, 03 May 2019 05:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556884869; cv=none; d=google.com; s=arc-20160816; b=YDpNRUyxSqAYBdpHldwROqYjsm/L7X+vTHO138Pe6f+yE+f9MrsW1YJUqnGA2pJI/Z n2zGmRxeEZPn6zpDXSMNn6ISa3W0++OIb/XOPwY4l0l0zIK9xaheU076o2qBnAcogi6i vTPKMpK5K1ihbknvKrPeNqR25Zt/vDIGJr9bZfqxeNRwRgeMOWCoCKZF9x73XuXLqDZl FS7rPAoraAaJ3SlUT8hnUUYq4OV7I6ntsRd61zZhheRu5ZDjOuKV5oXkEoB1YrdyKbEo mm0A4SeTXTpBCYxNZ6hJI18fDL64bapDPANnbiZJdkUAQJWRtVy6ThD0/jIKhbp4L+WV tEeA== 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=bzeisKrbd3NVmsuHkycqQpZOOZrTkWkXq9WqgrEgfB0=; b=PyFsg9IpOIk9ZnhxOpxfjHrmpf0koZiJIZVv8Lotx4q3xmOkBBfjkVKGq0EGUXEH8i owBgdxHKRYyHKJ5sKX949O9kLH4NnvlBjUxFPMimd7p5jvgRz49/Lw2Gd9Pa1mgWf9bV q1h7hPALPYBdudfVgQBhQ+nI86XP5PmL6rS/MLxvKqIJjDbbBxStwGHLLnvVUCRqxDjc 5vAMSx6+dkrrt8ZN8PjJVXOblPrrxKtS9naI/V9yaKggKCNHUX+16FPiZ7BgxQorh2Ds DqoWhpXagrfOepkEI4Yn+tZ+DX5aT3BfrONxz+4/6+ONDOtxngoRnRBqjPS9Hqm0nylo U5Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=JaYHuUbP; 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 31si2230289pli.242.2019.05.03.05.00.53; Fri, 03 May 2019 05:01:09 -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=JaYHuUbP; 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 S1727222AbfECKsX (ORCPT + 99 others); Fri, 3 May 2019 06:48:23 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36423 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbfECKsW (ORCPT ); Fri, 3 May 2019 06:48:22 -0400 Received: by mail-pf1-f193.google.com with SMTP id v80so2719196pfa.3 for ; Fri, 03 May 2019 03:48:22 -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=bzeisKrbd3NVmsuHkycqQpZOOZrTkWkXq9WqgrEgfB0=; b=JaYHuUbP9s75WQ/WiGrEuulQNNGYORAeMSOkH3HzsxPQrs/nzwS9L4hUoDT34F2xfn 9e99AfPrndhTYVchadnaUZeewH6jOAqvWEaqck/WTr5Gy6slmD3ZksNS5ZnOuE5P9Zli TtpYK7WSP1/TBxYtukB9xjN9sh4up41WU7Siw= 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=bzeisKrbd3NVmsuHkycqQpZOOZrTkWkXq9WqgrEgfB0=; b=Vpd23uMy6ch04JPrCl44KzpHcEsEy6Ng4Szqp1yIwGErhMOE/Q7Kb3XFzJQwyCMuXp S4TIwP/LVu3acr44v0oIu8dUhG++D0RVrrv7vd3wVohFc6UykY54GsF7gptU7zAvPxF9 zq0tfEdRvY6+i4Q7dTq/2FDyDa9UX2upYseykenU1an6uMJW45cT0URFTQfarnuII3lk wsFey5dSTMjczjuw1g/7hM/MZuyQP6Mbg0blVI//FX9dpMWfeZ/6uPfc9vstC7dEF2Yn ej8OTjXJ9xhiGmlwcknGaj0BVMJ6Y7nEa2aQ4SS3ssaUZEPiGsLgVzMONpZF7so6bFC5 sxwA== X-Gm-Message-State: APjAAAVm290ERI4Urdyu5z9Zy7MQZUgjyjO/tHaQ+VE8JrPSSU9t/ChW 2ky40cIfOMLmAhFCxwXbu8eAFw== X-Received: by 2002:a62:b418:: with SMTP id h24mr9669983pfn.145.1556880502238; Fri, 03 May 2019 03:48:22 -0700 (PDT) Received: from localhost.localdomain ([49.206.203.165]) by smtp.gmail.com with ESMTPSA id k9sm1965479pga.22.2019.05.03.03.48.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 03:48:21 -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 v5 3/3] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable GT911 CTP Date: Fri, 3 May 2019 16:17:53 +0530 Message-Id: <20190503104753.27562-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190503104753.27562-1-jagan@amarulasolutions.com> References: <20190503104753.27562-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 v5: - none Changes for v4: - drop i2c1 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