From patchwork Thu Jan 18 09:26:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ga=C3=ABtan_Carlier?= X-Patchwork-Id: 862804 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mzVpD6xT"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QfFpNMq8"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zMdrj2CKbz9s7g for ; Thu, 18 Jan 2018 20:27:00 +1100 (AEDT) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :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=r0P+4zNyVxksoEuFA/2YtIfHxtQVDdh8BQopuKUicgI=; b=mzVpD6xTzn9Ifm 1KdS6F4rQQSytxa11sPV3ncrmW+O9zjGAW5Srl5UQmZTihHa94up8C4AJxvKtxaLX6AQZaRt0QggM pzxnskTHJJX6B+x+YlxOwmfqBWMcXiSEGVBs2H24RECKn5A2WYkGpocqeLW6B0A7MvAgd5alqJbCE ggLBcBDYPXVcZFe5+HLdeWueXBIHuCfR6eZPtGQDt2dyBKVBnmeHwBrV1pirau088ZF4Pf4fmsMsg AkTpj607hbi7FvCxUoCEe3x3NI6j3GgWy3/G1+JxHGixJA9abzybritfOHKLCNnIeeEASw13ejVw2 r5QqHNaYxpILLpNUlKjg==; 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 1ec6TF-0006YD-7H; Thu, 18 Jan 2018 09:26:53 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ec6TA-0006XB-MF for linux-arm-kernel@lists.infradead.org; Thu, 18 Jan 2018 09:26:51 +0000 Received: by mail-wm0-x230.google.com with SMTP id i11so21190596wmf.4 for ; Thu, 18 Jan 2018 01:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=HPpTKnTM/vK1UOxrCOdq6BN0n3kvcw+n+ER/XCNAIe8=; b=QfFpNMq80GZ6j3bqwyLYFTvEFt+KdlqyYFQ0nlAsvpAOQIshj3V3pxvx7g4bK0iNdt QTYlpraRhzDpOo3zxd3BvDsKOnVNo5Zwnqq3bn4U97nvzZvDDs++QNNrvZOs+LB+AG5a hv3W9Q3zAOeudcAdVUF+3pbN0nQ0VLy01v0AaIU/Es2S+aH2HjMvSeYM0x2Rz24G7DbQ 3eGYuIpuMsTpqZ4rLH16hr9SwDVvIgKpjNpmY5Y+Bb8CNXb5fb0XB8PT/aSjFuU7fsyu ysS3+JLwO5Hpr7w//AnBnnFg9RWw7wsc3LPkUNAeD3Ex4Cq0JDqsghaW1RAKX12NtLad OcBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=HPpTKnTM/vK1UOxrCOdq6BN0n3kvcw+n+ER/XCNAIe8=; b=R7vOWv5x2M4HROphWxzAyP2kzC9ZkCY0NH9EZZ97uu0uzoVM2Czh9dlbVc6Qqvag5A zLFa7UsYLC0mOrCfvYbnDIGt+CDhMiWrsZPiHVgEykZ1MTPow2hq65VaontaN0q+P1ga MGrj8xYW7sAs4Zt7YyXhPS7rHvIAFbe9aXP9qK6TB7qYtRTzX6nv8fP++geQY+j1w5Zc qyW/s6X/0uFcYjTU8PMGOjhY+I0TjvMZtVq/PtnDX5our15QKp7WN62wOG13elJ+EGkN x8XLJFvx8baIkdyP2XIrhG2p1l/8xLUGjLuMgxEIFvhQedx1AJV6rig7iYNQNeuXoQa8 N8pg== X-Gm-Message-State: AKwxytcoJ0c7w3F+k1/gTS1lGdnGzTEBhz0L9iaT4DXu9sUoTI7bD6Za nTopRmW5wY3O+Lv8bCoZg7c= X-Google-Smtp-Source: ACJfBotG0nnDBN176FfPLQDtCQ+P6BXJce++dH5W4AEsINrpW4bLuMGXnWCaeH8l68r5191jQ7A8FQ== X-Received: by 10.80.240.2 with SMTP id r2mr6905775edl.91.1516267596398; Thu, 18 Jan 2018 01:26:36 -0800 (PST) Received: from [10.0.4.19] (34.16-66-87.adsl-static.isp.belgacom.be. [87.66.16.34]) by smtp.googlemail.com with ESMTPSA id y17sm3977890edl.36.2018.01.18.01.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 01:26:35 -0800 (PST) From: =?utf-8?q?Ga=C3=ABtan_Carlier?= Subject: [PATCH] ARM: dts: mxs: add imx28 DNET01 board To: "linux-arm-kernel@lists.infradead.org" Message-ID: <325f427c-352b-e3d0-fa2f-3055f02d8c3f@gmail.com> Date: Thu, 18 Jan 2018 10:26:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-US X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gcembed[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , Shawn Guo , Sascha Hauer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org Hi, The patch adds support of imx28 DNET01 board Signed-off-by: GaĆ«tan Carlier --- arch/arm/boot/dts/imx28-dnet01.dts | 184 +++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 arch/arm/boot/dts/imx28-dnet01.dts diff --git a/arch/arm/boot/dts/imx28-dnet01.dts b/arch/arm/boot/dts/imx28-dnet01.dts new file mode 100644 index 0000000..c502ca7 --- /dev/null +++ b/arch/arm/boot/dts/imx28-dnet01.dts @@ -0,0 +1,184 @@ +/* + * Copyright (C) 2018 Gaetan Carlier + * + * based on imx28-m28evk.dts + * Copyright (C) 2012 Marek Vasut + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +#include "imx28.dtsi" + +/ { + model = "Domintell DNET01"; + compatible = "domintell,dnet01", "fsl,imx28"; + + memory { + reg = <0x40000000 0x08000000>; + }; + + apb@80000000 { + apbh@80000000 { + + dcp: dcp@80028000 { + /* + * Driver is not fully implemented. + * [PATCH] crypto: mxs-dcp - Initialize .statesize fields + * https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg17078.html + */ + status = "disable"; + }; + + ssp0: ssp@80010000 { + compatible = "fsl,imx28-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_8bit_pins_a + &mmc0_sck_cfg>; + bus-width = <8>; + vmmc-supply = <®_3p3v>; + broken-cd; + disable-wp; + cap-mmc-highspeed; + non-removable; + status = "okay"; + }; + + ssp2: ssp@80014000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx28-spi"; + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "disable"; + }; + }; + + apbx@80040000 { + mxs_rtc: rtc@80056000 { + /* + * Overrides default state from imx28.dtsi + * Internal RTC must be disable as a high + * precision I2C is connected. + */ + status = "disabled"; + }; + + i2c0: i2c@80058000 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + eeprom: eeprom@57 { + compatible = "atmel,24c01"; + reg = <0x57>; + pagesize = <8>; + readonly = <1>; + }; + + mcp7941x_rtc: rtc@6f { + compatible = "dallas,mcp7941x"; + reg = <0x6f>; + ds_type = "mcp7941x"; + }; + }; + + duart: serial@80074000 { + pinctrl-names = "default"; + pinctrl-0 = <&duart_pins_a>; + status = "okay"; + }; + + auart4: serial@80072000 { + pinctrl-names = "default"; + pinctrl-0 = <&auart4_2pins_a>; + status = "okay"; + }; + }; + }; + + ahb@80080000 { + mac0: ethernet@800f0000 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&mac0_pins_a>; + phy-supply = <®_3p3v>; + phy-reset-gpios = <&gpio4 13 0>; + phy-reset-duration = <100>; + status = "okay"; + }; + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_3p3v: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds>; + + stm32rdyrx { + /* Used to indicate that i.MX is ready to receive data from STM32 */ + label = "stm32rdyrx"; + gpios = <&gpio2 27 0>; + linux,default-trigger = "none"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio>; + #address-cells = <1>; + #size-cells = <0>; + + stm32err { + /* SPI_ERR : Used by STM32 that RS485 bus is busy or if sending of data has failed */ + label = "STM32 error-busy"; + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; + /* KEY_F23 0xC1 = 193 */ + linux,code = <193>; + debounce-interval = <0>; + }; + }; +}; + +&pinctrl { + pinctrl_gpio: gpiokeygrp { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDN__GPIO_0_24 + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + pinctrl_leds: ledsgrp { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_CE0N__GPIO_0_16 + MX28_PAD_SSP3_SS0__GPIO_2_27 + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; +};