From patchwork Fri Mar 24 16:18:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 9643261 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 BE2BE601E9 for ; Fri, 24 Mar 2017 16:22:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEC56200E9 for ; Fri, 24 Mar 2017 16:22:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0F4820453; Fri, 24 Mar 2017 16:22:43 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM 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 29D42200E9 for ; Fri, 24 Mar 2017 16:22:43 +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=yCv54E7cBeBWs7OsD4mqQL7Rn61DuIy41LOIAEcOoMg=; b=Gha6dakC5O7HfWYVbLp8P2vfhn WCnCmGI3IfYuOVjD56UcRTxm4lFjK1IsnwSShCUE+rwtRJJ7gK4ja/JlqZOA1ylT5BwK4X3fajr8O knTNdXxavKl3ZIWdfM5uYowYHmXW43DyyWEjG6MbNXVNBlyCOZcSrgg1tezTMeth0iZ+nUaKCoqww wZWYO6GYxRbny4rCScVsHc7mpHtEtJs4QHzOGZoqGozlLEZftd+X7zpv7fKIIiuW/D51/rfZ1WD8e yTLE/XJUNxZnMYB4nA0/MRYoFnTKZE/m5YULMt5oHJ3VubDQAMB9p3h+6XMwMcQ7JbxP8SJwDvzEv VBFzjOcA==; 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 1crRz7-0004LM-PZ; Fri, 24 Mar 2017 16:22:41 +0000 Received: from mail-pg0-f66.google.com ([74.125.83.66]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crRyO-00039J-Le for linux-arm-kernel@lists.infradead.org; Fri, 24 Mar 2017 16:21:58 +0000 Received: by mail-pg0-f66.google.com with SMTP id 79so1367393pgf.0 for ; Fri, 24 Mar 2017 09:21:36 -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=3X4H7QLWDpZEnI/4xUC7EpJfE/2V33M6jQvYPbbCdXs=; b=fos/H3u7sMuRW2X20pjWwNnhU3uPDxumPhz3pagg7KAzh0Dkov1TK9DbNo+xbQyNWB fRCNT+2wkT2JekdVvZnd0Qa8vU5OSWjP3FQJkfFw7EWe9c7CJVqwu8Htqr5wukceyVrs ge23UPFk10IgiEqMrz6Oj9RvpB1ORsEp71H6wzzKfulaJ6Jgi53QfFp496a4Tc8RLcJK Kqrlpub29AeK7x+KjqvMCUDkbScn32wgW+MLBXHNdamgfGfcqy4jOlH2L0l2u39OypdQ h9xFh5VGWEF/7RRVW5oRAMljxS+nzisyedVPlYM4r8quhNSjaFDFmCUM7kv3+IkePcS5 wvMA== X-Gm-Message-State: AFeK/H1uQw3swAehPZuFGSoR+GJgwVB4mwZLFTE3luX9TgeWgt5Fr2oRR3OZpz6mhmNrUg== X-Received: by 10.84.209.133 with SMTP id y5mr5415141plh.25.1490372496506; Fri, 24 Mar 2017 09:21:36 -0700 (PDT) Received: from localhost.localdomain ([59.95.76.64]) by smtp.gmail.com with ESMTPSA id t133sm5645519pgc.24.2017.03.24.09.21.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Mar 2017 09:21:35 -0700 (PDT) From: Jagan Teki To: Shawn Guo Subject: [PATCH v2 05/15] ARM: dts: imx6ul-isiot-common: Add touchscreen node Date: Fri, 24 Mar 2017 21:48:40 +0530 Message-Id: <1490372330-5611-6-git-send-email-jagan@openedev.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490372330-5611-1-git-send-email-jagan@openedev.com> References: <1490372330-5611-1-git-send-email-jagan@openedev.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_092156_780642_D5ED4795 X-CRM114-Status: UNSURE ( 9.78 ) 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 , Sascha Hauer , Fabio Estevam , 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 mfd interface. Cc: Shawn Guo Cc: Matteo Lisi Cc: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v2: - Fix commit message s/mfb/mfd - Use proper [label:] node-name[@unit-address] for mfd device - Use pinctrl-names as pinctrl_stmpe instead of pinctrl_stmpe_ts - Use proper [label:] node-name[@unit-address] for stmpe_touchscreen 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..827f0dc 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 { + stmpe811: gpio-expander@44 { + compatible = "st,stmpe811"; + reg = <0x44>; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_stmpe>; + 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: stmpegrp { + fsl,pins = < + MX6UL_PAD_UART1_CTS_B__GPIO1_IO18 0x1b0b0 + >; + }; };