Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1252431imu; Fri, 21 Dec 2018 15:54:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN4NN7m4BgbW5JLFMQmls488T/EbZe0X912iIgAI3gLcmDjSIuM0ErEkxiLXEv9ODCGNFk7g X-Received: by 2002:a63:d34a:: with SMTP id u10mr4350451pgi.301.1545436471999; Fri, 21 Dec 2018 15:54:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545436471; cv=none; d=google.com; s=arc-20160816; b=K/qULewfdP1assLw5woLcp+BRe3orn6wznjPgSjLKQZIRkaWUsmiXG51keDfrqa5Y/ w9SAJF4dj4cjhzKNFzt2YEPSooJvZpCaUvvq7fQF0NnflLL7kGiLg4MCc6+VD3II25m0 o7red1FABP866b++78nkvyvud4OdlwEI6y0MpIYpZvrlZI77t3yt0XnC0dAuiKKUEF3y A1Jw+FqKzBUyxQ+bt23ZM8aFCkBZhhCy0596I+Bteu0YyhvpEBnP43zqj+DlMXoIpKr8 c5O8Wjz8UnYpuMfTVSLSAgPpBp7EfopGm2LHu0E6R0et1QKJW/fboCakBv+biCduwEiL /6ng== 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=itYdJQOkQZFG/Vxq+rxSHZnavDVc1+ZP/qAUmQUseWw=; b=h6TjhiYmkELGzFLiGKE2RmuVGymJ201hHBktu0Arn7qDDeJh3MKnpPtfbHd2KNqAMn 2ifuCknH2mT0uiIwnaYsTgXVsRTTltLII9j7DKPKw2ZOfYszA57EYaJzCCBaO+pO69vr gNBDaOZmg1lbyH6ODEU9iTWWHNYxmtUpBNJHJgMrSGhMzx+j2dokJWLv0Ay2xTJfGQ6L KAxta91zzyDbSBUEQLYVoj26tPGaCTAjbdFwXWzdo26ztJX4bTwYgb/1sLR/DhJv8KSC 3XkHUMwdpEJBM+B9+Z+PIQz0xzgS2IaqHw/4waPcO6hXdvFlKPMQgtyBdAtT+BwvZ/yQ IJ8A== 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 d3si9275972pll.161.2018.12.21.15.54.13; Fri, 21 Dec 2018 15:54:31 -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 S2390715AbeLUNrC (ORCPT + 99 others); Fri, 21 Dec 2018 08:47:02 -0500 Received: from mxout014.mail.hostpoint.ch ([217.26.49.174]:26966 "EHLO mxout014.mail.hostpoint.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388870AbeLUNrA (ORCPT ); Fri, 21 Dec 2018 08:47:00 -0500 Received: from [10.0.2.46] (helo=asmtp013.mail.hostpoint.ch) by mxout014.mail.hostpoint.ch with esmtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gaL8h-000ECt-7P; Fri, 21 Dec 2018 14:46:55 +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 1gaL8h-000BCi-1w; Fri, 21 Dec 2018 14:46:55 +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 , devicetree@vger.kernel.org, Jonathan Hunter , linux-kernel@vger.kernel.org, Rob Herring , linux-tegra@vger.kernel.org, Mark Rutland Subject: [PATCH v5 8/8] ARM: dts: Add stmpe-adc DT node to Toradex T30 modules Date: Fri, 21 Dec 2018 14:46:37 +0100 Message-Id: <20181221134638.20600-9-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 T30 modules Signed-off-by: Philippe Schenker --- Changes in v5: None Changes in v4: - New separate commit to hold T30 devicetree changes Changes in v3: None Changes in v2: None arch/arm/boot/dts/tegra30-apalis.dtsi | 22 ++++++++++++++-------- arch/arm/boot/dts/tegra30-colibri.dtsi | 22 ++++++++++++++-------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/arch/arm/boot/dts/tegra30-apalis.dtsi b/arch/arm/boot/dts/tegra30-apalis.dtsi index 7f112f192fe9..850b0d13549a 100644 --- a/arch/arm/boot/dts/tegra30-apalis.dtsi +++ b/arch/arm/boot/dts/tegra30-apalis.dtsi @@ -976,11 +976,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 */ @@ -990,17 +997,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/tegra30-colibri.dtsi b/arch/arm/boot/dts/tegra30-colibri.dtsi index 35af03ca9e90..1f9198bb24ff 100644 --- a/arch/arm/boot/dts/tegra30-colibri.dtsi +++ b/arch/arm/boot/dts/tegra30-colibri.dtsi @@ -845,11 +845,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 */ @@ -859,17 +866,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>; + }; }; /* -- 2.19.2