Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1282287ybt; Thu, 2 Jul 2020 01:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgTxVqoNvCH1WNY/i5ej1LMtKqfjxzBd5TKnWWFaWS+ig/9hfVAb+9k+tCH6d214gkSEhl X-Received: by 2002:aa7:c80d:: with SMTP id a13mr33974772edt.327.1593677787605; Thu, 02 Jul 2020 01:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593677787; cv=none; d=google.com; s=arc-20160816; b=HvBEyD902cREHv26swv2jv+vfhx1j62N58Epxl9hRpNP+gkFQOC3xvbKSRwAt4OQTa TqeFkqEMf4rq3UUahIijVIoxrbv8P2Y4KqSgf9IfKt+QDJDs630dbt0WeiTzwfWvfp5e 8S7mtMLMBv97/4/57fHHXD7QTupUH+n04uEzGhcAVx+TmwOkDDx1/03XqdO6OVgJLRk4 uJRz1c7PhsnW6Uuul+T/Lww9ea5LHBBnPUz+pKncT6F4bDJ6HrTP3JaqweQlUspro6Ls kGq56ximmGHnyCeDESzgifkiPMG8LQ+SQ5CjcvFSD1npMltAYyDRnHlhTw8gVj7s1f4L q1MA== 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=5TUBrRq0Z76PXCv6icwFD6WNX5DV142+czvstK1y1C4=; b=zs0wDNfksOAppWAzo0LXF9Fcf/M4VVZpUVMnLUoGAAvz9AhoO+2jCnQAN8fljdujKi EPhNMuYgH3WRPwQ5kMgk1R7BmibdkspzbldXVvvl+o1JWr+usHRCnL9RVkT3tgVaP/gV gCmVgfMk3ZhzfQFtCQ1Y8soHwBdWw3StqSeObF31UXTCzUtjouuU0i20YNS6ZyFSCKAO /RixS2dVgOVDs4unicT0u1Dyt2uuo5xuj7Va0Tcaz/rd8M8hTz1mOOmNa++1MPVJZ4w0 JI9RDNkj/iqJMhF5WaSrYiwKk6PKrAbi655n6s99lp++Eec+D04JqhqHuYk67duHT+GC t1Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=NKoZQqD3; 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 u8si5410181ejx.92.2020.07.02.01.16.04; Thu, 02 Jul 2020 01:16:27 -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=NKoZQqD3; 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 S1728263AbgGBIOx (ORCPT + 99 others); Thu, 2 Jul 2020 04:14:53 -0400 Received: from vps.xff.cz ([195.181.215.36]:39358 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728225AbgGBIOv (ORCPT ); Thu, 2 Jul 2020 04:14:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1593677689; bh=ct3WCETUhO2fBq7dbPZ7Ee7p2JVAC0DgiR8id7bupFc=; h=From:To:Cc:Subject:Date:References:From; b=NKoZQqD3CaxGMgUTALdSJmmTNH4Rf1sD3m6RaODw/qTu0ZGA1AvnoP43C/hM/sZlT tsPexv9LquJ4QWweUl9F3E8M8qTr57YaVZE+iMrYkbPzH6IcCZzTNFtWBJV7oWazdq syt1tuRj3FpZhxgS91ybuPSljWJ+fCFVYcWlqPMA= From: Ondrej Jirman To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng Cc: Ondrej Jirman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah , Linus Walleij Subject: [PATCH v8 2/2] arm64: dts: sun50i-a64-pinephone: Add touchscreen support Date: Thu, 2 Jul 2020 10:14:32 +0200 Message-Id: <20200702081432.1727696-3-megous@megous.com> In-Reply-To: <20200702081432.1727696-1-megous@megous.com> References: <20200702081432.1727696-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 a89425ad3727..5c7386566053 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -121,6 +121,25 @@ &ehci1 { status = "okay"; }; +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins>; + status = "okay"; + + touchscreen@5d { + compatible = "goodix,gt917s"; + 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