From patchwork Tue Aug 4 20:53:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthoine Bourgeois X-Patchwork-Id: 6944111 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A01AF9F373 for ; Tue, 4 Aug 2015 20:52:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA0C820414 for ; Tue, 4 Aug 2015 20:52:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EC589203E3 for ; Tue, 4 Aug 2015 20:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754147AbbHDUvx (ORCPT ); Tue, 4 Aug 2015 16:51:53 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:38602 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753880AbbHDUvu (ORCPT ); Tue, 4 Aug 2015 16:51:50 -0400 Received: by wibxm9 with SMTP id xm9so39702245wib.1 for ; Tue, 04 Aug 2015 13:51:49 -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=phkttSasgcMcR3fgb48lRshxJM6qSds3gfvXdidpWXI=; b=MgOp2SSNnvHcnHD+g2PvrjrQA14SCrsVap53l1vvXT/nLTsQ8ypaqBXbOk3gFVLY/G P9V6mC6ElG9Y1Tl1EYoZRyLEURgJtXPq34+uBD4NAibb7ipLJQ8EVngjdJ5rnUCAPALi yjI7Or4AY6awE3XE3BtK46t10HQ/uPuSBS4b6fnvc+UnIBjmmmvXGpo9bJPWDT2Sq4y3 LoSJUmgdg6NN0DKu3dpOK1Z7rCK7Pn59yBtDD4rVzMjPvYaeOadf/mne1bzkYDUJVZcn GsQC1BY0M7lKgOviU4sJKbc3i+pRKw3ntJvX85Z18opXVT750pky52sWlTeWYLBA3Kkc Dzvg== X-Received: by 10.180.37.33 with SMTP id v1mr12029902wij.88.1438721509531; Tue, 04 Aug 2015 13:51:49 -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 fs8sm697631wjb.7.2015.08.04.13.51.48 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 04 Aug 2015 13:51:49 -0700 (PDT) From: Anthoine Bourgeois To: linux-omap@vger.kernel.org, Tony Lindgren , Benoit Cousson , Anil Kumar Cc: Anthoine Bourgeois Subject: [PATCH 7/7] ARM: dts: omap3-devkit8000: Add ADS7846 Touchscreen support Date: Tue, 4 Aug 2015 22:53:32 +0200 Message-Id: <1438721612-7529-8-git-send-email-anthoine.bourgeois@gmail.com> X-Mailer: git-send-email 2.4.6 In-Reply-To: <1438721612-7529-1-git-send-email-anthoine.bourgeois@gmail.com> References: <1438721612-7529-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. --- 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; + }; +};