Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7491754imu; Tue, 22 Jan 2019 06:56:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6oFWHJ/b3hLhYFkrvYsVIDXrawiPjn8+UraDiyMKFZFVUOZ3QWEBp1IhCgDvQ8oQpG294b X-Received: by 2002:a62:9683:: with SMTP id s3mr33571861pfk.60.1548168977356; Tue, 22 Jan 2019 06:56:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548168977; cv=none; d=google.com; s=arc-20160816; b=PI2/634wwgaI2eHqYo6+tan9i0/lGFBOoyoHEL3Q2pPjbztDxsIn8UhqcFmdw/lkM+ bgsmaMDnNzs2qEra+ysxHiFVskEg0IekDn890Vb8jupS6FU2LF1PXodgFbTe6/HH+XXe sM6dKxsux1mY3Awa7xCh1vyZXQYBttXQEss5i2edmlTQvonjFPzE08YE+MB/kuIGG1sF o4timdK8Bo58d0JUKTeZLJ4WBkKuXx1i1DK09PWKZ6COPJYeABs60dMQ+ltpW/Iegys1 wW+rTQNx05LNFWsuG8fBVXerMuTZb4Rkrx+aAnweG0a3xRfdAptdiS66S/8F1MsvOI6L epOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=1z2bV6/Thu1aItV5gieud7p2JyjfefOn3QNcQrHKpXg=; b=Ca0kIQ/Hxa3LEVg/8Ryq74xFrAZnYqp2FGHba9Fb4Bs7+0L9PWyWI69hPMPIe7TqkX tBShWywaopZlLlOgN4yxrifvvXWt99baE3ss1mdhK7lcdO5E7OvcgIWeDjAQ59YHc0vb QrwlSJmvRQ0WBvmUt+VQ7TvsjIgLNc15QAT78dzv+5bZifH/xbPMgOEPcwpvFIS+iBwG mUY6m72Y9jxHgVLfVlurw4aBmOBMN08zm4MWoBpANOMopjMsLICzYZe8ZPFYFe1NsF+E 4n3SIXft+Z4rASMqJCiH5NZj1SIyLBWx/ekDO4cCWXD60pX2EXJaInRRvbOKFIl2ePLM 6UTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=N8wAOKtQ; 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 82si10602121pga.270.2019.01.22.06.56.01; Tue, 22 Jan 2019 06:56:17 -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; dkim=pass header.i=@agner.ch header.s=dkim header.b=N8wAOKtQ; 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 S1728997AbfAVOx5 (ORCPT + 99 others); Tue, 22 Jan 2019 09:53:57 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:57582 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728318AbfAVOx4 (ORCPT ); Tue, 22 Jan 2019 09:53:56 -0500 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 94FC05C0072; Tue, 22 Jan 2019 15:53:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1548168833; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1z2bV6/Thu1aItV5gieud7p2JyjfefOn3QNcQrHKpXg=; b=N8wAOKtQapwQ13+w67WKMdap9XzOrlfNZLDp1KQwijxh3La2l7CUfVVxhPUadEtVnYN1pG ARPiVqIFKgLyw9OtW7VG32gkOSBEQsR7Cik+XkM75H+BpJh4GZ/Wqhth0KmqCyjh6FM+YT NhqyMJ54nr2Ta6lvfLkYvy/nCB3lpcQ= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Tue, 22 Jan 2019 15:53:53 +0100 From: Stefan Agner To: Philippe Schenker Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, thierry.reding@gmail.com, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, marcel.ziswiler@toradex.com, max.krummenacher@toradex.com, Philippe Schenker , devicetree@vger.kernel.org, Jonathan Hunter , linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland Subject: Re: [PATCH 2/2] ARM: dts: Add stmpe-adc DT node to Toradex T30 modules In-Reply-To: <20190122132135.5012-3-dev@pschenker.ch> References: <20190122132135.5012-1-dev@pschenker.ch> <20190122132135.5012-3-dev@pschenker.ch> Message-ID: <34495b73d56dd3dcd7ef9df99d665fb4@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.01.2019 14:21, Philippe Schenker wrote: > From: Philippe Schenker > > Add the stmpe-adc DT node as found on Toradex T30 modules > > Signed-off-by: Philippe Schenker Reviewed-by: Stefan Agner > > --- > > 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>; > + }; > }; > > /*