From patchwork Wed Aug 5 21:47:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthoine Bourgeois X-Patchwork-Id: 6953271 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F3E31C05AC for ; Wed, 5 Aug 2015 21:45:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 30E3E20602 for ; Wed, 5 Aug 2015 21:45:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 454CA20607 for ; Wed, 5 Aug 2015 21:45:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753867AbbHEVph (ORCPT ); Wed, 5 Aug 2015 17:45:37 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:34497 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753846AbbHEVpc (ORCPT ); Wed, 5 Aug 2015 17:45:32 -0400 Received: by wicne3 with SMTP id ne3so21367109wic.1 for ; Wed, 05 Aug 2015 14:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2VhfTtDLf0ym7zaZm/QVOCjo/pQhx9EeO2+m+ns638g=; b=Bs3anaKxbDbPW6WYm7z8XeAtvzBI6hvGa54+b7uVwYkHY/Z8iqOx66p5FD1LO/otN8 Umv8EY6fcz0oWmwmu64+b9fv4PfYCDUg0wGS5sAmT4x9i0oyEe2itML6owFKEmHq6vnP 2pji9JJ56CDsAEfXiNLBtdGsrUNryf+xUYln3E6NgAekjCAnLOSv2B97tHc+aBP0HlNd 6SR9THPpY7REvP8VexiH8CwIm8m5vHn4SxcS61OAfM62BaeypWBMTSjts9Kpi9gA5y/k h1Z7o47Rb5LRfoqRZfU5DImE3tC1XTGkIEd+twY7w5ab8UjYxL3G+QSUCrjb5UsqLJGl 27Aw== X-Received: by 10.180.107.70 with SMTP id ha6mr202691wib.20.1438811131501; Wed, 05 Aug 2015 14:45:31 -0700 (PDT) Received: from localhost.localdomain (cvl92-3-82-247-219-120.fbx.proxad.net. [82.247.219.120]) by smtp.gmail.com with ESMTPSA id hn2sm6021918wjc.45.2015.08.05.14.45.30 (version=TLS1_2 cipher=AES128-SHA256 bits=128/128); Wed, 05 Aug 2015 14:45:30 -0700 (PDT) From: Anthoine Bourgeois To: linux-omap@vger.kernel.org, Tony Lindgren , Benoit Cousson , Anil Kumar Cc: Anthoine Bourgeois Subject: [PATCH v2 2/2] ARM: dts: omap3-devkit8000: Add ADS7846 Touchscreen support Date: Wed, 5 Aug 2015 23:47:09 +0200 Message-Id: <1438811229-14174-2-git-send-email-anthoine.bourgeois@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1438811229-14174-1-git-send-email-anthoine.bourgeois@gmail.com> References: <1438811229-14174-1-git-send-email-anthoine.bourgeois@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch is the touchscreen part for LCD screens sold with devkit8000 board. Changes since v1: - rebase on omap-for-v4.3/dt Signed-off-by: Anthoine Bourgeois --- arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi b/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi index 332766d..e84184d 100644 --- a/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi +++ b/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi @@ -36,3 +36,38 @@ }; }; }; + +&vio { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + +&mcspi2 { + + /* touch controller */ + ads7846@0 { + compatible = "ti,ads7846"; + vcc-supply = <&vio>; + + reg = <0>; /* CS0 */ + spi-max-frequency = <1500000>; + + interrupt-parent = <&gpio1>; + interrupts = <27 0>; /* gpio_27 */ + pendown-gpio = <&gpio1 27 0>; + + ti,x-min = /bits/ 16 <0x0>; + ti,x-max = /bits/ 16 <0x0fff>; + ti,y-min = /bits/ 16 <0x0>; + ti,y-max = /bits/ 16 <0x0fff>; + ti,x-plate-ohms = /bits/ 16 <180>; + ti,pressure-max = /bits/ 16 <255>; + ti,debounce-max = /bits/ 16 <10>; + ti,debounce-tol = /bits/ 16 <5>; + ti,debounce-rep = /bits/ 16 <1>; + ti,keep-vref-on = <1>; + ti,settle-delay-usec = /bits/ 16 <150>; + + linux,wakeup; + }; +};