Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp311202pxb; Wed, 20 Jan 2021 07:35:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxMPXFnT49ZyzQ1rRDkdWuyg0AdEdmxEBt/sAn7SmaO+1ib9RN3xdhTZloPbosBOsayfQ+ X-Received: by 2002:aa7:c94a:: with SMTP id h10mr7727819edt.247.1611156939858; Wed, 20 Jan 2021 07:35:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611156939; cv=none; d=google.com; s=arc-20160816; b=WCR1rvySC1YzeTdRdnpZ55iDAKNpkz5C45R1YbGzdVY/VGxSMEF0AI2Ly0kVI7pUzP O0Jermok+G61WLF25kLTcQinsuvMQNs3+OkkSBtJKs/44O2PiKzGRHLADUUovhsovmNb PoBxW/XLZ0Im5nrh0fzr5vIUqBP0oNeLLRMoCCnNgTi80bRThA/T2L3FxP9HDWcI0FwB rub4RGKxyy7Up3hIrRTiIJFw91NV/IvE+n95uJ8+2JE+xlcW/2Zs/QGIKiAjvX4+/P4l cqipAyPKuPCO0wa7BviXoY65JDWXQU6xLhPkM3gkgw3H1+Nj5tYp2onZj8nGsX9DYYQW eYgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FgXKOQMEuvZjZZQJe4sM6eSXFjFhidqH4UGoGHXkJiY=; b=SCvqbdxCPI91ikgW5VwPOSqH77H4+OfYaW9cMCKAP6TDzqsIw1YfcU2xTLwnOkziFF 8BAqY9ayEcNCVyHIyVToAk2PDTKX0vHbNB1SR3lamqAel8Ws8OjiMgGAU+tTfgDqOrAG 4iBp2eak3T6X16us8EShgiH28l0BFLlv4UlziC3Ba5NW/jsGzBKyv95iLtuGaPb3k3Uq 4va8J1iD5HXk9uQPq9CJ7lEDXet+GJKDEg6p5hHYbjEbe9bBjwv04JBFYR+/iVZ52JeS 0APdVOOj6ETVD84U/vVbGQs49RX3MNXKEeOe+09/45IeFXD6S0kWQ+9qfBFOkyEGQ4rw Hkeg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q24si1013264edg.244.2021.01.20.07.35.15; Wed, 20 Jan 2021 07:35:39 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390518AbhATO4k (ORCPT + 99 others); Wed, 20 Jan 2021 09:56:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388895AbhATOYI (ORCPT ); Wed, 20 Jan 2021 09:24:08 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1ADFC06179A for ; Wed, 20 Jan 2021 06:23:00 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2ENH-0001dE-CM; Wed, 20 Jan 2021 15:22:19 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1l2ENG-0007jt-7w; Wed, 20 Jan 2021 15:22:18 +0100 From: Oleksij Rempel To: Mark Rutland , Rob Herring , Sascha Hauer , Shawn Guo , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter Cc: Oleksij Rempel , Robin van der Gracht , devicetree@vger.kernel.org, Fabio Estevam , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , Pengutronix Kernel Team , David Jander , dri-devel@lists.freedesktop.org Subject: [PATCH v1 4/7] ARM: dts: imx6dl-prtvt7: add TSC2046 touchscreen node Date: Wed, 20 Jan 2021 15:22:14 +0100 Message-Id: <20210120142217.29652-5-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210120142217.29652-1-o.rempel@pengutronix.de> References: <20210120142217.29652-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add touchscreen support to the Protonic VT7 board. Co-Developed-by: Robin van der Gracht Signed-off-by: Robin van der Gracht Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtvt7.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx6dl-prtvt7.dts b/arch/arm/boot/dts/imx6dl-prtvt7.dts index d9cb1e41cc10..63ae2065834c 100644 --- a/arch/arm/boot/dts/imx6dl-prtvt7.dts +++ b/arch/arm/boot/dts/imx6dl-prtvt7.dts @@ -266,6 +266,26 @@ &ecspi2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi2>; status = "okay"; + + touchscreen@0 { + compatible = "ti,tsc2046"; + reg = <0>; + pinctrl-0 = <&pinctrl_tsc>; + pinctrl-names ="default"; + spi-max-frequency = <100000>; + interrupts-extended = <&gpio3 20 IRQ_TYPE_EDGE_FALLING>; + pendown-gpio = <&gpio3 20 GPIO_ACTIVE_LOW>; + + touchscreen-inverted-x; + touchscreen-inverted-y; + touchscreen-max-pressure = <4095>; + + ti,vref-delay-usecs = /bits/ 16 <100>; + ti,x-plate-ohms = /bits/ 16 <800>; + ti,y-plate-ohms = /bits/ 16 <300>; + + wakeup-source; + }; }; &i2c1 { -- 2.30.0