Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7491328imu; Tue, 22 Jan 2019 06:55:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN7qM3yJqZecZeYXuvf1Vbi6zf6Ja8XpbUNA9B/YV8agg89gdNnzZQxyl0m8p1ZOzQl4INCm X-Received: by 2002:a63:b24a:: with SMTP id t10mr31276866pgo.223.1548168953649; Tue, 22 Jan 2019 06:55:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548168953; cv=none; d=google.com; s=arc-20160816; b=UMsr2AQ3l3tst5GB03atay2sxmechrsU5nDaM4GsQhSaN/ymBtcqso0OnNXLxwzDXi qY6sVV5G/hA/ZYx0d8yVvCnRhbhdCA/0i+rYlh2Kw7puYIBs5awvcdyCN9trEOmF22Qu pjkYcrOaTmpPoptDaFDGI5VHOWiPtEf5a1m5/gwQzrTcqJQwoBrBw348kSh2SFL9mz11 1dJmUYN/t7D5Bc2WFI1N5hBxzoKJkRIN7+dBqjm7fTY9ZM/nWC20//4YuxX0IMD3Gnk6 JDbMZgtaP2b+4dvU1Vng5nGRTWpVGxd69q6twqftIt32bAfoh8TVYvd1F07xsfpE34Hb cCIg== 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=Nytjyd97V7nibdyJjfrhGG/2AIH00/JlriYdguPAV0k=; b=bz0xu5U24hd7WQFOLcVDzywzx24JIPZX1ulVvw3wFvZ2j2Pit5OUpRduQPp05u0fe6 ddKoMyNeASdjdvDtrdRyt97IvmVoJZP7jeAWLd2veOF1XJY1C+zLRepjblAVqhNeHgC/ /5GI8RWDwQjpOQ9xH3RzSeetfsy0BdZ4+3g2Mav46lK69e9Y59M1kjK+hHSx6Q1ifBj3 YpOQ43pue/dtBhlZCkcdAv3AUP9Tn+b3VTUrX1g1d6JCb0+Enc2wg5k3nAVqhxw71Tuu KmUZcoPpXNN/M6IS2odnmgCVt5Zq7elQP+qz96ie5Xo5LGEg4AwO7cKbIIMky9raRsB2 EiMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=LPER5UJ9; 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 v11si15816741plp.85.2019.01.22.06.55.37; Tue, 22 Jan 2019 06:55:53 -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=LPER5UJ9; 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 S1728949AbfAVOxe (ORCPT + 99 others); Tue, 22 Jan 2019 09:53:34 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:57552 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728318AbfAVOxd (ORCPT ); Tue, 22 Jan 2019 09:53:33 -0500 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id AA5385C0072; Tue, 22 Jan 2019 15:53:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1548168810; 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=Nytjyd97V7nibdyJjfrhGG/2AIH00/JlriYdguPAV0k=; b=LPER5UJ9+o9iBGvtBzI8MZs4uRP7lWt46+LJkd0UMOBYlqeecg7Ema68jaVflyy7CyV+Et 293idn9DGDUbL8BFK9fv1nxtrgfsnB4pG0E6EG7fNkhyD3tNZ7gfwxtwfwItcNJKVEGL8H 6QasopEa2gUzHCwx/ZVJmRnO+6MK+sY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Tue, 22 Jan 2019 15:53:30 +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 , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Pengutronix Kernel Team , Mark Rutland , NXP Linux Team Subject: Re: [PATCH 1/2] ARM: dts: Add stmpe-adc DT node to Toradex iMX6 modules In-Reply-To: <20190122132135.5012-2-dev@pschenker.ch> References: <20190122132135.5012-1-dev@pschenker.ch> <20190122132135.5012-2-dev@pschenker.ch> Message-ID: <959c74d19959e0cf2261df7f3deaf536@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 iMX6 modules > > Signed-off-by: Philippe Schenker Reviewed-by: Stefan Agner > --- > > arch/arm/boot/dts/imx6qdl-apalis.dtsi | 22 ++++++++++++++-------- > arch/arm/boot/dts/imx6qdl-colibri.dtsi | 22 ++++++++++++++-------- > 2 files changed, 28 insertions(+), 16 deletions(-) > > diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi > b/arch/arm/boot/dts/imx6qdl-apalis.dtsi > index 8380f1b26826..e8c7ef7e078a 100644 > --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi > @@ -332,11 +332,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 */ > @@ -346,17 +352,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/imx6qdl-colibri.dtsi > b/arch/arm/boot/dts/imx6qdl-colibri.dtsi > index 87e15e7cb32b..eb8603a2444e 100644 > --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi > @@ -262,11 +262,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 */ > @@ -276,17 +282,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>; > + }; > }; > };