From patchwork Wed Jan 3 08:00:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10141787 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 EB75E6034B for ; Wed, 3 Jan 2018 08:06:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E20D528EE2 for ; Wed, 3 Jan 2018 08:06:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D63BD28F59; Wed, 3 Jan 2018 08:06:24 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable 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 5AC4328EE2 for ; Wed, 3 Jan 2018 08:06:24 +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: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:In-Reply-To: References:List-Owner; bh=bMGqv3BKIrhnG+wxQJQKSFlD28+tBnPKmyezmRGYwBs=; b=FGL goXW22QT0MLp0zNAGCMNTFAe4gyQ1P8u3VagyK4Lz+nhMQbfV0DyTSqUqmOdP54D2t7+kM++GxpUj yX/MdkgebQC+aT0to0NSrpFUIiOq/pXYmfwOT3BRQ1nO+0e23KINU/JvuBm+0uVHsJ2QTNJKFjoKK 6PKhhxsnh2tWEsaXBeXrXZMaJE9BAcbW75WTntsgCAT4/ZiCIq3n4l1xxVavNT6W13EWjRpfo24/T kVX5ij51ibFnTxbHfQOo2EbKLFoWaoi35S3506KpvkXgz3PMGYl2I3PhOMUHa/bk/fF78LLvNtkEk wb8Af2hCy7Ip1+vQWmgOhUJu0Sq6cfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWe45-0000Jb-S9; Wed, 03 Jan 2018 08:06:21 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWe40-0000HW-Lp for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2018 08:06:19 +0000 Received: by mail-pl0-x241.google.com with SMTP id b12so820733plm.3 for ; Wed, 03 Jan 2018 00:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=dyfBOHsryM/AXkygIH4aOqkjjWSHP7KuJcWrgVtD5AM=; b=YdOVVDgKRNefrhUguiG8QvdX+hLYOd6wMjN5m378fsTRjm51k8l2eLjvE6SLlKx8Jg hUUiWogmXLky+jEXQrC9CMIG46+5Oj0FxSaO0vvZ4xJe5mgGw52re47i9i8t5SA/3TUM cFqniYEVHxRuIwTbHaXwRJNU7VmEeqc4XKiNeLtb814SNzMKyuq+IP30w0S82o8Pov/L GePMu0Dt9xxECfc09O5Uh91C6JWhqg9tIEwGu5PeMOKmKEd795qgpaM8f9k4lqbvs/wx tuyh5EdjcLMErlSEwUznMbU4mafVD2frTdyjJv+DXVqCqXiBG15tMPNi+FUFejw9g6wp p6Yw== 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=dyfBOHsryM/AXkygIH4aOqkjjWSHP7KuJcWrgVtD5AM=; b=GyH0ncfuDxifzndMD9e1ZSLpJndlU/qjYhyM+0ghs5834v5MX5YFJut4kcfnH9LTfP yBmBakyu2pZk9D16Hv3OYnTFHE/fCYzASlQZQAKyF2/ZCC6EubaOXHjXdzKesUgw/oBw GoQo0hZk1lOnNk4vbYAN9hLcg9PgVvA46Bb3sYHOnjhY9w3n/IpcKyyuhtY0DOET2DjW J3gtQjlGJd13ybvca1D9UzKDPTOTWb/eLVK42DP6eMmtaEruefxGdl6D+DJnEm60yfKf uf5fNDASSaMHvi+tJJ85uGlGl90AWpAw1YFrXwEhiNMG6CPGabCXw/IuXfDWNm17RLRW RDNg== X-Gm-Message-State: AKGB3mIcSzWUA/19RQRbaapF7AIp/6mWM81FbPo2/cOQRr1utEUq63JG wyDG081BEacwPv0M87zfADOB0w== X-Google-Smtp-Source: ACJfBov87Cv19rrxO5oxTt3HTDCfldn6q2guhNojhkrAs2v/xn2oG78H45JNDpkpBZJ0c/jgoEfa7Q== X-Received: by 10.84.177.129 with SMTP id x1mr665745plb.217.1514966765794; Wed, 03 Jan 2018 00:06:05 -0800 (PST) Received: from localhost.localdomain ([115.97.180.212]) by smtp.gmail.com with ESMTPSA id q5sm1328536pgn.39.2018.01.03.00.06.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Jan 2018 00:06:05 -0800 (PST) From: Jagan Teki To: Shawn Guo Subject: [PATCH] ARM: dts: imx6q: Add Engicam i.CoreM6 Quad/Dual OpenFrame Cap 7 initial support Date: Wed, 3 Jan 2018 13:30:47 +0530 Message-Id: <1514966447-30068-1-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_000617_024776_18627C1F X-CRM114-Status: GOOD ( 17.19 ) 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 i.CoreM6 Quad/Dual OpenFrame modules are "system on modules plus openframe display carriers" which are good solution for develop user friendly graphic user interface. ofcap 7 general features: CPU NXP Freescale i.MX6Q rev1.5 at 792 MHz RAM 1GB, 32, 64 bit, DDR3-800/1066 NAND SLC, 512MB LVDS Display TFT 7" industrial, 800x480 resolution Touchscreen EP0700M06 EDT Polytouch capacitive touch screen Backlight LED backlight, brightness 300 Cd/m2 Power supply 15 to 30 Vdc Signed-off-by: Jagan Teki --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-icore-ofcap7.dts | 100 +++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-icore-ofcap7.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 0bb8db3..11d0544 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -451,6 +451,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-icore.dtb \ imx6q-icore-ofcap10.dtb \ imx6q-icore-ofcap12.dtb \ + imx6q-icore-ofcap7.dtb \ imx6q-icore-rqs.dtb \ imx6q-marsboard.dtb \ imx6q-mccmon6.dtb \ diff --git a/arch/arm/boot/dts/imx6q-icore-ofcap7.dts b/arch/arm/boot/dts/imx6q-icore-ofcap7.dts new file mode 100644 index 0000000..f0be682 --- /dev/null +++ b/arch/arm/boot/dts/imx6q-icore-ofcap7.dts @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2016 Amarula Solutions B.V. + * Copyright (C) 2016 Engicam S.r.l. + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; + +#include "imx6q.dtsi" +#include "imx6qdl-icore.dtsi" + +/ { + model = "Engicam i.CoreM6 Quad/Dual OpenFrame Capacitive touch 7 Kit"; + compatible = "engicam,imx6-icore", "fsl,imx6q"; + + panel { + compatible = "ampire,am-800480aytzqw-00h"; + backlight = <&backlight_lvds>; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; +}; + +&i2c3 { + ep0700m06: touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_edt_ft5x06>; + interrupt-parent = <&gpio5>; + interrupts = <30 IRQ_TYPE_NONE>; + reset-gpios = <&gpio6 0 GPIO_ACTIVE_LOW>; + }; +}; + +&ldb { + status = "okay"; + + lvds-channel@0 { + reg = <0>; + status = "okay"; + + port@4 { + reg = <4>; + + lvds0_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; +}; + +&iomuxc { + pinctrl_edt_ft5x06: edt-ft5x06grp { + fsl,pins = < + MX6QDL_PAD_CSI0_DAT12__GPIO5_IO30 0x1b0b0 /*interrupt*/ + MX6QDL_PAD_CSI0_DAT14__GPIO6_IO00 0x1b0b0 /*reset edt*/ + >; + }; +};