Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp251414ybt; Thu, 25 Jun 2020 21:22:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz78VKXd6LprtIj/NEeZVo1BgTzo84pkuOWErDZJXuWajjm7hZETA5gPAWB63p7nhVt6kPW X-Received: by 2002:a50:9a63:: with SMTP id o90mr1440012edb.95.1593145351495; Thu, 25 Jun 2020 21:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593145351; cv=none; d=google.com; s=arc-20160816; b=rwSd/JtQWKrTwc3j1ZguqwW7QGEYHugklDYU0AAB5XLu14ZGnd53dcSk66rn/62nfY 8bFnwsYGT9dQnt0qttJ+YxgHGKRX0XMdg6sUN/dG+LB8bZYtf1gMaWamUQ469HDgAf9A rj3B0nac8BOh02f3y440KQrLwCl70eZ7AZgOVaBWOD7GxNEJ3o35UEKw0fE8p96PBm9e MwvldEciATRur+zuT6LX5Gqjc5pW0c7uBYFeRKv3toaQSjdcHh863ySc1rNJ5DNhYw1X WZAuMdHbcd9dqts535hgYZbawwfmZ2Uwb+oDJ2yJCeTFRQ4foJOlSnedMM4aoBxeNGtF B7oQ== 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=tOuhikJ+nGBwaG9gb7GbDHkWKIz8Unj/0H7fjL1MJEE=; b=u+xBdohCf57lybL+jAPNfthBwrddjRL6Ou8NSbvZ7XB0VPtHjm+QbwPX2bMgSYUJqy ke/crTVjwJCIU/+PTQIxDIYnT7udOHczhigaw5/lEk4Nup13AjxFzIUBu405qczpIiA9 jhc23h/k3WyPpdMUV1ku8dS4FdKhMHAxxclba4n33vWR/wj1o5XvD8WHFx4D6+mSjvYT 4AK28UatBx3H+KjqWkIsLKWFGu3lXE4H6X4VDEtAh2Kazq65DZFcs79QbLn0/YWrTK9b 75bBK+q4glK2nLiiWHC7hHM3btEbUg+kFYcv5dZDgzD3u8IVkyWaF0tM5LUc+IdKsV6Y gd8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=Y61Myd8u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr16si20590855ejc.320.2020.06.25.21.22.07; Thu, 25 Jun 2020 21:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=Y61Myd8u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726836AbgFZA40 (ORCPT + 99 others); Thu, 25 Jun 2020 20:56:26 -0400 Received: from vps.xff.cz ([195.181.215.36]:45452 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbgFZA4M (ORCPT ); Thu, 25 Jun 2020 20:56:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593132970; bh=CV53Scvw2h1LR2Os390y4UoDhpbY0o57cfifO/wpX0Y=; h=From:To:Cc:Subject:Date:References:From; b=Y61Myd8uppaNKmaPViWrA75NNPXVceZ/llUkfYNWAbHsQZvCpfxwxbUAdXCPbEOlp qn+55VKCzHwzKnj11Vw5VXNkmHWYVx4S3glIz6/7Ey6+wqWhQmR4SvwbLx+xItdJrB eZzZF6Bz2dIqzbNfCfTbYOL3i2XXAsVo31ac6VEE= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , =?UTF-8?q?Guido=20G=C3=BCnther?= , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng Cc: Ondrej Jirman , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: [PATCH v5 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support Date: Fri, 26 Jun 2020 02:56:01 +0200 Message-Id: <20200626005601.241022-14-megous@megous.com> In-Reply-To: <20200626005601.241022-1-megous@megous.com> References: <20200626005601.241022-1-megous@megous.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 Pinephone has a Goodix GT917S capacitive touchscreen controller on I2C0 bus. Add support for it. Signed-off-by: Ondrej Jirman --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 85a7aa5efd32..2d5694446d17 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -123,6 +123,25 @@ &ehci1 { status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt917s", "goodix,gt911"; + reg = <0x5d>; + interrupt-parent = <&pio>; + interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */ + irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */ + reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */ + AVDD28-supply = <®_ldo_io0>; + VDDIO-supply = <®_ldo_io0>; + touchscreen-size-x = <720>; + touchscreen-size-y = <1440>; + }; +}; + &i2c1 { status = "okay"; -- 2.27.0