From patchwork Sun Feb 19 20:28:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 9581809 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 219ED604A0 for ; Sun, 19 Feb 2017 20:30:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1102A28703 for ; Sun, 19 Feb 2017 20:30:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0592A28708; Sun, 19 Feb 2017 20:30:39 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 A621528703 for ; Sun, 19 Feb 2017 20:30:38 +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=1e8H3DU5sVISkcpekuzwDMIttTZFUvTuUcsPUWFFfYo=; b=sBtyPvTxcdy2PvKKZ0Jnzfr5a0 UhHjv2LUF08ejdiSsuBVEucbIq8NsHeewv82pDXmwjEclVChi2uv2mPcidUiAmIRRyOGwl8/p+eJS G87tlUF1DykA0Y6QAKiSYqATQZL+Vw4RygFBMQyGPiBv3ABWwo+xF9mPxXCCJQmutq2qGizhAADKf sbSiSYB6QjN+DrH6faR2Nc0XDtslZHXDFDznnP9auChICdA86Nc8HAO0sRSjmAVeR2F4EEGPI6ZTf oEjLd+ViivY+3gMjsPYtpP55eEXJwpPmq3k9ZeiXRapqwhYuot+PvnkxFx3h8LmHMaEIZ85F28wJM WpwIwhjA==; 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 1cfY7w-0005vO-L3; Sun, 19 Feb 2017 20:30:36 +0000 Received: from plaes.org ([188.166.43.21]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cfY6M-0003eW-3t for linux-arm-kernel@lists.infradead.org; Sun, 19 Feb 2017 20:29:03 +0000 Received: from localhost (82.131.53.162.cable.starman.ee [82.131.53.162]) by plaes.org (Postfix) with ESMTPSA id 9FCED40A89; Sun, 19 Feb 2017 20:28:07 +0000 (UTC) From: Priit Laes To: Rob Herring , Mark Rutland , Russell King , Shawn Guo , Sascha Hauer , Fabio Estevam , Thierry Reding , Heiko Stuebner , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/4] arm: dts: imx: Basic board definition for Parvus Duracor C310 Date: Sun, 19 Feb 2017 22:28:01 +0200 Message-Id: <20170219202801.2082-5-plaes@plaes.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170219202801.2082-1-plaes@plaes.org> References: <20170219202801.2082-1-plaes@plaes.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170219_122858_520834_102F5A7A X-CRM114-Status: GOOD ( 16.59 ) 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: Priit Laes 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 The DuraCOR 310 is a tactical mission computer based on a low-power four-core NXP i.MX6 Quad Arm processor equipped with a rugged Flash disk and PCIe-Mini Card I/O expansion slots. Add initial board support with CAN, eMMC, I2C, PCI, SATA, UART and USB enabled. Signed-off-by: Priit Laes --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6q-parvus-duracor-310.dts | 119 +++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-parvus-duracor-310.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 01d178a..542375c 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -397,6 +397,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-nitrogen6_max.dtb \ imx6q-nitrogen6_som2.dtb \ imx6q-novena.dtb \ + imx6q-parvus-duracor-310.dtb \ imx6q-phytec-pbab01.dtb \ imx6q-rex-pro.dtb \ imx6q-sabreauto.dtb \ diff --git a/arch/arm/boot/dts/imx6q-parvus-duracor-310.dts b/arch/arm/boot/dts/imx6q-parvus-duracor-310.dts new file mode 100644 index 0000000..07344ad --- /dev/null +++ b/arch/arm/boot/dts/imx6q-parvus-duracor-310.dts @@ -0,0 +1,119 @@ +/* + * Copyright 2017 Priit Laes + * + * 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 as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * 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-smarc-sam6xi.dtsi" + +/ { + model = "Parvus Duracor 310"; + compatible = "parvus-duracor,c310", "kontron,imx6-smx6", "fsl,imx6q"; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + /* CAN1 enable line */ + can1_en_reg: regulator@102 { + compatible = "regulator-fixed"; + reg = <102>; + regulator-name = "CAN1_EN"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + /* CAN2 enable line */ + can2_en_reg: regulator@103 { + compatible = "regulator-fixed"; + reg = <103>; + regulator-name = "CAN2_EN"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; +}; + +&can1 { + xceiver-supply = <&can1_en_reg>; + status = "okay"; +}; + +&can2 { + xceiver-supply = <&can2_en_reg>; + status = "okay"; +}; + +&i2c3 { + status ="okay"; + + pm_eeprom: at24@50 { + compatible = "at24,24c32"; + pagesize = <8>; + reg = <0x50>; + }; +}; + +&fec { + status = "okay"; +}; + +&pcie { + status = "okay"; +}; + +&sata { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&usbh1 { + status = "okay"; +}; + +&usdhc4 { + /* eMMC */ + status = "okay"; +};