Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1081990ybl; Wed, 28 Aug 2019 09:21:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9TuT33/Vw+2nCrdAQtBSsu2f/p0g0IkFKjb9RA3eTJnrG3N2+ioju8fLd3xpF6W9WZnB9 X-Received: by 2002:a65:5889:: with SMTP id d9mr4110139pgu.380.1567009302333; Wed, 28 Aug 2019 09:21:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567009302; cv=none; d=google.com; s=arc-20160816; b=oekpCCivCI7vuCeoKPq2StIAGHiGyVmGbJMx3MPTTlOGvpD75n95ITJ+T7R7PEF/PG laY7mdEac3yD5Qdg86JHMf885j6XFu7L/KNyZHThpjEn7H6ZC1EUWUlENG/sjCLWY47S IHxljAydYrR4wjqeLZNoq1WHTX2Dn13OYTZ48Hw/MhOkshSfHLMtOnaDs70z5/fw4cIC rL7UurkNs86/hnMPbi+5lK/9O8/B7HvNBD41LH7D3ap2+Xwk62jsaeB9tt1k0HfGFZL9 5wPKaIgY8NKtGBfxW/vf7XDSLBksBl868oXvt5p8VmJdWUBPgaCgVTTEC8e2NKrSkH0A RC9g== 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; bh=6CPxEzCPe+o9sMen7nYO3ZlJyfdH9Q3b+f/rFJ1T2pI=; b=YngrYnhRTP6vUX7Qcx07tObVNKYS7Ef9cQG52mJDgFiY9FfsxaGD2PZjMchyLAridF IKjUj3G7jGSYb2KtIn4TCKu1Vl7h6U1OQ4BmGXnwtiIyReMLG6qVJsXuPoOAgMhxsm4e T+TGJ8+CV73HeJmUbCMVgwDo3JKbcn/zwYnGFHWkX54ODg1AAy0Zq+SlFwknrGGpK619 YK75g5ukPK16sEOXw/tUGIglIoHW49+SCvHRePlrs7VUprqTMLnUDNPQmWUcW1WySzvZ TMYZ6a8NM1Xsx9X5Mch6ZYhR8cFJjOG0Xvr0wnQwVBZhFJK6UVRPrv9liK3WXA98tj+g L8xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QCOO+UNR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si2485322pgb.374.2019.08.28.09.21.21; Wed, 28 Aug 2019 09:21:42 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=QCOO+UNR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726866AbfH1QUF (ORCPT + 99 others); Wed, 28 Aug 2019 12:20:05 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46162 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbfH1QUF (ORCPT ); Wed, 28 Aug 2019 12:20:05 -0400 Received: by mail-wr1-f68.google.com with SMTP id z1so361250wru.13; Wed, 28 Aug 2019 09:20:03 -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:in-reply-to:references; bh=6CPxEzCPe+o9sMen7nYO3ZlJyfdH9Q3b+f/rFJ1T2pI=; b=QCOO+UNRCCvVuf4EKPxQXeLZNKvq6i7ZUgCu4UpsHCrkUUPaF1N3SfADgtadxUiTq/ AFQhnV52+KXMbzRxV/MvikLx7u5un+e99BgMaguyHcPqwrUQ/845bFI6VWRlih9yxs0w yZ4Fd/mYo+9ZZ5APmZMTW0c6nn7vXi9QjlUEyItj6mx8HCpvXzMQZjKQHjjNu9AqXv/v mWNGRmsBieyMGSTstp1SEC3FlbPxh5pJeMLl0Tyr/9r4KPlNQuwN5yLIpYeBPrHmw95/ /kxJzPkTd5OV3mWd3UIIfvrxeSxjXP0LbFn7I5zLwQq+9icQDqlHiymtR8D24jPUef9q hl7w== 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=6CPxEzCPe+o9sMen7nYO3ZlJyfdH9Q3b+f/rFJ1T2pI=; b=OLIq/Pu3RjYblN57KXIHLDuKPhE6ZUL3i9dTJfQ46eI6zX9Y6hNahkRTl+9LSVvDgb 6LDoov1LH6V89z2qdXN0ZXFC/gQbEFed6ZX0bNYi73VPuxVinM5pvsU1PlJTmYzTiUWF QBcLnj8ILBAruPBwLfNytDKUvW6hVzVadxjySikULxMRyBjC7TtEp2GIAgjE3bbYMMg9 i50xtQ/dfux6Dz86JcLZyaYL4qnhH6mgsLehM7oU9f1LHxjUjXsk0yL2gURAR9A7ed3E qxEhPkHqceV/wG3Ord6UZQTY2NS/CaHdrz3eKD26bPawB9ITKX6cGhMRGszBYkVI4Ysr zerA== X-Gm-Message-State: APjAAAVTpguyANDv5Dn0XEblXaShYohwvjfqCNvBlF9kM5g35cDl3pRm 9tmjIY72eeB1S2zXfcIPEiQ= X-Received: by 2002:adf:efd2:: with SMTP id i18mr5591882wrp.145.1567009202563; Wed, 28 Aug 2019 09:20:02 -0700 (PDT) Received: from localhost ([31.16.217.87]) by smtp.gmail.com with ESMTPSA id c21sm1927627wml.48.2019.08.28.09.20.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Aug 2019 09:20:01 -0700 (PDT) From: Oliver Graute To: shawnguo@kernel.org Cc: oliver.graute@gmail.com, narmstrong@baylibre.com, Rob Herring , Mark Rutland , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCHv5 2/2] ARM: dts: Add support for i.MX6 UltraLite DART Variscite Customboard Date: Wed, 28 Aug 2019 18:19:18 +0200 Message-Id: <1567009160-21965-3-git-send-email-oliver.graute@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1567009160-21965-1-git-send-email-oliver.graute@gmail.com> References: <1567009160-21965-1-git-send-email-oliver.graute@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds DeviceTree Source for the i.MX6 UltraLite DART NAND/WIFI Signed-off-by: Oliver Graute Cc: Shawn Guo Cc: Neil Armstrong --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts | 196 ++++++++++++++++++++++++ 2 files changed, 197 insertions(+) create mode 100644 arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index a24a6a1..a2a69e4 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -579,6 +579,7 @@ dtb-$(CONFIG_SOC_IMX6UL) += \ imx6ul-tx6ul-0010.dtb \ imx6ul-tx6ul-0011.dtb \ imx6ul-tx6ul-mainboard.dtb \ + imx6ul-var-6ulcustomboard.dtb \ imx6ull-14x14-evk.dtb \ imx6ull-colibri-eval-v3.dtb \ imx6ull-colibri-wifi-eval-v3.dtb \ diff --git a/arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts b/arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts new file mode 100644 index 00000000..1861b34 --- /dev/null +++ b/arch/arm/boot/dts/imx6ul-var-6ulcustomboard.dts @@ -0,0 +1,196 @@ +// SPDX-License-Identifier: (GPL-2.0) +/* + * Support for Variscite DART-6UL Module + * + * Copyright (C) 2015 Freescale Semiconductor, Inc. + * Copyright (C) 2015-2016 Variscite Ltd. - http://www.variscite.com + * Copyright (C) 2018-2019 Oliver Graute + */ + +/dts-v1/; + +#include +#include "imx6ul-imx6ull-var-dart-common.dtsi" + +/ { + model = "Variscite i.MX6 UltraLite Carrier-board"; + compatible = "variscite,6ulcustomboard", "fsl,imx6ul"; + + backlight { + compatible = "pwm-backlight"; + pwms = <&pwm1 0 20000>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + status = "okay"; + }; + + gpio-keys { + compatible = "gpio-keys"; + + user { + gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; + linux,code = ; + gpio-key,wakeup; + }; + }; + + gpio-leds { + compatible = "gpio-leds"; + + d16-led { + gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "wm8731audio"; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line Jack", + "Microphone", "Mic Jack"; + simple-audio-card,routing = + "Headphone Jack", "RHPOUT", + "Headphone Jack", "LHPOUT", + "LLINEIN", "Line Jack", + "RLINEIN", "Line Jack", + "MICIN", "Mic Bias", + "Mic Bias", "Mic Jack"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&sound_master>; + simple-audio-card,frame-master = <&sound_master>; + + sound_master: simple-audio-card,cpu { + sound-dai = <&sai2>; + }; + }; +}; + +&can1 { + status = "okay"; +}; + +&can2 { + status = "okay"; +}; + +&fec1 { + phy-mode = "rgmii"; + phy-reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + phy-handle = <ðphy0>; + status = "okay"; +}; + +&fec2 { + phy-mode = "rgmii"; + phy-reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + phy-handle = <ðphy1>; + status = "okay"; +}; + +&i2c1 { + clock-frequency = <400000>; + status = "okay"; +}; + +&i2c2 { + clock_frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; + + wm8731: audio-codec@1a { + #sound-dai-cells = <0>; + compatible = "wlf,wm8731"; + reg = <0x1a>; + clocks = <&clks IMX6UL_CLK_SAI2>; + clock-names = "mclk"; + }; + + touchscreen@38 { + compatible = "edt,edt-ft5x06"; + reg = <0x38>; + interrupt-parent = <&gpio3>; + interrupts = <4 0>; + touchscreen-size-x = <800>; + touchscreen-size-y = <480>; + touchscreen-inverted-x; + touchscreen-inverted-y; + wakeup-source; + }; + + rtc@68 { + compatible = "dallas,ds1337"; + reg = <0x68>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rtc>; + interrupt-parent = <&gpio5>; + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; + }; +}; + +&lcdif { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcdif>; + display = <&display0>; + status = "okay"; + + display0: display0 { + bits-per-pixel = <16>; + bus-width = <24>; + + display-timings { + native-mode = <&timing0>; + timing0: timing0 { + clock-frequency =<35000000>; + hactive = <800>; + vactive = <480>; + hfront-porch = <40>; + hback-porch = <40>; + hsync-len = <48>; + vback-porch = <29>; + vfront-porch = <13>; + vsync-len = <3>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <0>; + }; + }; + }; +}; + +&pwm1 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&usbotg1 { + dr_mode = "host"; + status = "okay"; +}; + +&usbotg2 { + dr_mode = "host"; + status = "okay"; +}; + +&iomuxc { + pinctrl_rtc: rtcgrp { + fsl,pins = < + MX6UL_PAD_SNVS_TAMPER7__GPIO5_IO07 0x1b0b0 + >; + }; +}; -- 2.7.4