From patchwork Wed Mar 28 15:51:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10313521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B816C60467 for ; Wed, 28 Mar 2018 15:51:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7D8F28BFA for ; Wed, 28 Mar 2018 15:51:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C3C1299DD; Wed, 28 Mar 2018 15:51:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD46928BFA for ; Wed, 28 Mar 2018 15:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753838AbeC1Pvr (ORCPT ); Wed, 28 Mar 2018 11:51:47 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:43411 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753816AbeC1Pvr (ORCPT ); Wed, 28 Mar 2018 11:51:47 -0400 Received: by mail-io0-f195.google.com with SMTP id q84so4082612iod.10 for ; Wed, 28 Mar 2018 08:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ry7leDkqkMElBHFVuNR5nTa3spsIoQKN4TDSd1/TCE0=; b=mUYgUPocdgu/2p0xA8VvGiBaJpfHFXvp9accKv5+Z1JsBADQ4kIH/QBAz+XpPAhQ3b EZizHV+rBVEYQ60G6T2x/jLJfpUidSiowf3m/8Q0qQVcs1lg05XFHG/Xem3KmJc9wInU +oomDcFf/ko9a1/gXirIUBPWQYQocywRx+SIoDDkrLeFter/stfOYaPq4zW3Ezd6IlYC Kgn1SmAcC39Bj2BtxS3BqUcvOGuza0DsVdr1P4FcWqX0/ZAUR509vC0ddWeq1uyr43KP taHCLMqK4elBQ6OgqBgQVKR2Lz7+cRg6j/xnzvWYpXGkOu9nnr0E87Y1ln3G8Ig/UQmR L62w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ry7leDkqkMElBHFVuNR5nTa3spsIoQKN4TDSd1/TCE0=; b=JMsJ1/dVwPljVd1ovP8bUNPTYGS4CytUoZ6jZ9knspdRlpFplAGaEix4vOZrwAFRpe TKZR5IUOf+AwAbWXUKOj/2gyAj3xbNZ3O0jOWmL+0o3hOIFcuVUwBCPiE/u3pziTF5+c fObhe3s+QubPFK4HDPS7hfjrPv2fJNrl3Ot7K6SQrbwumCCOp+zzp5Pv0J/WLoXi6AUH NUy3u4L/Ld0sA+NY/QXvM/zz8hlgtaVIN9CwQc/1q1kekSOKP+La7V5lMn5tfFmTwiP2 2/s1cUenVM7FrxVQJiJG9Tcrc7BH4NbGA43BgI1LpgLXLLV8GKYQ44dBiWWPYa1KYPuZ s4QQ== X-Gm-Message-State: AElRT7HxDXULhAMdN7v7PO1RWrqdWCduDCBbpYz9BzRe2SznVZK9J/JM RJ6k6mKeMq3a/N8sKie2pByU1w== X-Google-Smtp-Source: AIpwx48YA8A0VR9VfHryBLFTFnp5yv28+PhHwHQGgf2fEYEkofJFg3umyVcObaxk0CCAlWYhhprmzA== X-Received: by 10.107.178.14 with SMTP id b14mr16936803iof.294.1522252305908; Wed, 28 Mar 2018 08:51:45 -0700 (PDT) Received: from aford-OptiPlex-7050.logicpd.com ([174.46.170.158]) by smtp.gmail.com with ESMTPSA id o75-v6sm3014185ito.15.2018.03.28.08.51.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Mar 2018 08:51:45 -0700 (PDT) From: Adam Ford To: linux-omap@vger.kernel.org Cc: Adam Ford Subject: [PATCH] ARM: dts: logicpd-som-lv: Enable Touchscreen controller Date: Wed, 28 Mar 2018 10:51:35 -0500 Message-Id: <1522252295-17512-1-git-send-email-aford173@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The OMAP35 and DM3730 SOM-LV contains a TSC2004 touch screen controller connected to I2C3. This patch adds support for this controller. Signed-off-by: Adam Ford diff --git a/arch/arm/boot/dts/logicpd-som-lv.dtsi b/arch/arm/boot/dts/logicpd-som-lv.dtsi index a30ee9f..624f817 100644 --- a/arch/arm/boot/dts/logicpd-som-lv.dtsi +++ b/arch/arm/boot/dts/logicpd-som-lv.dtsi @@ -93,6 +93,25 @@ &i2c3 { clock-frequency = <400000>; + + 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>; + }; }; &mmc3 { @@ -197,6 +216,12 @@ OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */ >; }; + + tsc2004_pins: pinmux_tsc2004_pins { + pinctrl-single,pins = < + OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE4) /* mcbsp4_dr.gpio_153 */ + >; + }; }; &omap3_pmx_wkup {