Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1161180imu; Fri, 21 Dec 2018 13:48:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN4JRVQDNSsgzReiJ4lZPYWRCSfzIuwhJuJsspzB+Sh7aByY0BanEOqs+8YNzqdJ0po7M5en X-Received: by 2002:a17:902:9f89:: with SMTP id g9mr4247537plq.214.1545428912534; Fri, 21 Dec 2018 13:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545428912; cv=none; d=google.com; s=arc-20160816; b=0YqC5Cp9jxMwlK+9GpebpZxQFSKOSJHsNkh9HXdxKnGmzJE/aPNuQ82W6D+hQQ6RPm OQYQtCv6ZH7oQrao8hhnYEQOM7UApNx5sDuhjZLXq8dLR0GkDVetlLzUwnC4vnNzwhPH 8c8BO4Q0JybQLZHHVDrFBH1BCGrRICL2QAOvNkoXJjpmls4XBQCUd5OQjRjy2ve0lKWW 5z7IQ4HAJ9tDA8X00wnzzAuVTOKHf+zlvVAQCCI6yEUVxS8M3u3Uj8O5X+xs8U3h4+Ru nFiVEulQJ6Hbxs3ZANTzrwvSDNoQ0zajtctGYcExyl+E1uh+sgOEwBXUFi/91F18a/J1 z+sw== 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=YlethJdp+qQM82GrfVxpnzZya4WrX8Bt6mCJtTyM01s=; b=S8UoftCC7OzvSYajf4JhPLsGDHsanx2vt2WNXhNohLUO9hH4KOjez9+Th4XK8Aqfhc inog5BRKoT8zwwuw7tD0Oa7+vlzi9BzH2Lst+ZenrgflrKzNmXGANOUd5bLwYToqorkc 9Sk4yYRLrPgBf6wjY/S7V4PF9UvIVpyjuDWh7WDTxfMFBfsAKH64HX/L52LjdFD8ulj4 kKwKCCYTr96U5nqnWuI1S6UOgEokP8DbvaAGoU973OPbZYZZmEVcuaIfXANXUfZYr+32 +8nvFJeeI/NcPiZQ10Txp/j6i6Ika1fwP+FJVDiMxh4GmsEXgPj6gX4R7Sp68MF6l/wO 0QwQ== 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 t9si693785plq.337.2018.12.21.13.48.17; Fri, 21 Dec 2018 13:48:32 -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 S2390744AbeLUNrF (ORCPT + 99 others); Fri, 21 Dec 2018 08:47:05 -0500 Received: from mxout017.mail.hostpoint.ch ([217.26.49.177]:60075 "EHLO mxout017.mail.hostpoint.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732954AbeLUNq7 (ORCPT ); Fri, 21 Dec 2018 08:46:59 -0500 Received: from [10.0.2.46] (helo=asmtp013.mail.hostpoint.ch) by mxout017.mail.hostpoint.ch with esmtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gaL8g-0005bs-KB; Fri, 21 Dec 2018 14:46:54 +0100 Received: from [46.140.72.82] (helo=philippe-pc.toradex.int) by asmtp013.mail.hostpoint.ch with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gaL8g-000BCi-E0; Fri, 21 Dec 2018 14:46:54 +0100 X-Authenticated-Sender-Id: dev@pschenker.ch From: Philippe Schenker To: jic23@kernel.org, marcel.ziswiler@toradex.com, stefan@agner.ch Cc: robh@kernel.org, alexandre.torgue@st.com, shawnguo@kernel.org, dmitry.torokhov@gmail.com, thierry.reding@gmail.com, digetx@gmail.com, lee.jones@linaro.org, coquelin.stm32@gmail.com, Philippe Schenker , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Pengutronix Kernel Team , Mark Rutland , Sascha Hauer , NXP Linux Team Subject: [PATCH v5 7/8] ARM: dts: Add stmpe-adc DT node to Toradex iMX6 modules Date: Fri, 21 Dec 2018 14:46:36 +0100 Message-Id: <20181221134638.20600-8-dev@pschenker.ch> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181221134638.20600-1-dev@pschenker.ch> References: <20181221134638.20600-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 --- Changes in v5: None Changes in v4: - Moved T30 devicetree settings to separate commit Changes in v3: - None Changes in v2: - Put common ADC settings in mfd arch/arm/boot/dts/imx6qdl-apalis.dtsi | 22 ++++++++++++++-------- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 23 +++++++++++++++-------- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 3dc99dd8dde1..8db476d8978d 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -331,11 +331,18 @@ 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>; + /* forbid to use ADC channels 3-0 (touch) */ 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 */ @@ -345,17 +352,16 @@ * 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"; + st,norequest-mask = <0x0F>; + }; }; }; diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 87e15e7cb32b..2e303d79c7f8 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -262,11 +262,18 @@ 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>; + /* forbid to use ADC channels 3-0 (touch) */ 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 +283,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"; + /* 3.25 MHz ADC clock speed */ + st,norequest-mask = <0x0F>; + }; }; }; -- 2.19.2