From patchwork Sun Dec 20 15:26:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 7892221 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 20FCD9F349 for ; Sun, 20 Dec 2015 15:26:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CB712042B for ; Sun, 20 Dec 2015 15:26:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5F092203E1 for ; Sun, 20 Dec 2015 15:26:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752679AbbLTP0f (ORCPT ); Sun, 20 Dec 2015 10:26:35 -0500 Received: from mail-io0-f174.google.com ([209.85.223.174]:36560 "EHLO mail-io0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752063AbbLTP0e (ORCPT ); Sun, 20 Dec 2015 10:26:34 -0500 Received: by mail-io0-f174.google.com with SMTP id o67so133401563iof.3 for ; Sun, 20 Dec 2015 07:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=fkwFjocr7RIpZ4lHOf5y/WsIUmLKnS9T3FYbaFHYi3A=; b=naO8DYBEgS97UzyhfDJvtE7aZjkEiWeM89gwo0YTj2wZAjqVfdiz+IPmp5v3yIyHkU /TvKEaNPwzooav5VBXaHVRC7vmnUYpyLkT2+PmE1fJOv4A5/BcRZ2p6Xjtn6wrX6vgSi JaaraJw3bQ8JatzEz6XgVXGMnc1DInh7/oT5y58DpjaoTXilMjZWIZuwexzoC1+Jk7DP ZL7DV2qqRwsBHg666HhbvwP6aLVNE2yIpl8oeBk2dNr/SZOjoumsnu6cRcnPtRFg0eZH CydYidYRPpW468CDq/Jb9MIdkeJiaBE/Jpxv3ez0ouQGph6VYPKc3k8w8jL7rvHCiJDE Pb+w== X-Received: by 10.107.132.15 with SMTP id g15mr17077776iod.56.1450625194040; Sun, 20 Dec 2015 07:26:34 -0800 (PST) Received: from localhost.localdomain (c-76-113-128-183.hsd1.mn.comcast.net. [76.113.128.183]) by smtp.gmail.com with ESMTPSA id 7sm6951006igr.0.2015.12.20.07.26.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Dec 2015 07:26:33 -0800 (PST) From: Adam Ford To: linux-omap@vger.kernel.org Cc: adam.ford@logicpd.com, tony@atomide.com, Adam Ford Subject: [PATCH] ARM: OMAP2+: LogicPD Torpedo: Add Touchscreen Support Date: Sun, 20 Dec 2015 09:26:15 -0600 Message-Id: <1450625175-28635-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 1.9.1 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.8 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=ham 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 The development kit uses a TSC2004 chip attached to I2C3. Signed-off-by: Adam Ford --- arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts index 6854bda..fb13f18 100644 --- a/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts +++ b/arch/arm/boot/dts/logicpd-torpedo-37xx-devkit.dts @@ -204,6 +204,12 @@ >; }; + tsc2004_pins: pinmux_tsc2004_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE4) /* mcbsp4_dr.gpio_153 */ + >; + }; + backlight_pins: pinmux_backlight_pins { pinctrl-single,pins = < OMAP3_CORE1_IOPAD(0x20B8, PIN_OUTPUT | MUX_MODE4) /* gpmc_ncs5.gpio_56 */ @@ -262,6 +268,27 @@ }; }; +&i2c3 { + touchscreen: tsc2004@48 { + compatible = "ti,tsc2004"; + reg = <0x48>; + vio-supply = <&vaux1>; + pinctrl-names = "default"; + pinctrl-0 = <&tsc2004_pins>; + interrupts-extended = <&gpio5 25 IRQ_TYPE_EDGE_RISING>; /* gpio 153 */ + + touchscreen-fuzz-x = <4>; + touchscreen-fuzz-y = <7>; + touchscreen-fuzz-pressure = <2>; + touchscreen-size-x = <4096>; + touchscreen-size-y = <4096>; + touchscreen-max-pressure = <2048>; + + ti,x-plate-ohms = <280>; + ti,esd-recovery-timeout-ms = <8000>; + }; +}; + &uart1 { interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>; };