Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6249300imu; Sun, 2 Dec 2018 13:28:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/XFK5nAg24NKPccg2LneZicAfzLdVao+FxfXBIk0jJvEF52jsPnXg8f/KVSXRdWPCq4gynk X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr12661376pls.303.1543786138540; Sun, 02 Dec 2018 13:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543786138; cv=none; d=google.com; s=arc-20160816; b=L00y6qKhQditBQXOq5MFIEiBy2MRrXKbz/savBBLbb2ypLoNrOIPks584CFRpB+fMU H8uZqTX6tJcmIw/qSvp6gKldM+DCa1pNrpB2LfjmfNtKGz9BsoLLZk0WS+JimTxmz4qs xBz7wdj/pOiMfrcesWK/O/RKufU2dVZSr/vAqy8ckjozAbopS6iXOE3ru/INDxmoxGUP hBoOD94+gztQj/N/KGYGRfHALBWnQFK0jnhgYU1yGGTiyYgSUNoY+tPS7PKEXB0WYYF9 cFc9M/bzUx3GiU/sxKrl8zQ5wMbWMtLrI48GaYO5se+lpUrl1x6UXGOh+/bffqr7znNE qk1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:organization :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Qo7I0hRRs35AV7fENb0Vk9rw2AwMZH8coRuKvX4vsgI=; b=RH0L/SObfIWXAS0NIXbADHTRFZ1OFctDRljmgu6HuuUHgN2g0xsS+MONfZ4l11u97G 3P+hqOYyjBOWwR2fCuZdZLmo4I/CPz85TCeP4aopm32WuAU+PLP5z1Es95udumn1iRq4 FlaTR0wMnq4M4rOhBoJ0wnCFyAZ8ZsY/jhdtInp032cixQSlGClMvnzsA0gjFQCaqDJ1 HB4XDbOwd5trdIl9iYgH0fj68wiGZjew7UizfRaA/fabrmtSa0sWPrYqkteDYO5sPsRA QVt3JLPQ33v/YfJacAco4k/gKMgWif29WP4H2kCSl0jVQzHQIU1egboxZ02kTlCZUsUP OGWg== ARC-Authentication-Results: i=1; mx.google.com; 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 q18si11094720pls.30.2018.12.02.13.28.44; Sun, 02 Dec 2018 13:28:58 -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; 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 S1725804AbeLBV0j (ORCPT + 99 others); Sun, 2 Dec 2018 16:26:39 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:46211 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbeLBV0j (ORCPT ); Sun, 2 Dec 2018 16:26:39 -0500 Received: by mail-qt1-f193.google.com with SMTP id y20so11629546qtm.13; Sun, 02 Dec 2018 13:26:35 -0800 (PST) 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:mime-version:organization:content-transfer-encoding; bh=Qo7I0hRRs35AV7fENb0Vk9rw2AwMZH8coRuKvX4vsgI=; b=Nw92BpCEA8MfZWQB5+zToXTFRxKktwdl/vV0lQ6xI71qyvfIknQLs2UpYW9HhEJZ9N say5h0HTZS7691bSQZ0aOEj5il2bzjkxuwhunQh3N+cNLWbkIzFaHuVmMKvTG8omUhLb W6nDqnfMsvBm8SBgz0HilObAre5xN9NL3vZrBltNFORoV/HKhMY4F37JLpnxMx2ktwGN VPrWd27bnY5AcSj2T39aWcAYO2XfN9eBYgJqMgeq+/h6QUeE8duO91r8JagMqI5AOjfQ Uyc8U6iCZ6dl5brEQnOy9KxJpjGQd/NzIPIR1jFxmYEZJBTDYjRc7cmhzNOu+qXLzGzJ zdvg== X-Gm-Message-State: AA+aEWajFI+UerKPKNTLNB4lrnQvvDWAb0/+cYmmdn3Vmb0/Fela9vao JakY0FkkRk/qr/JS8F6w6wU= X-Received: by 2002:ac8:4709:: with SMTP id f9mr12903211qtp.58.1543785994987; Sun, 02 Dec 2018 13:26:34 -0800 (PST) Received: from localhost.localdomain ([181.220.65.91]) by smtp.gmail.com with ESMTPSA id n72sm8178607qki.26.2018.12.02.13.26.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Dec 2018 13:26:34 -0800 (PST) Received: by localhost.localdomain (sSMTP sendmail emulation); Sun, 02 Dec 2018 19:26:27 -0200 From: Otavio Salvador To: linux-arm-kernel@lists.infradead.org Cc: Fabio Estevam , Otavio Salvador , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Pengutronix Kernel Team , Mark Rutland , NXP Linux Team , Shawn Guo , Sascha Hauer Subject: [PATCH 9/9] ARM: dts: imx7d-pico: Add the imx7d-pico-hobbit variant Date: Sun, 2 Dec 2018 19:25:20 -0200 Message-Id: <20181202212520.16650-10-otavio@ossystems.com.br> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181202212520.16650-1-otavio@ossystems.com.br> References: <20181202212520.16650-1-otavio@ossystems.com.br> MIME-Version: 1.0 Organization: O.S. Systems Software LTDA. Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabio Estevam The imx7d-pico-hobbit contains a imx7d-pico SoM and a hobbit baseboard. Add support for it. Signed-off-by: Fabio Estevam Signed-off-by: Otavio Salvador --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx7d-pico-hobbit.dts | 105 ++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 arch/arm/boot/dts/imx7d-pico-hobbit.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index b0e966d625b9..12a3cfb7d280 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -569,6 +569,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ imx7d-colibri-emmc-eval-v3.dtb \ imx7d-colibri-eval-v3.dtb \ imx7d-nitrogen7.dtb \ + imx7d-pico-hobbit.dtb \ imx7d-pico-pi.dtb \ imx7d-sbc-imx7.dtb \ imx7d-sdb.dtb \ diff --git a/arch/arm/boot/dts/imx7d-pico-hobbit.dts b/arch/arm/boot/dts/imx7d-pico-hobbit.dts new file mode 100644 index 000000000000..7b2198a9372c --- /dev/null +++ b/arch/arm/boot/dts/imx7d-pico-hobbit.dts @@ -0,0 +1,105 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +// +// Copyright 2017 NXP + +#include "imx7d-pico.dtsi" + +/ { + model = "TechNexion PICO-IMX7D Board using Hobbit baseboard"; + compatible = "technexion,imx7d-pico-hobbit", "fsl,imx7d"; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_leds>; + + led { + label = "gpio-led"; + gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>; + }; + }; + + sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "imx7-sgtl5000"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,cpu { + sound-dai = <&sai1>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&sgtl5000>; + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; + }; + }; +}; + +&i2c1 { + sgtl5000: codec@a { + #sound-dai-cells = <0>; + reg = <0x0a>; + compatible = "fsl,sgtl5000"; + clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>; + VDDA-supply = <®_2p5v>; + VDDIO-supply = <®_vref_1v8>; + }; +}; + +&i2c4 { + status = "okay"; + + adc081c: adc@50 { + compatible = "ti,adc081c"; + reg = <0x50>; + vref-supply = <®_3p3v>; + }; +}; + +&ecspi3 { + ads7846@0 { + reg = <0>; + compatible = "ti,ads7846"; + interrupt-parent = <&gpio2>; + interrupts = <7 0>; + spi-max-frequency = <1000000>; + pendown-gpio = <&gpio2 7 0>; + vcc-supply = <®_3p3v>; + ti,x-min = /bits/ 16 <0>; + ti,x-max = /bits/ 16 <4095>; + ti,y-min = /bits/ 16 <0>; + ti,y-max = /bits/ 16 <4095>; + ti,pressure-max = /bits/ 16 <1024>; + ti,x-plate-ohms = /bits/ 16 <90>; + ti,y-plate-ohms = /bits/ 16 <90>; + ti,debounce-max = /bits/ 16 <70>; + ti,debounce-tol = /bits/ 16 <3>; + ti,debounce-rep = /bits/ 16 <2>; + ti,settle-delay-usec = /bits/ 16 <150>; + wakeup-source; + }; +}; + +&iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>; + + pinctrl_hog: hoggrp { + fsl,pins = < + MX7D_PAD_EPDC_DATA00__GPIO2_IO0 0x14 + MX7D_PAD_EPDC_DATA01__GPIO2_IO1 0x14 + MX7D_PAD_EPDC_DATA02__GPIO2_IO2 0x14 + MX7D_PAD_EPDC_DATA03__GPIO2_IO3 0x14 + MX7D_PAD_EPDC_DATA05__GPIO2_IO5 0x14 + MX7D_PAD_EPDC_DATA12__GPIO2_IO12 0x14 + MX7D_PAD_EPDC_DATA07__GPIO2_IO7 0x14 + >; + }; + + pinctrl_gpio_leds: gpioledsgrp { + fsl,pins = < + MX7D_PAD_EPDC_DATA13__GPIO2_IO13 0x14 + >; + }; +}; -- 2.19.2