Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7391367imu; Tue, 22 Jan 2019 05:23:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5TSUie53akuzx8g+BDWBEgx0bnKTMY5JVcFG6ysxV23nRN11Dc22SrFvl4+1ssyjwwOFd9 X-Received: by 2002:a63:3703:: with SMTP id e3mr31546857pga.348.1548163415274; Tue, 22 Jan 2019 05:23:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548163415; cv=none; d=google.com; s=arc-20160816; b=C8vU0RDE8JKNj8ggfT6tFwhR+h3eQb04EVnTCHFWS+qdyWI3XLPSRgxL+KdhCNbjRB S5JeHDS4jwmFmbT8zEs7DI3ZHIdT7Bobza6FXAWNdX/VTrWaUU7BKUX/EdACSGPMTjDh vuxB5ODySE8AQT9wA43gHf4WS43OJATJz10D2W33c45sMiB87ui7DsmBRKbtdD/1S8PV rlJVM4KP2xEKVpymNXQnSp1XqUkPpq6oKbIX7wPregt5BWn+VlnQCosXd+VPKG5KftyV jnDiLhqvhCR3jYJB96vefA5nMgerWeTaRKyQ4DHHvYISz70IGiUYGM4KKUp67QG9wyly jC5A== 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=7lwRGNTxGouuwCzxbom3FhcP32KWE8m3ZQO6+p4hSFk=; b=D+wHkjE5TwwTV9lTAqcOcO4nOIYF7qZuagJ/9NaocZ6zPAzlKyTh/2kUQ7cVdSNFhv JWsEvwuRJcG4Ye8Rq7sO1/eeRJKieVTn9Dqggya/kbN5yHqJ969QEGn4h3vP1rLuumID 5qddbTGRWyNAkN8Ao/vYSK45Kn7PKBo6dpTdIyrIoCNNTSD/NFSqleKZVbmGxCWjlh/R pZxVxkotFM5l96/lguurezMC6efzzWZHFCHrXkVAuJC0hUwt0vatLW0fz5xwS/msrvvW WkIiUymMT7etgATgllQT6AHVLG9995I/2BO8o0quVNkV92agCIKyozMR/z6fQhWPGPl1 N4LQ== 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 x18si14497059pfm.39.2019.01.22.05.23.18; Tue, 22 Jan 2019 05:23:35 -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 S1728622AbfAVNWA (ORCPT + 99 others); Tue, 22 Jan 2019 08:22:00 -0500 Received: from mxout017.mail.hostpoint.ch ([217.26.49.177]:59197 "EHLO mxout017.mail.hostpoint.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728215AbfAVNV4 (ORCPT ); Tue, 22 Jan 2019 08:21:56 -0500 Received: from [10.0.2.45] (helo=asmtp012.mail.hostpoint.ch) by mxout017.mail.hostpoint.ch with esmtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1glvzx-000IW6-Hg; Tue, 22 Jan 2019 14:21:49 +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-DC; Tue, 22 Jan 2019 14:21:49 +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 , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Pengutronix Kernel Team , Mark Rutland , NXP Linux Team Subject: [PATCH 1/2] ARM: dts: Add stmpe-adc DT node to Toradex iMX6 modules Date: Tue, 22 Jan 2019 14:21:34 +0100 Message-Id: <20190122132135.5012-2-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 iMX6 modules Signed-off-by: Philippe Schenker --- 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>; + }; }; }; -- 2.20.1