Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp495646ybt; Wed, 1 Jul 2020 03:33:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxt241j/gjfWrpUxSDXJ6S8VBzSjMJWu+dZHyzFfbTxpQeJA4sFu/vd7ZolPTkpJRaCZtFP X-Received: by 2002:aa7:c883:: with SMTP id p3mr28971976eds.128.1593599606606; Wed, 01 Jul 2020 03:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593599606; cv=none; d=google.com; s=arc-20160816; b=tIPJyGG1xYp/ZCWJTiKfLvla8oujBg6Iz0YFacISyoMWm0UVktRsk4vPuCTfrQMgEh LJd6hVjpzfGGE3ZWDmjDaaAsCZ/xs+y8/5dsg9/sbP8l2m4CDn81Gx9gJwPyJ5GaH4dt UoelK/6YQmAzxXJc20UPTFM50nMuAs3YY7X+RX9n776GuzWxC9f2Euw2UpJqLf6c73vn fd54LMRcmI02ekzxgX4MWQo7ZRJc9B99tULpwK4lZspT0wCTLsJcwlVJvp0B5a+wOc3e 2qBbvyyT1sc17mp6F8dWx5EHNnyj+dXkXTVmzwHOulS6in3gcJJbS5g4os+5+MlI8kQJ 8DdQ== 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=RFmcdrhDjhKZHEC5kjoTiRCD6pShUq5wYo7RKeDpkNH06DfUNkTlPD+B/EXimtvHYV pLbu5Cz3f7UmgNZCMiQTtIs/6uqOP0wWaeXTc5Aun9fFE6AwSVyEloP7FCL3jRuOEWj7 58sj1XQ5qKsv772oi5LNc+uQ9WkKe55ciAfo0SeXpfHOIdXH0t6cowGbzaQvY31ZNvvM JPW2jQeHCMC8IZHTHHF99eAMnieLGWHSYMIaf0Xph/8Tcn2CnENQOy6Y3VVVsLGyrdmo lgCRaLmc1yA+vxcAdb9lBQgWJGK0sTGJGaxN6O98kG2WrB8gkrM2mtijHHXuEIKFm/st SpKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=FHBeQ5nF; 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 b15si4641812edz.588.2020.07.01.03.33.03; Wed, 01 Jul 2020 03:33:26 -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=FHBeQ5nF; 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 S1730114AbgGAKcM (ORCPT + 99 others); Wed, 1 Jul 2020 06:32:12 -0400 Received: from vps.xff.cz ([195.181.215.36]:42548 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729985AbgGAKbo (ORCPT ); Wed, 1 Jul 2020 06:31:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593599495; bh=mqI4DMxpU5nv3gGp6GplYAwWUJ0ad4+0Fg/Z0K5Wudc=; h=From:To:Cc:Subject:Date:References:From; b=FHBeQ5nFreZDNM/2l/SYGog3iYLNPDSfkXOtAYK1Yz5XNjf2LVKMIpAto++BlDQqw N6kczy9TekXltpwUeR34bXP1B8iCG2G0phR9JtIpxL5pAPtyxK2E4CIGLQ46zY9oRF Y2UrLFQKlLmaZnQiOx89ytpZIhLjU4VL6R0VbEQA= 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 v6 13/13] arm64: dts: sun50i-a64-pinephone: Add touchscreen support Date: Wed, 1 Jul 2020 12:31:26 +0200 Message-Id: <20200701103126.1512615-14-megous@megous.com> In-Reply-To: <20200701103126.1512615-1-megous@megous.com> References: <20200701103126.1512615-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