Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp91782ybt; Tue, 16 Jun 2020 17:34:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7YByXmgKWmLNSCZrtTCNsnXCCcAI6PBWeVBcgGcutDefDFpvaXgj+kJoTGoxZ5pgOErcF X-Received: by 2002:aa7:d6d0:: with SMTP id x16mr5107288edr.175.1592354073825; Tue, 16 Jun 2020 17:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592354073; cv=none; d=google.com; s=arc-20160816; b=P0Pd1vQ30TOEnDV/UqQk3nzhdfb0nVcvxon7+yQBcC+Bifjf+1fnpejFSvwh/8MpME S22UyOS6eMHWLOHnQ4nWHK1+GcraXPZ9JxC/ZtmO/eCITBOvroDgRJneP4xjYVfMGtC+ aODgUO2bSJwV7Fg4RBM7bCDTI+dIw4w2wP/wa0U7GJ1/AiwafYHbObAkd/kry2KtI3OX B2jxVODcTJiI9F+S7KK4v80+l6H7sF+7SKTbSCJHbeWkghm7mBbZKirJmG+aI6RYohOC dizJoGrLbuBrfqe54JQxpJs8cAHHEuyHO4rJ1viNrzaG/ypM8z5joxK4b7xZI+6liX3m /tqw== 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=IQdlOfAg0o6cm7bdg5gl17ECi+gV3z3KaeEk+EsWago=; b=h4J6KsCro5EeqLqeivOlxJm0/81g0ix+80epM2sMWlPy35TBZDuOrq1/9015RfgbUm a5Msds0RQoT2E4SXJm42NcpLQDWQmCPVhnvcoW1oF5Q+8X0zPFxzQ2+0xrXSgXjvzNBv wh8RpAPHicV+aKaatATz/evZOP0N5jSqFbWyKfr0RrY64uVXJINE6EO3esLyGx/i63PA ilmnUrzkrqsJ9+GZrQNRDY5qbnrdUsYQGtQDvMhBwLxdHFRjByJOwhNe+HSw90gNW6H4 a7jAYBx0L1Ud7PlG17j/edJhnKFD5tNCqZ+LdBVBBUQcCvc5Iy9itN3EszitTWdjT9ZO MIyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=fzUsKIKz; 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 n28si4637440eda.445.2020.06.16.17.34.11; Tue, 16 Jun 2020 17:34:33 -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=fzUsKIKz; 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 S1726634AbgFQAcT (ORCPT + 99 others); Tue, 16 Jun 2020 20:32:19 -0400 Received: from vps.xff.cz ([195.181.215.36]:44290 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726603AbgFQAcS (ORCPT ); Tue, 16 Jun 2020 20:32:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1592353935; bh=b1/7qbKU/Xjmfy3lRGyd7/FtHpXUhaxNH3hyWhF4w/I=; h=From:To:Cc:Subject:Date:References:From; b=fzUsKIKzoQ+1OaWhcz+hZ7MIjha/GYJ3SwW1xSWguquo+3lqSLOaIfzBYY7ta0io8 rL8DemDnSAwGa1BBkB0+DuxTcVg51GGq/DYZa1aStAcUu9yBwIafghQ+VTlwXqqR0h 3THfBi7Z/3isAxxKn49vLTr+lDXdBWz0mMWLDxk4= From: Ondrej Jirman To: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , 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 v4 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support Date: Wed, 17 Jun 2020 02:32:09 +0200 Message-Id: <20200617003209.670819-6-megous@megous.com> In-Reply-To: <20200617003209.670819-1-megous@megous.com> References: <20200617003209.670819-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 e60b57f8ac14..6b2ff431cddb 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