Received: by 10.223.164.202 with SMTP id h10csp5356667wrb; Tue, 21 Nov 2017 08:29:55 -0800 (PST) X-Google-Smtp-Source: AGs4zMZcgIGcnaEnuuJ9h02/iVvNh/iiP3as0C3fhtX3A+NPDYioeYHhL1pqW1LLw1gv+0BpfWK3 X-Received: by 10.159.230.15 with SMTP id u15mr18533156plq.392.1511281795104; Tue, 21 Nov 2017 08:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511281795; cv=none; d=google.com; s=arc-20160816; b=cMwoAM08kdV0Gc1LFVcviJ/zliahnqPYXBgcssVwMM5vxIncOpBurFdL6BebpG+p3m fOnAy/W1cONFnKrPfhwfd7xyaChlPYhJfc+wpE/UTT4cl8WS0KfPBHkkDdy2P8QDlRZF HVJUolejHTewL5L16gLBR06uxUV4sPNEH4C7lGEZR/aPhFEe5W9zGqAqR6KNAqxLfE6D +wpQKjuDRXYFeJWR2uYU1pyi8Gv4fcM06W6t/IOube0Tn9zEmFqCmXrXtJ4qBg2Xkx5/ MWlhSc87h9eefUbAu0THCATXacqxDZ1aRkU37tDE8Su398l+A/oVrW6UBSZx+formDEG 81VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Uw9yCZltEgy/IhyY3SFYpKiTWyQrYO+mJ2m9Jx/iJqY=; b=0YfATT+wil7is8yP/mJEbfcfN1nuNZz1Yg5RfxtwGikXZqIGU1adT1x6mYReqdpVJW UbJ2s1gQ63s4XYQR9m/HCua8Ng82nO7VZoIEoD4EkIckUIw0xzDNKYO0QeZMMCJpw5Vd TGJ1PZrh5A0vt+w+5dt/3qhFVw7kDb1BPi/XzmO3Vg95oUPVmY4lxrScgEkF5LrQF5F6 C6QuKpXZ435a8q8lkjkc1tWTGZm0d72tKnZn9bDvmt1nC0k2F+UvrSDuMbNO13RQkbiQ NKa4P+prfSlMijNRV2sqt1tFh570xq5WbuTQyVkErWBwAIfiB9xOjXgHeKYiLOok3hoS 1/JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=EPTvoVSD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y21si10991591pll.823.2017.11.21.08.29.43; Tue, 21 Nov 2017 08:29:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=EPTvoVSD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751586AbdKUQ2o (ORCPT + 76 others); Tue, 21 Nov 2017 11:28:44 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:36230 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751518AbdKUQ2i (ORCPT ); Tue, 21 Nov 2017 11:28:38 -0500 Received: by mail-wm0-f48.google.com with SMTP id r68so4655227wmr.1 for ; Tue, 21 Nov 2017 08:28:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Uw9yCZltEgy/IhyY3SFYpKiTWyQrYO+mJ2m9Jx/iJqY=; b=EPTvoVSDGvBipvUQldMTvBg1SWPBA+JxuALjLr5Fm2Aa1mrPpMRGtZ8VlkVF2QXfW4 ELjQj75+IS1R9J7efbkw7x5T0dwp3Qbwi4C58ZXu+TfVcouz5RjSXQ1oL0qhXDgswY8h CSthbK8rymLpDhPv3LQ9wsawAkwdW2Mu53Nf7/ZqjSl8NyjmJckP/z8OtrwRWfHjltoz frwkfTFkIhl33wTdlHf8GATFBTb3BQUvoX73hh92aNz6/xk848stINtP9FCmgh9uPppI 0RckqQwTQJs4n9nKQspUx0pMelqCOEkc4I/L6zgysN14Uo2RgL+AlGcmRVmE86PkeaHT VwYw== 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=Uw9yCZltEgy/IhyY3SFYpKiTWyQrYO+mJ2m9Jx/iJqY=; b=kAFyXZZ0YoUJZ0Ut1Z0Qqh7p4AhpKyI4sbsX4QO+BV5R57eB2ja6BIv8us8XwAjlWs A7iiXa61qBRS7+kEat1+i+NV0mdMoWWrci8JzgcXtOoSXXb8r59WRZ14kY7bgm9MVANt ipP35Awpj82ZGCUnorlire2EllWQhyTPzEdvr79ucU/cOlXXDvzxhnkEVv/+qJQ+7CVb Jq5a3zYVZRl7o6KBKQWZ1Tn3J2lmkzhV3ZZFoSku8KDAzhY5d6vlVB/s3exwPOVHIs5v WJBV6/+8ypbuIh6yU3jP5/5kQ//bhLGROUYwpByNuu0EJcvEX7igIlO9RtK7F8RCuFVF nMrA== X-Gm-Message-State: AJaThX7HQyZmXi2d1MeFvtUKG9q/b+1Wj+edaBFXNdS7l2Jz0r7He9k5 PeLXLXUMjRP196u53mn6gLmjBA== X-Received: by 10.28.227.136 with SMTP id a130mr1889350wmh.104.1511281716630; Tue, 21 Nov 2017 08:28:36 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n64sm1696091wmd.36.2017.11.21.08.28.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Nov 2017 08:28:36 -0800 (PST) From: Neil Armstrong To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com Cc: Neil Armstrong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] ARM: dts: imx6q: Add Variscite DART-MX6 Carrier-board support Date: Tue, 21 Nov 2017 17:28:24 +0100 Message-Id: <1511281705-30849-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511281705-30849-1-git-send-email-narmstrong@baylibre.com> References: <1511281705-30849-1-git-send-email-narmstrong@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds support for the i.MX6 Quad variant of the Variscite DART-MX6 SoM Carrier-Board. This Carrier-Board has the following : - LVDS interface for the VLCD-CAP-GLD-LVDS 7" LCD 800 x 480 touch display - HDMI Connector - USB Host + USB OTG Connector - 10/100/1000 Mbps Ethernet - miniPCI-Express slot - SD Card connector - Audio Headphone/Line In jack connectors - On-board DMIC - CAN bus header - SPI header - Camera Interfaces header - 4xButtons, 2xLeds - OnBoard RTC with Coin Backup battery socket - RS232 Header + USB-Serial debug port Product Page : http://www.variscite.com/products/evaluation-kits/dart-mx6-kits The board support is done with all on-board and header interfaces enabled. 7" LVDS Touchscreen is enabled by default along HDMI output. Audio interface is supported with the "simple-card" bindings. On-Board DMIC and Camera Interfaces are not handled yet. Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-var-dt6customboard.dts | 247 +++++++++++++++++++++++++ 2 files changed, 248 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-var-dt6customboard.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index d0381e9..148ff15 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -470,6 +470,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-tx6q-11x0-mb7.dtb \ imx6q-udoo.dtb \ imx6q-utilite-pro.dtb \ + imx6q-var-dt6customboard.dtb \ imx6q-wandboard.dtb \ imx6q-wandboard-revb1.dtb \ imx6q-wandboard-revd1.dtb \ diff --git a/arch/arm/boot/dts/imx6q-var-dt6customboard.dts b/arch/arm/boot/dts/imx6q-var-dt6customboard.dts new file mode 100644 index 0000000..eb4483d --- /dev/null +++ b/arch/arm/boot/dts/imx6q-var-dt6customboard.dts @@ -0,0 +1,247 @@ +/* + * Support for Variscite DART-MX6 Carrier-board + * + * Copyright 2017 BayLibre, SAS + * Author: Neil Armstrong + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +/dts-v1/; + +#include "imx6q.dtsi" +#include "imx6qdl-var-dart.dtsi" +#include + +/ { + model = "Variscite DART-MX6 Carrier-board"; + compatible = "variscite,dt6customboard", "fsl,imx6q"; + + backlight_lvds: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm2 0 50000>; + brightness-levels = <0 4 8 16 32 64 128 248>; + default-brightness-level = <7>; + status = "okay"; + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + button@0 { + gpios = <&gpio4 26 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "Key Back"; + linux,input-type = <1>; + debounce-interval = <100>; + gpio-key,wakeup; + }; + + button@1 { + gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "Key Home"; + linux,input-type = <1>; + debounce-interval = <100>; + gpio-key,wakeup; + }; + + button@2 { + gpios = <&gpio4 25 GPIO_ACTIVE_LOW>; + linux,code = ; + label = "Key Menu"; + linux,input-type = <1>; + debounce-interval = <100>; + gpio-key,wakeup; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + led1 { + gpios = <&gpio4 27 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + + led2 { + gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "default-on"; + }; + }; + + panel1: lvds-panel { + compatible = "sgd,gktw70sdae4se", "panel-lvds"; + backlight = <&backlight_lvds>; + + width-mm = <153>; + height-mm = <86>; + + label = "gktw70sdae4se"; + + data-mapping = "jeida-18"; + + panel-timing { + clock-frequency = <32000000>; + hactive = <800>; + vactive = <480>; + hback-porch = <39>; + hfront-porch = <39>; + vback-porch = <29>; + vfront-porch = <13>; + hsync-len = <47>; + vsync-len = <2>; + }; + + port { + panel_in: endpoint { + remote-endpoint = <&lvds1_out>; + }; + }; + }; + + reg_usb_h1_vbus: regulator-usbh1vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio1 28 0>; + enable-active-high; + }; + + reg_usb_otg_vbus: regulator-usbotgvbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio4 15 0>; + enable-active-high; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "dt6-customboard-audio"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&sound_codec>; + simple-audio-card,frame-master = <&sound_codec>; + simple-audio-card,widgets = "Headphone", "Headphone Jack", + "Line", "Line In"; + simple-audio-card,routing = "Headphone Jack", "HPLOUT", + "Headphone Jack", "HPROUT", + "LINE1L", "Line In", + "LINE1R", "Line In"; + + sound_cpu: simple-audio-card,cpu { + sound-dai = <&ssi2>; + }; + + sound_codec: simple-audio-card,codec { + sound-dai = <&codec>; + clocks = <&clks IMX6QDL_CLK_CKO>; + }; + }; +}; + +&can1 { + status = "okay"; +}; + +&ecspi1 { + cs-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>, + <&gpio4 10 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&fec { + status = "okay"; + phy-mode = "rgmii"; + phy-reset-gpios = <&gpio1 25 0>; +}; + +&hdmi { + ddc-i2c-bus = <&i2c1>; + status = "okay"; +}; + +&i2c1 { + clock-frequency = <100000>; + status = "okay"; +}; + +&i2c3 { + clock-frequency = <100000>; + status = "okay"; + + touchscreen@38 { + compatible = "edt,edt-ft5x06"; + reg = <0x38>; + interrupt-parent = <&gpio1>; + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; + touchscreen-size-x = <800>; + touchscreen-size-y = <480>; + touchscreen-inverted-x; + touchscreen-inverted-y; + }; + + rtc@68 { + compatible = "isil,isl12057"; + reg = <0x68>; + }; +}; + +&ldb { + status = "okay"; + + lvds-channel@1 { + status = "okay"; + + port@4 { + reg = <4>; + + lvds1_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; +}; + +&pcie { + reset-gpio = <&gpio4 11 0>; + wake-up-gpio = <&gpio4 31 1>; + disable-gpio = <&gpio5 5 0>; + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&usbh1 { + vbus-supply = <®_usb_h1_vbus>; + status = "okay"; +}; + +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + dr_mode = "otg"; + srp-disable; + hnp-disable; + adp-disable; + status = "okay"; +}; + +&usdhc2 { + cd-gpios = <&gpio1 6 1>; + status = "okay"; +}; -- 2.7.4 From 1585904391019249756@xxx Tue Dec 05 01:11:25 +0000 2017 X-GM-THRID: 1585904391019249756 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread