Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp768145ybt; Wed, 1 Jul 2020 09:30:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5UBoMD2hMntqPONAUZJKnokyy7W7aq5YtYxj4derKhLNgmu7cSYh2MPIoR4l9hnIxtfV/ X-Received: by 2002:aa7:c656:: with SMTP id z22mr16565091edr.101.1593621031657; Wed, 01 Jul 2020 09:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593621031; cv=none; d=google.com; s=arc-20160816; b=vfOwzoRcAgoeY7DM3Rj4bLNsVR1KuDYH7MH99iNzXQhfSTVXBKpyrZNvXjYw9L14Kz cTdRGkIpdtwVyBzuCY9CEnaX0aM61nKIqRB/n0VRQ1DGFhORHhRmAYuUBOpKVq3bQwLk RnsFRO5BmJwxC2N9LXCG1UAqI275JGTHuZ3bOM+p+MJ8ENZRcNGJazfKO6/aX9ClDHrU FnmlRAurdODNQd7IjA/8tfCl5C1DaZy5xbJ58r1rmUAaRZk72uO3C94LWmiPuyeOQoth gOMnRUaDzoYNmO/CJmzpNIwySGX6lKdPaiWWnjhuoq1UY+gTUMgTH0J8GII/lwCpo8nH iu6Q== 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=zA4/qDthmnJqRURr6ubCsUmVEuUYSRvuy6amlUA9pg4=; b=pnfU9p6eizMqRHSL84/O9zRZNW3+U9qUpWbdzorLevXKBAojDiDjW175KdDghz/uKV aDw/qA4FXiDkVVzJgbebXM5vn7A0BCWlxrNR/FkMuzQ8AnqayexuwqqGX+8gMunav9y/ XtmEC0xOQiPddCqw9inzG1Nn3fds8Kfnupg+pA+6KS68jsIdLFqzNP920NkVDvbNd0JB UACjTh6ekxZqDadnzwdaPb/4V5q8pNHIIKbTComyqHFaKpZJe9Nbk3i/UTYyJJdVpw1T dXWgLLLDLCrLSeANBluS3Nxw5PnzxUGpM++D7YKZWaG+u8Hf924d3y00ipixHn6JAwtY CyrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=QvDlBRP1; 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 j31si4774842edc.371.2020.07.01.09.30.08; Wed, 01 Jul 2020 09:30: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=QvDlBRP1; 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 S1732460AbgGAQ3r (ORCPT + 99 others); Wed, 1 Jul 2020 12:29:47 -0400 Received: from vps.xff.cz ([195.181.215.36]:52500 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732255AbgGAQ3k (ORCPT ); Wed, 1 Jul 2020 12:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593620976; bh=mqI4DMxpU5nv3gGp6GplYAwWUJ0ad4+0Fg/Z0K5Wudc=; h=From:To:Cc:Subject:Date:References:From; b=QvDlBRP18N7OvyhJ3tFjUriKE91W/bb31wIr6DkLfa3e8fSP2hYFrjYOpZImyOJRa g607ewclGlWxH1UWjO73GJ90e2eMQS5b22OjcRf4sxMcicHgcimizB9NN7Xr1kmIzN HVqoOjvnhQmPGO1MVoPp1aHlqd5U3Jakay1oKwnA= 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 v7 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support Date: Wed, 1 Jul 2020 18:29:28 +0200 Message-Id: <20200701162928.1638874-14-megous@megous.com> In-Reply-To: <20200701162928.1638874-1-megous@megous.com> References: <20200701162928.1638874-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 Acked-by: Linus Walleij --- .../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