From patchwork Mon Feb 22 22:58:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 8384941 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 3A246C0553 for ; Mon, 22 Feb 2016 22:58:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B93E20627 for ; Mon, 22 Feb 2016 22:58:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 78ED52061C for ; Mon, 22 Feb 2016 22:58:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756114AbcBVW6W (ORCPT ); Mon, 22 Feb 2016 17:58:22 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:34756 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755984AbcBVW6V (ORCPT ); Mon, 22 Feb 2016 17:58:21 -0500 Received: by mail-io0-f177.google.com with SMTP id 9so196199720iom.1 for ; Mon, 22 Feb 2016 14:58:20 -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=dSGbFVrHqVj3QJQlkbQ9ngb62MSYYrEZEVgOMWJuGqo=; b=upkTj8vxeWC1ghmYZviYYU/uMzTa0tdvv8avPZoASMkFU+UzHK4Y9v2xGGpIMFXyGO Mn3TBvjXrvyf1d9pYwd9UV32lcnMQ1Dse2PDSAP7s/P09G8XfK+H7F4Xt+OE7rfFJuJQ mbCyMZFpoEF5B+L1gd9yaIhJlDCvcXImCINdAkbw230W8tlFbL7YfZZih9mxfDoNrcRw hmpcm+xFlN7SyD914qmJbVpFQvAEzrQTDX71gHgiySOSxrwNpNbadd1zdCPG9plf/Lge UyW71ba1Ln5V6Be8pBnRX4aL101iufStQifEHSSVymzB7zM8aAllGp2dd1E2F7iNmwa0 EXgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dSGbFVrHqVj3QJQlkbQ9ngb62MSYYrEZEVgOMWJuGqo=; b=RVOmpRCCV0k3ha2JNjFkBIT3zHFIITw/jsrEtRQ14idSnsj6IF6P83uMALJoNN1WW2 I2+Bd5J0DXcFp2HtWfc60o6KYtDo/OPGlG8KWVTNCo8lrsB+a3f2OhGO/CL5dvCELD6l toa+0YJj56HMS3677EIhnRWRtMfTjZLFjXIFH4fFUGZJjqvHLJnZiq4tGIm93iXb+YpV IgLhIC7NgR62J5g1wFxySPr9s35VPOiJcf0/hnk4Co+Rd2dcgyBucVQSM3rKuhtRiV0M xn2YGSd/1LK0ESPDjlJqG6R7iGm/SddtzZCduLOE4Vm+1+6Du1Q2CE7ZYqe+OYWk66xo Ejiw== X-Gm-Message-State: AG10YOQSqYBk7q5ITjJpNLRD+yjoicM5jd1yuy72P92vh4LqEACthwKNukLe7WrAP2vrlQ== X-Received: by 10.107.170.140 with SMTP id g12mr35648044ioj.44.1456181900537; Mon, 22 Feb 2016 14:58:20 -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 l94sm12302750iod.13.2016.02.22.14.58.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 14:58:19 -0800 (PST) From: Adam Ford To: linux-omap@vger.kernel.org Cc: tony@atomide.com, adam.ford@logicpd.com, Adam Ford Subject: [PATCH] OMAP3: LOGICPD-SOM-LV: Enable touchscreen support Date: Mon, 22 Feb 2016 16:58:12 -0600 Message-Id: <1456181892-3567-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 DM37xx SOM-LV has a TSC2004 Touchscreen controller integrated into the module on the I2C3 bus. Signed-off-by: Adam Ford --- arch/arm/boot/dts/logicpd-som-lv.dtsi | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/logicpd-som-lv.dtsi b/arch/arm/boot/dts/logicpd-som-lv.dtsi index 365f39f..79cfdae 100644 --- a/arch/arm/boot/dts/logicpd-som-lv.dtsi +++ b/arch/arm/boot/dts/logicpd-som-lv.dtsi @@ -211,7 +211,11 @@ >; }; - + tsc2004_pins: pinmux_tsc2004_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE4) /* mcbsp4_dr.gpio_153 */ + >; + }; }; &omap3_pmx_wkup { @@ -239,6 +243,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>; + }; +}; + &uart2 { interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>; pinctrl-names = "default";