Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7392865imu; Tue, 22 Jan 2019 05:25:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN7aZQqXQU/RdSBJ3eaykPQ5PAkVP11P7ozGiAiojaJGbO04AQT6Ryo/bxRelY9wlxRtdrdA X-Received: by 2002:a17:902:2862:: with SMTP id e89mr34731037plb.158.1548163507771; Tue, 22 Jan 2019 05:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548163507; cv=none; d=google.com; s=arc-20160816; b=0wFnRK6apYbQiwlb/qyfAsC4eWj4nKSmv9SGuFwKMGJHfY0wi+3w0jwQRF9ozJraYp kb62A/KstzdORd9pEMCJIFHcHDz74IbhZWqCqbDLNY1LrR2WfvBq4y/3RijFVob7nneA BZVvukll4HeOUyw9QZvAfmxr1GS2vbPL4Bdjdsas5W5eBut42Xlx0AEfuNCaOcIvvDac QwDkvgmuOA56UsCYLE7zHz49AMCNONbg4ezqNRInA7HsyU3f12M7XhwEMj7Bom+pUGAf vN+nJ6PWPjOJKoMZbWNbPYYLKNCq3Yhm/uulp+WXVUK5SjZ+h5fbpwZDWcufZOqjM3q0 7A/w== 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; bh=RT3+xqmnzBZn5Q0Sn/BdoSKeojczo1JCO4Z7jN0SocQ=; b=oxeD3R53Gnn/bjSWn6Mh2Pgc/Cqjp+xQPQbBgO6XrVHQrJBkU1FtBQlyoBqkM/4cZI ZpTsfIBFREn6wvjaJw+xTCdiKXiVFm3T3la/1iZx71ww1V6OmufcNmtuwaYjGYFJSmGE wXKdVHTevQxqRUzt5BWIPmnA2Se62O0daf6qq3KgGZfIHGynN4chCgEwnXkk9zpPsNH8 3P6EYw1Zc+I/VFU6+ApPy65xq+MVIa4s/c7UNN8mCEmp5zABFWD58LMSTVy38GJG6ZWe RpsVgNOWwOyYG2Qx9qaQripO5255mvIWAhdqg9Qqd24FqIhtmY0we6COJiQtdwNAt6M4 MKgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si14664811pgq.466.2019.01.22.05.24.52; Tue, 22 Jan 2019 05:25:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728634AbfAVNWF (ORCPT + 99 others); Tue, 22 Jan 2019 08:22:05 -0500 Received: from mxout012.mail.hostpoint.ch ([217.26.49.172]:28120 "EHLO mxout012.mail.hostpoint.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728578AbfAVNV4 (ORCPT ); Tue, 22 Jan 2019 08:21:56 -0500 Received: from [10.0.2.45] (helo=asmtp012.mail.hostpoint.ch) by mxout012.mail.hostpoint.ch with esmtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1glvzy-000CHY-47; Tue, 22 Jan 2019 14:21:50 +0100 Received: from [46.140.72.82] (helo=philippe-pc.toradex.int) by asmtp012.mail.hostpoint.ch with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1glvzx-0001Dy-Vs; Tue, 22 Jan 2019 14:21:50 +0100 X-Authenticated-Sender-Id: dev@pschenker.ch From: Philippe Schenker To: shawnguo@kernel.org, s.hauer@pengutronix.de, thierry.reding@gmail.com, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: marcel.ziswiler@toradex.com, stefan@agner.ch, max.krummenacher@toradex.com, Philippe Schenker , devicetree@vger.kernel.org, Jonathan Hunter , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland Subject: [PATCH 2/2] ARM: dts: Add stmpe-adc DT node to Toradex T30 modules Date: Tue, 22 Jan 2019 14:21:35 +0100 Message-Id: <20190122132135.5012-3-dev@pschenker.ch> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190122132135.5012-1-dev@pschenker.ch> References: <20190122132135.5012-1-dev@pschenker.ch> 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 From: Philippe Schenker Add the stmpe-adc DT node as found on Toradex T30 modules Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi | 22 ++++++++++++++-------- arch/arm/boot/dts/tegra30-apalis.dtsi | 22 ++++++++++++++-------- arch/arm/boot/dts/tegra30-colibri.dtsi | 22 ++++++++++++++-------- 3 files changed, 42 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi b/arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi index 02f8126481a2..8b7a827d604d 100644 --- a/arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi +++ b/arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi @@ -994,11 +994,17 @@ id = <0>; blocks = <0x5>; irq-trigger = <0x1>; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; stmpe_touchscreen { compatible = "st,stmpe-ts"; - /* 3.25 MHz ADC clock speed */ - st,adc-freq = <1>; /* 8 sample average control */ st,ave-ctrl = <3>; /* 7 length fractional part in z */ @@ -1008,17 +1014,17 @@ * current limit value */ st,i-drive = <1>; - /* 12-bit ADC */ - st,mod-12b = <1>; - /* internal ADC reference */ - st,ref-sel = <0>; - /* ADC converstion time: 80 clocks */ - st,sample-time = <4>; /* 1 ms panel driver settling time */ st,settling = <3>; /* 5 ms touch detect interrupt delay */ st,touch-det-delay = <5>; }; + + stmpe_adc { + compatible = "st,stmpe-adc"; + /* forbid to use ADC channels 3-0 (touch) */ + st,norequest-mask = <0x0F>; + }; }; /* diff --git a/arch/arm/boot/dts/tegra30-apalis.dtsi b/arch/arm/boot/dts/tegra30-apalis.dtsi index 7f112f192fe9..c18f6f61d764 100644 --- a/arch/arm/boot/dts/tegra30-apalis.dtsi +++ b/arch/arm/boot/dts/tegra30-apalis.dtsi @@ -976,11 +976,17 @@ id = <0>; blocks = <0x5>; irq-trigger = <0x1>; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; stmpe_touchscreen { compatible = "st,stmpe-ts"; - /* 3.25 MHz ADC clock speed */ - st,adc-freq = <1>; /* 8 sample average control */ st,ave-ctrl = <3>; /* 7 length fractional part in z */ @@ -990,17 +996,17 @@ * current limit value */ st,i-drive = <1>; - /* 12-bit ADC */ - st,mod-12b = <1>; - /* internal ADC reference */ - st,ref-sel = <0>; - /* ADC converstion time: 80 clocks */ - st,sample-time = <4>; /* 1 ms panel driver settling time */ st,settling = <3>; /* 5 ms touch detect interrupt delay */ st,touch-det-delay = <5>; }; + + stmpe_adc { + compatible = "st,stmpe-adc"; + /* forbid to use ADC channels 3-0 (touch) */ + st,norequest-mask = <0x0F>; + }; }; /* diff --git a/arch/arm/boot/dts/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index 35af03ca9e90..3c421a5cfbc2 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -845,11 +845,17 @@ id = <0>; blocks = <0x5>; irq-trigger = <0x1>; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; stmpe_touchscreen { compatible = "st,stmpe-ts"; - /* 3.25 MHz ADC clock speed */ - st,adc-freq = <1>; /* 8 sample average control */ st,ave-ctrl = <3>; /* 7 length fractional part in z */ @@ -859,17 +865,17 @@ * current limit value */ st,i-drive = <1>; - /* 12-bit ADC */ - st,mod-12b = <1>; - /* internal ADC reference */ - st,ref-sel = <0>; - /* ADC converstion time: 80 clocks */ - st,sample-time = <4>; /* 1 ms panel driver settling time */ st,settling = <3>; /* 5 ms touch detect interrupt delay */ st,touch-det-delay = <5>; }; + + stmpe_adc { + compatible = "st,stmpe-adc"; + /* forbid to use ADC channels 3-0 (touch) */ + st,norequest-mask = <0x0F>; + }; }; /* -- 2.20.1