Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp832312ybk; Wed, 13 May 2020 14:27:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhztkBgpUpKv8S9akEFoWhSg0hWZpMLpX4GBoh+flB33QaxgM6PxmMs7o/FuuVx5Uw5mho X-Received: by 2002:a17:906:bcd3:: with SMTP id lw19mr996608ejb.276.1589405225615; Wed, 13 May 2020 14:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589405225; cv=none; d=google.com; s=arc-20160816; b=H1iFWya/AFNkCcni5GPgYNm8wgF0HORZw1CvMUvOzfhPhrJsBc3Lk6cjmMazLWtLBt ZW8qUo/rL/PL1AQ2q9CIh0mFpVv3AOD/95uS2of5RX3nvGMSh1AdbNdtnfEtTaZn4hxM VG75QlqwAGaLap/Q3m3XAVMI6izkqeSpCsCCAVyCROwNarY4WbSZVBZRMPEVCg8IdLvn oyoWlEAogB20Q8Zj26p+rE9iL93F5ZtW8mjj/lT76egWWoT8MgM/XlcbpRg2i851BE34 hWdHnQv9isqZP1ZHkvWtH2CATgcOwFlJL8oAbA3vDBarg3J2QF3hFWiwJHX5uwHi+dxs YYRg== 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=8CIWVcP49nk6/IhcyjEYg5mDurVg4ZD4Iz+44rt97pU=; b=PUAmgnvCsE4Gykm5zpbjOEFGSqM9LVjUweTOfeEJBOEFJvt7XH0DT7i2sdFrnaGC9Z J7iH8qMDnhtGV3TPZFuXTMwZJWQEzcTjsZk4xJcW+4B/roLF4/17JSXHUH2edrcKdYoI UFdUKexm0yuYF7z34WiX6C6u6g/L+hfDiFwT0PWUhrX6d4c/0a3OYNvhZIMgjxDOYTbs TvEDKzEHijfxATpQKvfr5zNua0l+e7vCCq6hzAu0idvXmbVz4qGmXlpJ9ZparLct4laX 7XA8vOk9djMsbipShJLZswpOkg5hIxl+NQt1jraU66f+tyqO6tD1KP6fwH8U5lyoGiTf FBHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=jwel8EOt; 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 gu10si357050ejb.461.2020.05.13.14.26.41; Wed, 13 May 2020 14:27:05 -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=jwel8EOt; 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 S1729106AbgEMVZK (ORCPT + 99 others); Wed, 13 May 2020 17:25:10 -0400 Received: from vps.xff.cz ([195.181.215.36]:33876 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728691AbgEMVY7 (ORCPT ); Wed, 13 May 2020 17:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1589405097; bh=dAtOpoYajZP7C0pqSSKpj9PSQkj8wPGyufOsCnWHi+I=; h=From:To:Cc:Subject:Date:References:From; b=jwel8EOthc8Nk5hqZACkDug6Vh+fBrG5B+CM1pAJr5awcf+Vv60s7JQN/muNtC2p5 m4pgb1D2FllBTyO06nOCgwzfm9odoyqlaNMVbCK9rrnKV2Of0UHjRlXasxmjdrxgMZ TSW+cChDYyqg/omHwxLV0dVwvNR++GbkrxTGpu6o= 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 v3 5/5] arm64: dts: sun50i-a64-pinephone: Add touchscreen support Date: Wed, 13 May 2020 23:24:51 +0200 Message-Id: <20200513212451.1919013-6-megous@megous.com> In-Reply-To: <20200513212451.1919013-1-megous@megous.com> References: <20200513212451.1919013-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.26.2