From patchwork Wed Mar 22 17:48:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9639715 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 843DA601E9 for ; Wed, 22 Mar 2017 17:52:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6438127F81 for ; Wed, 22 Mar 2017 17:52:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5793B25EA6; Wed, 22 Mar 2017 17:52:04 +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=0.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C828725EA6 for ; Wed, 22 Mar 2017 17:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=k0ho/MJuWSNTmvl31rp6ckbvVn8Aws8I7P8UlXZXAFM=; b=PlfqwwhF4dGdFrvXo0chOD3URx LaNw00tsYfWth8OjcpD1PLeF6znzC7ZjUOaEQ77WtxNtIBhTHRHyLlsq6b0K+DnqUq3toB7KcTH8I gmqlFceNdw/zD4Aqp/bO1+LduzvqQwqVqf5HfDNz++7peWy1qmXk63nBYIIPikKzyGg7iqJjK47HL OgRUvSVPusAPoc+/02tC7KbGhebKetEPLEeQIjvKaXUYzzBe4myjp705e/90/E7osh6KVRzMICISR BgGnrsZR4CgWwFtbHr1msA+df2AOOCb1y8f6zgQGmz/cPmRr45gZcQU6nfpDAT5NpsiZ/6bqfK/Tg searZ03g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqkQQ-0007Ts-42; Wed, 22 Mar 2017 17:51:58 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqkPg-0006b2-KA for linux-arm-kernel@lists.infradead.org; Wed, 22 Mar 2017 17:51:30 +0000 Received: by mail-pg0-f65.google.com with SMTP id 81so23734833pgh.3 for ; Wed, 22 Mar 2017 10:50:52 -0700 (PDT) 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:in-reply-to :references; bh=b82WAv/diExpQak9BdhU6k4FYemZkV9eOwhenqAKqe0=; b=pRk40vXLs6GgSJUA9/lzRUc2BYm96FN4mK4X0B9FtaYNqguKj9FsRreoV7g/GVz9yJ /D4mnsRiphBjpogmj+trU8atv9sKblQvtBS1kZx51dAoA9rFTIyDMHai8C1gzF6nERG7 +YHYzLogbvcZ2PV9YxDrUPnQbxYhogxVl8xoLNRFHju207ZL3+hPdRCKNi9m4kvzSUKF kTkriOcNBFL1+e9iUDnbSv+xfdgPTfL5YS8ANGluCQMvrFibeOHr9+GEia49s+wn/05z Uu3sttoK+QeL2yoqG0ydbh6YOxxnNuS2BqCm+piOzIJ9mfHS+u0mxi7lBW0goRmJEq// BO4w== X-Gm-Message-State: AFeK/H0WxV9pw2MKNuQumty7F9ikD+iHCqbVh66oH6uKL8Mk7TIgDmP4aWXc/rjyBCuOFg== X-Received: by 10.98.192.217 with SMTP id g86mr47033555pfk.170.1490205051875; Wed, 22 Mar 2017 10:50:51 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.36]) by smtp.gmail.com with ESMTPSA id o194sm5234892pfg.66.2017.03.22.10.50.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 10:50:50 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH 05/12] ARM: dts: imx6ul-isiot-common: Add touchscreen node Date: Wed, 22 Mar 2017 23:18:10 +0530 Message-Id: <1490204897-14525-6-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490204897-14525-1-git-send-email-jagan@openedev.com> References: <1490204897-14525-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170322_105112_878087_9E7E5F51 X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Matteo Lisi , linux-kernel@vger.kernel.org, Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jagan Teki Add touchscreen node as i2c1 slave device on Engicam Is.IoT MX6UL modules, the touchscreen controlled 'st,stmpe-ts' connected via i2c with st,stmpe811 mfb interface. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- arch/arm/boot/dts/imx6ul-isiot-common.dtsi | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi index 9660e20..b149b5e 100644 --- a/arch/arm/boot/dts/imx6ul-isiot-common.dtsi +++ b/arch/arm/boot/dts/imx6ul-isiot-common.dtsi @@ -40,6 +40,34 @@ * OTHER DEALINGS IN THE SOFTWARE. */ +&i2c1 { + touch: stmpe811@44 { + compatible = "st,stmpe811"; + reg = <0x44>; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_stmpe_ts>; + interrupt-parent = <&gpio1>; + interrupts = <18 IRQ_TYPE_EDGE_FALLING>; + interrupt-controller; + #interrupt-cells = <2>; + + stmpe_touchscreen { + compatible = "st,stmpe-ts"; + st,sample-time = <4>; + st,mod-12b = <1>; + st,ref-sel = <0>; + st,adc-freq = <1>; + st,ave-ctrl = <1>; + st,touch-det-delay = <2>; + st,settling = <2>; + st,fraction-z = <7>; + st,i-drive = <1>; + }; + }; +}; + &lcdif { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_lcdif_dat @@ -104,4 +132,10 @@ MX6UL_PAD_LCD_DATA17__LCDIF_DATA17 0x79 >; }; + + pinctrl_stmpe_ts: stmpe-tsgrp { + fsl,pins = < + MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x1b0b0 + >; + }; };