Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1827137imu; Wed, 12 Dec 2018 05:08:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WBcCDLNMs/v461luLLtEFVUx6W3OuSAxxvSeSff1c8t66+P0V0uRqWTyZ+n6rIQoA6XU5L X-Received: by 2002:a17:902:3064:: with SMTP id u91mr19428194plb.325.1544620129964; Wed, 12 Dec 2018 05:08:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544620129; cv=none; d=google.com; s=arc-20160816; b=yNWFVH3+Jfii9OAeneWeDHOYSe40G/jWCcbOH8E9UJy8dphNLAy+aM5VD90rCbUNGB iOxcn30qLB9/pSo5mUlteLFz1MpnKZZN/Nu+bKXdsKplnmewrSQMBhj22FuGZWXpsN1i Wbt9gmwk4iJK3djlZPk1mtw+H9zN5Pww0lgxpxrA8W6FvIWzDIgijyRayrcxXuZJyna5 Rk6/icIgBxcaVQxwY+k029y/0sOcMMdno4ka4y/D6zwO6m8jZ8ZqsdkSL+n478Qqfx0n 33iGoWkqS8vwFPtyfJi+his3EQhZNoV/wtnTviyN6KQx53nMPxEuqKTzNnwGxBKW6xJ/ 8CPQ== 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=4V73TpTj7PI2WjH/JD7O6hD7lGu0B5S/XlKX0XJFNjg=; b=fj5l+1qrt3tyOWHarSvS8oi/xop9pGNWHFCTgAmfoQYjGKGFm7H6fTuOtBXnADeoFP EUxGGLMRFT9MNsw6iN6dOzX11De1RNIXRhjqXXVmV8L22MMBgt5LF8wybZymiBiNRrkw m4G92ULI6PbC+yQcU6NMJ4UaKLONFpY0AG1K/i5I9idxFGAfLKtSNsfwAfhrBj2Md6gV +UAVr7YsLR6dKNaB+YF+7ccMXOnEXzpXH7nfIZxyZ9MP57eLCxnkBaEw3i/zpMbsYqKq vM2IYLV5CuYI9wkOOCeOUiMTCu/kx6JzFF6NqULvuA5UV0dAXCd9IZFPZHNV8mQJNnaS lNLg== 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 u5si14626209pgi.146.2018.12.12.05.08.34; Wed, 12 Dec 2018 05:08:49 -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 S1727563AbeLLNHP (ORCPT + 99 others); Wed, 12 Dec 2018 08:07:15 -0500 Received: from mxout014.mail.hostpoint.ch ([217.26.49.174]:64771 "EHLO mxout014.mail.hostpoint.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727534AbeLLNHM (ORCPT ); Wed, 12 Dec 2018 08:07:12 -0500 Received: from [10.0.2.45] (helo=asmtp012.mail.hostpoint.ch) by mxout014.mail.hostpoint.ch with esmtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gX4EB-000Las-Mm; Wed, 12 Dec 2018 14:07:03 +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 1gX4EB-000IXM-FI; Wed, 12 Dec 2018 14:07:03 +0100 X-Authenticated-Sender-Id: dev@pschenker.ch From: Philippe Schenker To: jic23@kernel.org, marcel.ziswiler@toradex.com, stefan@agner.ch Cc: thierry.reding@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 , Shawn Guo , NXP Linux Team Subject: [PATCH v4 7/8] ARM: dts: Add stmpe-adc DT node to Toradex iMX6 modules Date: Wed, 12 Dec 2018 14:06:48 +0100 Message-Id: <20181212130649.15146-7-dev@pschenker.ch> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181212130649.15146-1-dev@pschenker.ch> References: <20181212130649.15146-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 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